TreasureChestUpgradePanelVM.Gen.cs 4.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  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 TreasureChestUpgradePanelVM : FguiViewModel
  19. {
  20. public Controller PageCtrl { get; private set; }
  21. public Controller UpgradeCtrl { get; private set; }
  22. public Controller CdTimeCtrl { get; private set; }
  23. public Controller MaxLvCtrl { get; private set; }
  24. public Controller AssistCtrl { get; private set; }
  25. public CommonBackGroundNestedView Background { get; private set; }
  26. public GLabel PopWin { get; private set; }
  27. public GTextField CurLvLabel { get; private set; }
  28. public GTextField NextLvLabel { get; private set; }
  29. public CommonComCurrencyNestedView GoldResItem { get; private set; }
  30. public CommonComCurrencyNestedView AccelerationResItem { get; private set; }
  31. public GTextField EndTimeLabel { get; private set; }
  32. public GTextField AdNumLabel { get; private set; }
  33. public GTextField CdTimeLabel { get; private set; }
  34. public GButton ReduceTimeBtn { get; private set; }
  35. public GButton AssistBtn { get; private set; }
  36. public GButton AccelerationTimeBtn { get; private set; }
  37. public CommonComCostNestedView CostAccelerationResItem { get; private set; }
  38. public GTextField NeedExpLabel { get; private set; }
  39. public GProgressBar BoxLvExpBar { get; private set; }
  40. public GButton UpgradeBtn { get; private set; }
  41. public GList IncomeList { get; private set; }
  42. public GList ProbabilityList { get; private set; }
  43. public GButton ProbabilityBtn { get; private set; }
  44. public GButton IncomeBtn { get; private set; }
  45. protected override void BindComponents(GComponent panel, IUIViewAdapter adapter)
  46. {
  47. PageCtrl = panel.GetController("PageCtrl");
  48. UpgradeCtrl = panel.GetController("UpgradeCtrl");
  49. CdTimeCtrl = panel.GetController("CdTimeCtrl");
  50. MaxLvCtrl = panel.GetController("MaxLvCtrl");
  51. AssistCtrl = panel.GetController("AssistCtrl");
  52. Background = adapter.CreateNested<CommonBackGroundNestedView>(new FguiNested(panel.GetChild("Background").asCom), true);
  53. AddChild(Background);
  54. PopWin = panel.GetChild("PopWin") as GLabel;
  55. CurLvLabel = panel.GetChild("CurLvLabel") as GTextField;
  56. NextLvLabel = panel.GetChild("NextLvLabel") as GTextField;
  57. GoldResItem = adapter.CreateNested<CommonComCurrencyNestedView>(new FguiNested(panel.GetChild("GoldResItem").asCom), true);
  58. AddChild(GoldResItem);
  59. AccelerationResItem = adapter.CreateNested<CommonComCurrencyNestedView>(new FguiNested(panel.GetChild("AccelerationResItem").asCom), true);
  60. AddChild(AccelerationResItem);
  61. EndTimeLabel = panel.GetChild("EndTimeLabel") as GTextField;
  62. AdNumLabel = panel.GetChild("AdNumLabel") as GTextField;
  63. CdTimeLabel = panel.GetChild("CdTimeLabel") as GTextField;
  64. ReduceTimeBtn = panel.GetChild("ReduceTimeBtn") as GButton;
  65. AssistBtn = panel.GetChild("AssistBtn") as GButton;
  66. AccelerationTimeBtn = panel.GetChild("AccelerationTimeBtn") as GButton;
  67. CostAccelerationResItem = adapter.CreateNested<CommonComCostNestedView>(new FguiNested(panel.GetChild("CostAccelerationResItem").asCom), true);
  68. AddChild(CostAccelerationResItem);
  69. NeedExpLabel = panel.GetChild("NeedExpLabel") as GTextField;
  70. BoxLvExpBar = panel.GetChild("BoxLvExpBar") as GProgressBar;
  71. UpgradeBtn = panel.GetChild("UpgradeBtn") as GButton;
  72. IncomeList = panel.GetChild("IncomeList") as GList;
  73. IncomeList.Init(typeof(TreasureChestIncomeListItemView), adapter.CreateListItem);
  74. ProbabilityList = panel.GetChild("ProbabilityList") as GList;
  75. ProbabilityList.Init(typeof(TreasureChestProbabilityListItemView), adapter.CreateListItem);
  76. ProbabilityBtn = panel.GetChild("ProbabilityBtn") as GButton;
  77. IncomeBtn = panel.GetChild("IncomeBtn") as GButton;
  78. }
  79. }
  80. }