12345678910111213141516171819202122232425262728293031323334 |
- /** @format */
- import {UI} from '../enums/UI'
- import {BaseUI} from './BaseUI'
- import {Data, Mgr} from '../GameControl'
- import {ccUtils} from '../utils/ccUtils'
- import {observer, render, node, label, editBox, list} from '../mobx/observer'
- import {msgCmd} from '../proto/msg_cmd'
- const {ccclass, property} = cc._decorator
- @ccclass
- @observer
- export class Example extends BaseUI {
- onShow(args, fromUI: number) {
- //Mgr.net.add(msgCmd.xxx, this, this.onXXXRsp)
- }
- onHide(): any {
- Mgr.event.removeAll(this)
- }
- //UI或者其他函数=======================================
- //网络事件=======================================
- // onXXXRsp() {}
- //触发事件=======================================
- // @render
- // showRender() {}
- // 点击事件=======================================
- // onClick() {}
- }
|