HeadTopComVM.ts 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637
  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 HeadTopComVM extends FguiViewModel {
  9. readonly UserHead: fgui.GComponent;
  10. readonly Red: fgui.GLabel;
  11. readonly NameFont: fgui.GTextField;
  12. readonly ZhanLiFont: fgui.GTextField;
  13. readonly PbLv: fgui.GProgressBar;
  14. readonly LevelFont: fgui.GTextField;
  15. readonly HeadBtn: fgui.GButton;
  16. readonly ItemGold: fgui.GButton;
  17. readonly ItemDiamond: fgui.GButton;
  18. readonly ItemSp: fgui.GProgressBar;
  19. constructor(panel: fgui.GComponent) {
  20. super(panel);
  21. this.UserHead = panel.getChild("UserHead") as fgui.GComponent;
  22. this.Red = panel.getChild("Red") as fgui.GLabel;
  23. this.NameFont = panel.getChild("NameFont") as fgui.GTextField;
  24. this.ZhanLiFont = panel.getChild("ZhanLiFont") as fgui.GTextField;
  25. this.PbLv = panel.getChild("PbLv") as fgui.GProgressBar;
  26. this.LevelFont = panel.getChild("LevelFont") as fgui.GTextField;
  27. this.HeadBtn = panel.getChild("HeadBtn") as fgui.GButton;
  28. this.ItemGold = panel.getChild("ItemGold") as fgui.GButton;
  29. this.ItemDiamond = panel.getChild("ItemDiamond") as fgui.GButton;
  30. this.ItemSp = panel.getChild("ItemSp") as fgui.GProgressBar;
  31. }
  32. }