DragonEggTreasurePanelVM.Gen.cs 3.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  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 DragonEggTreasurePanelVM : FguiViewModel
  19. {
  20. public Controller MenusBtnCtrl { get; private set; }
  21. public Controller AwardState { get; private set; }
  22. public GProgressBar EggPointBar { get; private set; }
  23. public GTextField ScoreAwardLabel { get; private set; }
  24. public GButton BoxAwardBtn { get; private set; }
  25. public GButton BagBtn { get; private set; }
  26. public GGroup TopUI { get; private set; }
  27. public GImage DescBg { get; private set; }
  28. public GLoader DragonIcon { get; private set; }
  29. public GTextField ProbalityLabel { get; private set; }
  30. public GTextField NumLabel { get; private set; }
  31. public GLoader3D DragonSpine { get; private set; }
  32. public GButton PreviousBtn { get; private set; }
  33. public GButton NextBtn { get; private set; }
  34. public GButton DragonSpineBtn { 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. public GButton LevelBtn { get; private set; }
  41. public GGroup BottomUI { get; private set; }
  42. protected override void BindComponents(GComponent panel, IUIViewAdapter adapter)
  43. {
  44. MenusBtnCtrl = panel.GetController("MenusBtnCtrl");
  45. AwardState = panel.GetController("AwardState");
  46. EggPointBar = panel.GetChild("EggPointBar") as GProgressBar;
  47. ScoreAwardLabel = panel.GetChild("ScoreAwardLabel") as GTextField;
  48. BoxAwardBtn = panel.GetChild("BoxAwardBtn") as GButton;
  49. BagBtn = panel.GetChild("BagBtn") as GButton;
  50. TopUI = panel.GetChild("TopUI") as GGroup;
  51. DescBg = panel.GetChild("DescBg") as GImage;
  52. DragonIcon = panel.GetChild("DragonIcon") as GLoader;
  53. ProbalityLabel = panel.GetChild("ProbalityLabel") as GTextField;
  54. NumLabel = panel.GetChild("NumLabel") as GTextField;
  55. DragonSpine = panel.GetChild("DragonSpine") as GLoader3D;
  56. PreviousBtn = panel.GetChild("PreviousBtn") as GButton;
  57. NextBtn = panel.GetChild("NextBtn") as GButton;
  58. DragonSpineBtn = panel.GetChild("DragonSpineBtn") as GButton;
  59. DragonBtn1 = panel.GetChild("DragonBtn1") as GButton;
  60. DragonBtn2 = panel.GetChild("DragonBtn2") as GButton;
  61. DragonBtn3 = panel.GetChild("DragonBtn3") as GButton;
  62. DragonBtn4 = panel.GetChild("DragonBtn4") as GButton;
  63. DragonBtn5 = panel.GetChild("DragonBtn5") as GButton;
  64. LevelBtn = panel.GetChild("LevelBtn") as GButton;
  65. BottomUI = panel.GetChild("BottomUI") as GGroup;
  66. }
  67. }
  68. }