DragonEggBoxVM.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 DragonEggBoxVM : FguiViewModel
  19. {
  20. public Controller MenusBtnCtrl { get; private set; }
  21. public Controller AwardState { get; private set; }
  22. public DragonEggEquipmentUIView EquipUI { get; private set; }
  23. public GProgressBar EggPointBar { get; private set; }
  24. public GLoader3D DragonSpine { get; private set; }
  25. public GButton BoxAwardBtn { get; private set; }
  26. public GButton AutoBtn { get; private set; }
  27. public GButton NextBtn { get; private set; }
  28. public GButton LastBtn { get; private set; }
  29. public GButton BagBtn { get; private set; }
  30. public GButton DragonSpineBtn { get; private set; }
  31. public GTextField DragonLabel { get; private set; }
  32. public GTextField AttackLabel { get; private set; }
  33. public GTextField HpLabel { get; private set; }
  34. public GTextField DefenseLabel { get; private set; }
  35. public GButton DragonBtn1 { get; private set; }
  36. public GButton DragonBtn2 { get; private set; }
  37. public GButton DragonBtn3 { get; private set; }
  38. public GButton DragonBtn4 { get; private set; }
  39. public GButton DragonBtn5 { get; private set; }
  40. protected override void BindComponents(GComponent panel, IUIViewAdapter adapter)
  41. {
  42. MenusBtnCtrl = panel.GetController("MenusBtnCtrl");
  43. AwardState = panel.GetController("AwardState");
  44. EquipUI = adapter.CreateNested<DragonEggEquipmentUIView>(new FguiNested(panel.GetChild("EquipUI").asCom), true);
  45. EggPointBar = panel.GetChild("EggPointBar") as GProgressBar;
  46. DragonSpine = panel.GetChild("DragonSpine") as GLoader3D;
  47. BoxAwardBtn = panel.GetChild("BoxAwardBtn") as GButton;
  48. AutoBtn = panel.GetChild("AutoBtn") as GButton;
  49. NextBtn = panel.GetChild("NextBtn") as GButton;
  50. LastBtn = panel.GetChild("LastBtn") as GButton;
  51. BagBtn = panel.GetChild("BagBtn") as GButton;
  52. DragonSpineBtn = panel.GetChild("DragonSpineBtn") as GButton;
  53. DragonLabel = panel.GetChild("DragonLabel") as GTextField;
  54. AttackLabel = panel.GetChild("AttackLabel") as GTextField;
  55. HpLabel = panel.GetChild("HpLabel") as GTextField;
  56. DefenseLabel = panel.GetChild("DefenseLabel") as GTextField;
  57. DragonBtn1 = panel.GetChild("DragonBtn1") as GButton;
  58. DragonBtn2 = panel.GetChild("DragonBtn2") as GButton;
  59. DragonBtn3 = panel.GetChild("DragonBtn3") as GButton;
  60. DragonBtn4 = panel.GetChild("DragonBtn4") as GButton;
  61. DragonBtn5 = panel.GetChild("DragonBtn5") as GButton;
  62. }
  63. }
  64. }