DialogViewVM.ts 1.4 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 DialogViewVM extends FguiViewModel {
  9. readonly Isday: fgui.Controller;
  10. readonly ThirdView: fgui.GComponent;
  11. readonly DescLabel: fgui.GRichTextField;
  12. readonly LineImg: fgui.GImage;
  13. readonly CancelBtn: fgui.GButton;
  14. readonly ConfirmBtn: fgui.GButton;
  15. readonly VideoBtn: fgui.GButton;
  16. readonly BtnGroup: fgui.GGroup;
  17. readonly Toggle: fgui.GButton;
  18. readonly TipLabel: fgui.GTextField;
  19. constructor(panel: fgui.GComponent) {
  20. super(panel);
  21. this.Isday = panel.getController("isday");
  22. this.ThirdView = panel.getChild("ThirdView") as fgui.GComponent;
  23. this.DescLabel = panel.getChild("DescLabel") as fgui.GRichTextField;
  24. this.LineImg = panel.getChild("LineImg") as fgui.GImage;
  25. this.CancelBtn = panel.getChild("CancelBtn") as fgui.GButton;
  26. this.ConfirmBtn = panel.getChild("ConfirmBtn") as fgui.GButton;
  27. this.VideoBtn = panel.getChild("VideoBtn") as fgui.GButton;
  28. this.BtnGroup = panel.getChild("BtnGroup") as fgui.GGroup;
  29. this.Toggle = panel.getChild("Toggle") as fgui.GButton;
  30. this.TipLabel = panel.getChild("TipLabel") as fgui.GTextField;
  31. }
  32. }