MountDevelopPanelVM.Gen.cs 7.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  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 MountDevelopPanelVM : FguiViewModel
  19. {
  20. public Controller PageCtrl { get; private set; }
  21. public Controller AdvanceMountStateCtrl { get; private set; }
  22. public Controller RideCtrl { get; private set; }
  23. public Controller UpgradeCtrl { get; private set; }
  24. public Controller MaxUpgradeStep { get; private set; }
  25. public Controller SkillCtrl { get; private set; }
  26. public CommonBackGroundNestedView MaskBg { get; private set; }
  27. public GButton UpgradeBtn { get; private set; }
  28. public GButton TrainBtn { get; private set; }
  29. public GButton AdvancedMountBtn { get; private set; }
  30. public GTextField MountNameLabel { get; private set; }
  31. public GComponent MountStar { get; private set; }
  32. public GLoader MountPicture { get; private set; }
  33. public GLoader TrainMountPicture { get; private set; }
  34. public GButton LastBtn { get; private set; }
  35. public GButton NextBtn { get; private set; }
  36. public GButton RideBtn { get; private set; }
  37. public GTextField SpecialStarLvLabel { get; private set; }
  38. public MountAttrItemListView SpecialAttrItem { get; private set; }
  39. public GTextField NextStarLvLabel { get; private set; }
  40. public GTextField BaseStarLvLabel { get; private set; }
  41. public GList BaseAttrList { get; private set; }
  42. public GComponent StarBar { get; private set; }
  43. public GProgressBar ExpBar { get; private set; }
  44. public CommonComCostNestedView FeedCostItem { get; private set; }
  45. public GButton FeedBtn { get; private set; }
  46. public GButton OneClickFeedingBtn { get; private set; }
  47. public GProgressBar TrainExpBar { get; private set; }
  48. public MountTrainingAreaNestedView TrainingTheHead { get; private set; }
  49. public MountTrainingAreaNestedView TrainingTheBody { get; private set; }
  50. public MountTrainingAreaNestedView TrainingFeet { get; private set; }
  51. public GTextField TrainTotalLvLabel { get; private set; }
  52. public GTextField TrainRateLabel { get; private set; }
  53. public GButton UpgradePreviewBtn { get; private set; }
  54. public GButton EnableSkillBtn { get; private set; }
  55. public GLoader SkillIcon { get; private set; }
  56. public GTextField SkillNameLabel { get; private set; }
  57. public GTextField SkillDescLabel { get; private set; }
  58. public GTextField MountAttrDescLabel { get; private set; }
  59. public GTextField NextMountAttrDescLabel { get; private set; }
  60. public CommonItemBaseView UnlockMountItem { get; private set; }
  61. public GButton UpgradeMountBtn { get; private set; }
  62. public GButton UnlockMountBtn { get; private set; }
  63. public GList AdvancedMountList { get; private set; }
  64. public GTextField UnLockModelLabel { get; private set; }
  65. protected override void BindComponents(GComponent panel, IUIViewAdapter adapter)
  66. {
  67. PageCtrl = panel.GetController("PageCtrl");
  68. AdvanceMountStateCtrl = panel.GetController("AdvanceMountStateCtrl");
  69. RideCtrl = panel.GetController("RideCtrl");
  70. UpgradeCtrl = panel.GetController("UpgradeCtrl");
  71. MaxUpgradeStep = panel.GetController("MaxUpgradeStep");
  72. SkillCtrl = panel.GetController("SkillCtrl");
  73. MaskBg = adapter.CreateNested<CommonBackGroundNestedView>(new FguiNested(panel.GetChild("MaskBg").asCom), true);
  74. AddChild(MaskBg);
  75. UpgradeBtn = panel.GetChild("UpgradeBtn") as GButton;
  76. TrainBtn = panel.GetChild("TrainBtn") as GButton;
  77. AdvancedMountBtn = panel.GetChild("AdvancedMountBtn") as GButton;
  78. MountNameLabel = panel.GetChild("MountNameLabel") as GTextField;
  79. MountStar = panel.GetChild("MountStar") as GComponent;
  80. MountPicture = panel.GetChild("MountPicture") as GLoader;
  81. TrainMountPicture = panel.GetChild("TrainMountPicture") as GLoader;
  82. LastBtn = panel.GetChild("LastBtn") as GButton;
  83. NextBtn = panel.GetChild("NextBtn") as GButton;
  84. RideBtn = panel.GetChild("RideBtn") as GButton;
  85. SpecialStarLvLabel = panel.GetChild("SpecialStarLvLabel") as GTextField;
  86. SpecialAttrItem = adapter.CreateNested<MountAttrItemListView>(new FguiNested(panel.GetChild("SpecialAttrItem").asCom), true);
  87. AddChild(SpecialAttrItem);
  88. NextStarLvLabel = panel.GetChild("NextStarLvLabel") as GTextField;
  89. BaseStarLvLabel = panel.GetChild("BaseStarLvLabel") as GTextField;
  90. BaseAttrList = panel.GetChild("BaseAttrList") as GList;
  91. BaseAttrList.Init(typeof(MountAttrItemListView), adapter.CreateListItem);
  92. StarBar = panel.GetChild("StarBar") as GComponent;
  93. ExpBar = panel.GetChild("ExpBar") as GProgressBar;
  94. FeedCostItem = adapter.CreateNested<CommonComCostNestedView>(new FguiNested(panel.GetChild("FeedCostItem").asCom), true);
  95. AddChild(FeedCostItem);
  96. FeedBtn = panel.GetChild("FeedBtn") as GButton;
  97. OneClickFeedingBtn = panel.GetChild("OneClickFeedingBtn") as GButton;
  98. TrainExpBar = panel.GetChild("TrainExpBar") as GProgressBar;
  99. TrainingTheHead = adapter.CreateNested<MountTrainingAreaNestedView>(new FguiNested(panel.GetChild("TrainingTheHead").asCom), true);
  100. AddChild(TrainingTheHead);
  101. TrainingTheBody = adapter.CreateNested<MountTrainingAreaNestedView>(new FguiNested(panel.GetChild("TrainingTheBody").asCom), true);
  102. AddChild(TrainingTheBody);
  103. TrainingFeet = adapter.CreateNested<MountTrainingAreaNestedView>(new FguiNested(panel.GetChild("TrainingFeet").asCom), true);
  104. AddChild(TrainingFeet);
  105. TrainTotalLvLabel = panel.GetChild("TrainTotalLvLabel") as GTextField;
  106. TrainRateLabel = panel.GetChild("TrainRateLabel") as GTextField;
  107. UpgradePreviewBtn = panel.GetChild("UpgradePreviewBtn") as GButton;
  108. EnableSkillBtn = panel.GetChild("EnableSkillBtn") as GButton;
  109. SkillIcon = panel.GetChild("SkillIcon") as GLoader;
  110. SkillNameLabel = panel.GetChild("SkillNameLabel") as GTextField;
  111. SkillDescLabel = panel.GetChild("SkillDescLabel") as GTextField;
  112. MountAttrDescLabel = panel.GetChild("MountAttrDescLabel") as GTextField;
  113. NextMountAttrDescLabel = panel.GetChild("NextMountAttrDescLabel") as GTextField;
  114. UnlockMountItem = adapter.CreateNested<CommonItemBaseView>(new FguiNested(panel.GetChild("UnlockMountItem").asCom), true);
  115. AddChild(UnlockMountItem);
  116. UpgradeMountBtn = panel.GetChild("UpgradeMountBtn") as GButton;
  117. UnlockMountBtn = panel.GetChild("UnlockMountBtn") as GButton;
  118. AdvancedMountList = panel.GetChild("AdvancedMountList") as GList;
  119. AdvancedMountList.Init(typeof(MountMountListItemView), adapter.CreateListItem);
  120. UnLockModelLabel = panel.GetChild("UnLockModelLabel") as GTextField;
  121. }
  122. }
  123. }