MountUpgradeNestedVM.Gen.cs 3.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  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 MountUpgradeNestedVM : FguiViewModel
  19. {
  20. public Controller RideCtrl { get; private set; }
  21. public Controller MaxUpgradeStep { get; private set; }
  22. public GTextField MountNameLabel { get; private set; }
  23. public GLoader3D MountSpine { get; private set; }
  24. public GButton LastBtn { get; private set; }
  25. public GButton NextBtn { get; private set; }
  26. public GButton RideBtn { get; private set; }
  27. public GTextField MountStepLvLabel { get; private set; }
  28. public MountAttrItemListView SpecialAttrItem { get; private set; }
  29. public GTextField NextStepLvLabel { get; private set; }
  30. public GTextField BaseStarLvLabel { get; private set; }
  31. public GTextField NextStarLvLabel { get; private set; }
  32. public GList BaseAttrList { get; private set; }
  33. public GComponent StarBar { get; private set; }
  34. public GProgressBar ExpBar { get; private set; }
  35. public CommonComCostNestedView FeedCostItem { get; private set; }
  36. public GButton FeedBtn { get; private set; }
  37. public GButton OneClickFeedingBtn { get; private set; }
  38. public GTextField UnLockModelLabel { get; private set; }
  39. protected override void BindComponents(GComponent panel, IUIViewAdapter adapter)
  40. {
  41. RideCtrl = panel.GetController("RideCtrl");
  42. MaxUpgradeStep = panel.GetController("MaxUpgradeStep");
  43. MountNameLabel = panel.GetChild("MountNameLabel") as GTextField;
  44. MountSpine = panel.GetChild("MountSpine") as GLoader3D;
  45. LastBtn = panel.GetChild("LastBtn") as GButton;
  46. NextBtn = panel.GetChild("NextBtn") as GButton;
  47. RideBtn = panel.GetChild("RideBtn") as GButton;
  48. MountStepLvLabel = panel.GetChild("MountStepLvLabel") as GTextField;
  49. SpecialAttrItem = adapter.CreateNested<MountAttrItemListView>(new FguiNested(panel.GetChild("SpecialAttrItem").asCom), true);
  50. AddChild(SpecialAttrItem);
  51. NextStepLvLabel = panel.GetChild("NextStepLvLabel") as GTextField;
  52. BaseStarLvLabel = panel.GetChild("BaseStarLvLabel") as GTextField;
  53. NextStarLvLabel = panel.GetChild("NextStarLvLabel") as GTextField;
  54. BaseAttrList = panel.GetChild("BaseAttrList") as GList;
  55. BaseAttrList.Init(typeof(MountAttrItemListView), adapter.CreateListItem);
  56. StarBar = panel.GetChild("StarBar") as GComponent;
  57. ExpBar = panel.GetChild("ExpBar") as GProgressBar;
  58. FeedCostItem = adapter.CreateNested<CommonComCostNestedView>(new FguiNested(panel.GetChild("FeedCostItem").asCom), true);
  59. AddChild(FeedCostItem);
  60. FeedBtn = panel.GetChild("FeedBtn") as GButton;
  61. OneClickFeedingBtn = panel.GetChild("OneClickFeedingBtn") as GButton;
  62. UnLockModelLabel = panel.GetChild("UnLockModelLabel") as GTextField;
  63. }
  64. }
  65. }