PartnerDetailsPanelVM.Gen.cs 4.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  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 PartnerDetailsPanelVM : FguiViewModel
  19. {
  20. public Controller MaxLvCtrl { get; private set; }
  21. public Controller MaxStarCtrl { get; private set; }
  22. public Controller ShowBtnCtrl { get; private set; }
  23. public Controller CanSwitch { get; private set; }
  24. public Controller Have { get; private set; }
  25. public GLoader3D PartnerSpine { get; private set; }
  26. public GLoader PartnerIcon { get; private set; }
  27. public GButton PreviousBtn { get; private set; }
  28. public GButton NextBtn { get; private set; }
  29. public PartnerEpiSetBaseView EpiItem { get; private set; }
  30. public GTextField EpiNameLabel { get; private set; }
  31. public GButton ChangeBtn { get; private set; }
  32. public GGroup TopUI { get; private set; }
  33. public GTextField NameLabel { get; private set; }
  34. public GLoader QualityIcon { get; private set; }
  35. public GLoader SacredVesselsIcon { get; private set; }
  36. public GLoader AttrTypeIcon { get; private set; }
  37. public GTextField TypeLabel { get; private set; }
  38. public GTextField LvLabel { get; private set; }
  39. public GTextField AtkLabel { get; private set; }
  40. public GTextField AtkSpeedLabel { get; private set; }
  41. public GTextField SkillInfoLabel { get; private set; }
  42. public GTextField SkillEffectLabel { get; private set; }
  43. public GList StarRatingList { get; private set; }
  44. public GList StarBuffItemList { get; private set; }
  45. public CommonComCostNestedView UpgradeCostItem { get; private set; }
  46. public GButton DownBtn { get; private set; }
  47. public GButton UpBtn { get; private set; }
  48. public GButton UpLvBtn { get; private set; }
  49. public GButton UpStarBtn { get; private set; }
  50. public GProgressBar StarCostBar { get; private set; }
  51. public GButton BackBtn { get; private set; }
  52. protected override void BindComponents(GComponent panel, IUIViewAdapter adapter)
  53. {
  54. MaxLvCtrl = panel.GetController("MaxLvCtrl");
  55. MaxStarCtrl = panel.GetController("MaxStarCtrl");
  56. ShowBtnCtrl = panel.GetController("ShowBtnCtrl");
  57. CanSwitch = panel.GetController("CanSwitch");
  58. Have = panel.GetController("Have");
  59. PartnerSpine = panel.GetChild("PartnerSpine") as GLoader3D;
  60. PartnerIcon = panel.GetChild("PartnerIcon") as GLoader;
  61. PreviousBtn = panel.GetChild("PreviousBtn") as GButton;
  62. NextBtn = panel.GetChild("NextBtn") as GButton;
  63. EpiItem = adapter.CreateNested<PartnerEpiSetBaseView>(new FguiNested(panel.GetChild("EpiItem").asCom), true);
  64. AddChild(EpiItem);
  65. EpiNameLabel = panel.GetChild("EpiNameLabel") as GTextField;
  66. ChangeBtn = panel.GetChild("ChangeBtn") as GButton;
  67. TopUI = panel.GetChild("topUI") as GGroup;
  68. NameLabel = panel.GetChild("NameLabel") as GTextField;
  69. QualityIcon = panel.GetChild("QualityIcon") as GLoader;
  70. SacredVesselsIcon = panel.GetChild("SacredVesselsIcon") as GLoader;
  71. AttrTypeIcon = panel.GetChild("AttrTypeIcon") as GLoader;
  72. TypeLabel = panel.GetChild("TypeLabel") as GTextField;
  73. LvLabel = panel.GetChild("LvLabel") as GTextField;
  74. AtkLabel = panel.GetChild("AtkLabel") as GTextField;
  75. AtkSpeedLabel = panel.GetChild("AtkSpeedLabel") as GTextField;
  76. SkillInfoLabel = panel.GetChild("SkillInfoLabel") as GTextField;
  77. SkillEffectLabel = panel.GetChild("SkillEffectLabel") as GTextField;
  78. StarRatingList = panel.GetChild("StarRatingList") as GList;
  79. StarRatingList.Init(typeof(PartnerStarListItemView), adapter.CreateListItem);
  80. StarBuffItemList = panel.GetChild("StarBuffItemList") as GList;
  81. StarBuffItemList.Init(typeof(PartnerStarBuffItemView), adapter.CreateListItem);
  82. UpgradeCostItem = adapter.CreateNested<CommonComCostNestedView>(new FguiNested(panel.GetChild("UpgradeCostItem").asCom), true);
  83. AddChild(UpgradeCostItem);
  84. DownBtn = panel.GetChild("DownBtn") as GButton;
  85. UpBtn = panel.GetChild("UpBtn") as GButton;
  86. UpLvBtn = panel.GetChild("UpLvBtn") as GButton;
  87. UpStarBtn = panel.GetChild("UpStarBtn") as GButton;
  88. StarCostBar = panel.GetChild("StarCostBar") as GProgressBar;
  89. BackBtn = panel.GetChild("BackBtn") as GButton;
  90. }
  91. }
  92. }