BattleMainVM.ts 634 B

123456789101112131415161718192021
  1. /// #pkgName FGUI包名
  2. /// #prefabName ui预制名字
  3. /// #viewName uiview名字
  4. /// #UIName ui的名字,prefabName首字母转大写
  5. /// 该脚本由模板创建,不可修改
  6. /// created by chenwb 2024
  7. import { FguiViewModel } from "../../../../frameWork/fgui/mvc/FguiViewModel";
  8. export class BattleMainVM extends FguiViewModel {
  9. readonly MaskBgBtn: fgui.GButton;
  10. readonly BattleCom: fgui.GComponent;
  11. constructor(panel: fgui.GComponent) {
  12. super(panel);
  13. this.MaskBgBtn = panel.getChild("MaskBgBtn") as fgui.GButton;
  14. this.BattleCom = panel.getChild("BattleCom") as fgui.GComponent;
  15. }
  16. }