|
@@ -15,8 +15,17 @@ export class single_ui_widget_info extends Component {
|
|
|
@property(Node) ui_height:Node = null;
|
|
|
@property(Node) ui_res:Node = null;
|
|
|
@property(Node) ui_lab_res:Node = null;
|
|
|
+ @property(Node) btn_clear_res:Node = null;
|
|
|
private call_back = null;
|
|
|
private m_data:ui_att_item = null;
|
|
|
+ protected start(): void {
|
|
|
+ this.btn_clear_res.on(Node.EventType.TOUCH_END, ()=> {
|
|
|
+ this.m_data.res = '';
|
|
|
+ this.m_data.res_name = '';
|
|
|
+ this.updateInfo(this.m_data)
|
|
|
+ this.change()
|
|
|
+ })
|
|
|
+ }
|
|
|
public initView(call){
|
|
|
this.call_back = call;
|
|
|
this.ui_x.on('editing-did-ended', this.change, this);
|