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

+ 5 - 0
assets/script/edit/widget_item.ts

@@ -53,6 +53,11 @@ export class widget_item extends Component {
                     }
                 })
                 this.lab_remark.getComponent(Label).string = this.m_data.att.remark
+                this.lab_name.on(Node.EventType.TOUCH_END, ()=> {
+                    if(this.m_data.type===config.Widget_Type_List.TEXT_SOUND){
+                        tools.show_dialog(this.m_data.att.text_sound_data.text, null)
+                    }
+                },this)
             }else{
                 this.node.on(Node.EventType.TOUCH_END,()=>{
                     if(this.call_back!=null){