1234567891011121314151617181920212223242526272829303132333435363738394041 |
- /// #pkgName FGUI包名
- /// #prefabName ui预制名字
- /// #viewName uiview名字
- /// #UIName ui的名字,prefabName首字母转大写
- /// 该脚本由模板创建,不可修改
- /// created by chenwb 2024
- import { FguiView } from "../../../../frameWork/fgui/mvc/FguiView";
- import { FguiViewModel } from "../../../../frameWork/fgui/mvc/FguiViewModel";
- import { IUIController } from "../../../../frameWork/fgui/mvc/IUIController";
- import { ViewZorder } from "../../../../data/const/ViewZOrder";
- import { <#UIName>Ctrl } from "./<#UIName>Ctrl";
- import { <#UIName>VM } from "./<#UIName>VM";
- export class <#UIName>View extends FguiView {
- /**
- * fgui的包名
- */
- protected static pkgName = "<#pkgName>";
- /**
- * fgui包内的UI名字
- */
- protected static prefabName = "<#prefabName>";
- /**
- * 类名,用于给UI命名
- */
- protected static viewName = "<#UIName>View";
- /**
- * view层级
- */
- public zOrder: number = ViewZorder.UI;
- protected createVM(panel: fgui.GComponent): FguiViewModel {
- return new <#UIName>VM(panel);
- }
- protected CreateCtrl(): IUIController {
- return new <#UIName>Ctrl();
- }
- }
|