PartnerDetailsPanelVM.Gen.cs 4.8 KB

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