|
@@ -28,6 +28,7 @@ export class dai_dao_ju_bag extends Component {
|
|
this.mWidgetList.clear()
|
|
this.mWidgetList.clear()
|
|
this.mData = data;
|
|
this.mData = data;
|
|
this.btn_info.active = false;
|
|
this.btn_info.active = false;
|
|
|
|
+ this.drag_des.active = false;
|
|
ClientEvent.off(config.EventRun.NOTICE_EVENT,this.beActive.bind(this),this)
|
|
ClientEvent.off(config.EventRun.NOTICE_EVENT,this.beActive.bind(this),this)
|
|
ClientEvent.on(config.EventRun.NOTICE_EVENT,this.beActive.bind(this),this)
|
|
ClientEvent.on(config.EventRun.NOTICE_EVENT,this.beActive.bind(this),this)
|
|
this.m_tip_call_back = tip_call;
|
|
this.m_tip_call_back = tip_call;
|
|
@@ -132,8 +133,8 @@ export class dai_dao_ju_bag extends Component {
|
|
}
|
|
}
|
|
|
|
|
|
addDragRect(r:Rect){
|
|
addDragRect(r:Rect){
|
|
- this.drag_des.position = new Vec3(r.x+r.width*0.5,r.y+r.height*0.5);
|
|
|
|
- this.drag_des.getComponent(UITransform).setContentSize(new Size(r.width,r.height))
|
|
|
|
|
|
+ // this.drag_des.position = new Vec3(r.x+r.width*0.5,r.y+r.height*0.5);
|
|
|
|
+ // this.drag_des.getComponent(UITransform).setContentSize(new Size(r.width,r.height))
|
|
}
|
|
}
|
|
|
|
|
|
}
|
|
}
|