ShowTipsView.ts 1.1 KB

123456789101112131415161718192021222324252627282930313233343536
  1. /// #pkgName FGUI包名
  2. /// #prefabName ui预制名字
  3. /// #viewName uiview名字
  4. /// #UIName ui的名字,prefabName首字母转大写
  5. /// 该脚本由模板创建,不可修改
  6. /// created by chenwb 2024
  7. import { FguiView, ViewType } from "../../../../frameWork/fgui/mvc/FguiView";
  8. import { FguiViewModel } from "../../../../frameWork/fgui/mvc/FguiViewModel";
  9. import { IUIController } from "../../../../frameWork/fgui/mvc/IUIController";
  10. import { ShowTipsCtrl } from "./ShowTipsCtrl";
  11. import { ShowTipsVM } from "./ShowTipsVM";
  12. export class ShowTipsView extends FguiView {
  13. /**
  14. * fgui的包名
  15. */
  16. protected static pkgName = "Common";
  17. /**
  18. * fgui包内的UI名字
  19. */
  20. protected static prefabName = "ShowTips";
  21. /**
  22. * 类名,用于给UI命名
  23. */
  24. protected static viewName = "ShowTipsView";
  25. public viewType: ViewType = ViewType.Part;
  26. protected createVM(panel: fgui.GComponent): FguiViewModel {
  27. return new ShowTipsVM(panel);
  28. }
  29. protected CreateCtrl(): IUIController {
  30. return new ShowTipsCtrl();
  31. }
  32. }