future hace 1 año
padre
commit
cedcdbd32d
Se han modificado 2 ficheros con 258 adiciones y 131 borrados
  1. 249 131
      assets/edit_game.scene
  2. 9 0
      assets/script/edit/uiWidget/single_ui_widget_info.ts

La diferencia del archivo ha sido suprimido porque es demasiado grande
+ 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);

Algunos archivos no se mostraron porque demasiados archivos cambiaron en este cambio