future 1 tahun lalu
induk
melakukan
cedcdbd32d
2 mengubah file dengan 258 tambahan dan 131 penghapusan
  1. 249 131
      assets/edit_game.scene
  2. 9 0
      assets/script/edit/uiWidget/single_ui_widget_info.ts

File diff ditekan karena terlalu besar
+ 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);

Beberapa file tidak ditampilkan karena terlalu banyak file yang berubah dalam diff ini