MainHomePanelVM.Gen.cs 3.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. /// #pkgName FGUI包名
  2. /// #panelName UIPanel名字
  3. /// #UIName = $"{#pkgName}{#panelName}" UIKey名字
  4. /// #PropertyDefineArea 属性定义区域
  5. /// #PropertyAssignArea 属性赋值区域
  6. /// #ComponentType 组件类型
  7. /// #PropertyName 属性名字
  8. /// 该脚本由模板创建,不可编辑
  9. /// created by cb 2024
  10. using FairyGUI;
  11. using XGame.Framework.FGUI;
  12. using XGame.Framework.UI;
  13. namespace FL.FGUI
  14. {
  15. /// <summary>
  16. /// 该脚本由模板创建,不可修改,不可编辑
  17. /// </summary>
  18. public partial class MainHomePanelVM : FguiViewModel
  19. {
  20. public Controller SysMenuCtrl { get; private set; }
  21. public GLoader PlayerHead { get; private set; }
  22. public GLoader PlayerPowerIcon { get; private set; }
  23. public GTextField PlayerLvTxt { get; private set; }
  24. public GTextField PlayerNameTxt { get; private set; }
  25. public GTextField PlayerPowerTxt { get; private set; }
  26. public MainCurrencyNestedView GoldNested { get; private set; }
  27. public MainCurrencyNestedView DiamonNested { get; private set; }
  28. public GButton SysMenuBtn { get; private set; }
  29. public GGroup Top { get; private set; }
  30. public GButton FriendBtn { get; private set; }
  31. public GButton MailBtn { get; private set; }
  32. public GButton NoticeBtn { get; private set; }
  33. public GButton SettingBtn { get; private set; }
  34. public GButton ExchangeBtn { get; private set; }
  35. public GButton BagBtn { get; private set; }
  36. public GGroup SysMenu { get; private set; }
  37. public GButton MapRewardBtn { get; private set; }
  38. public GGroup Bottom { get; private set; }
  39. protected override void BindComponents(GComponent panel, IUIViewAdapter adapter)
  40. {
  41. SysMenuCtrl = panel.GetController("SysMenuCtrl");
  42. PlayerHead = panel.GetChild("PlayerHead") as GLoader;
  43. PlayerPowerIcon = panel.GetChild("PlayerPowerIcon") as GLoader;
  44. PlayerLvTxt = panel.GetChild("PlayerLvTxt") as GTextField;
  45. PlayerNameTxt = panel.GetChild("PlayerNameTxt") as GTextField;
  46. PlayerPowerTxt = panel.GetChild("PlayerPowerTxt") as GTextField;
  47. GoldNested = adapter.CreateNested<MainCurrencyNestedView>(new FguiNested(panel.GetChild("GoldNested").asCom), true);
  48. AddChild(GoldNested);
  49. DiamonNested = adapter.CreateNested<MainCurrencyNestedView>(new FguiNested(panel.GetChild("DiamonNested").asCom), true);
  50. AddChild(DiamonNested);
  51. SysMenuBtn = panel.GetChild("SysMenuBtn") as GButton;
  52. Top = panel.GetChild("Top") as GGroup;
  53. FriendBtn = panel.GetChild("FriendBtn") as GButton;
  54. MailBtn = panel.GetChild("MailBtn") as GButton;
  55. NoticeBtn = panel.GetChild("NoticeBtn") as GButton;
  56. SettingBtn = panel.GetChild("SettingBtn") as GButton;
  57. ExchangeBtn = panel.GetChild("ExchangeBtn") as GButton;
  58. BagBtn = panel.GetChild("BagBtn") as GButton;
  59. SysMenu = panel.GetChild("SysMenu") as GGroup;
  60. MapRewardBtn = panel.GetChild("MapRewardBtn") as GButton;
  61. Bottom = panel.GetChild("Bottom") as GGroup;
  62. }
  63. }
  64. }