DragonEggUpgradeVM.Gen.cs 2.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  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 DragonEggUpgradeVM : FguiViewModel
  19. {
  20. public Controller State { get; private set; }
  21. public GTextField GoldNumLabel { get; private set; }
  22. public GButton GoldAddBtn { get; private set; }
  23. public GTextField PropNumLabel { get; private set; }
  24. public GButton PropAddBtn { get; private set; }
  25. public GTextField CurLv { get; private set; }
  26. public GTextField NextLv { get; private set; }
  27. public GTextField MaxLv { get; private set; }
  28. public GTextField UnLockLabel { get; private set; }
  29. public GTextField CdLabel { get; private set; }
  30. public GTextField NeedTimeLabel { get; private set; }
  31. public GList EggQualityList { get; private set; }
  32. public GProgressBar EggEnergyBar { get; private set; }
  33. public GButton UpgradeBtn { get; private set; }
  34. public GButton BuyBtn { get; private set; }
  35. public GButton AdBtn { get; private set; }
  36. public GButton SpeedBtn { get; private set; }
  37. public GButton CloseBtn { get; private set; }
  38. protected override void BindComponents(GComponent panel, IUIViewAdapter adapter)
  39. {
  40. State = panel.GetController("State");
  41. GoldNumLabel = panel.GetChild("GoldNumLabel") as GTextField;
  42. GoldAddBtn = panel.GetChild("GoldAddBtn") as GButton;
  43. PropNumLabel = panel.GetChild("PropNumLabel") as GTextField;
  44. PropAddBtn = panel.GetChild("PropAddBtn") as GButton;
  45. CurLv = panel.GetChild("CurLv") as GTextField;
  46. NextLv = panel.GetChild("NextLv") as GTextField;
  47. MaxLv = panel.GetChild("MaxLv") as GTextField;
  48. UnLockLabel = panel.GetChild("UnLockLabel") as GTextField;
  49. CdLabel = panel.GetChild("CdLabel") as GTextField;
  50. NeedTimeLabel = panel.GetChild("NeedTimeLabel") as GTextField;
  51. EggQualityList = panel.GetChild("EggQualityList") as GList;
  52. EggQualityList.Init(typeof(DragonEggEggQualityListView), adapter.CreateListItem);
  53. EggEnergyBar = panel.GetChild("EggEnergyBar") as GProgressBar;
  54. UpgradeBtn = panel.GetChild("UpgradeBtn") as GButton;
  55. BuyBtn = panel.GetChild("BuyBtn") as GButton;
  56. AdBtn = panel.GetChild("AdBtn") as GButton;
  57. SpeedBtn = panel.GetChild("SpeedBtn") as GButton;
  58. CloseBtn = panel.GetChild("CloseBtn") as GButton;
  59. }
  60. }
  61. }