future 1 жил өмнө
parent
commit
cedcdbd32d

Файлын зөрүү хэтэрхий том тул дарагдсан байна
+ 249 - 131
assets/edit_game.scene


+ 9 - 0
assets/script/edit/uiWidget/single_ui_widget_info.ts

@@ -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);

Энэ ялгаанд хэт олон файл өөрчлөгдсөн тул зарим файлыг харуулаагүй болно