PartnerEpiDetailInfoVM.Gen.cs 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  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 PartnerEpiDetailInfoVM : FguiViewModel
  19. {
  20. public Controller HaveState { get; private set; }
  21. public Controller Up { get; private set; }
  22. public Controller HaveAtrr { get; private set; }
  23. public CommonBackGroundNestedView MaskBg { get; private set; }
  24. public PartnerEpiBaseItemView EpiLabel { get; private set; }
  25. public GProgressBar ChipPbar { get; private set; }
  26. public GLoader AttrIcon { get; private set; }
  27. public GTextField NameLabel { get; private set; }
  28. public GTextField DescLabel { get; private set; }
  29. public GTextField AttrLabel { get; private set; }
  30. public GButton UpBtn { get; private set; }
  31. public GButton DownBtn { get; private set; }
  32. public GButton GotoBtn { get; private set; }
  33. public GButton RankUpBtn { get; private set; }
  34. public GList EffectList { get; private set; }
  35. protected override void BindComponents(GComponent panel, IUIViewAdapter adapter)
  36. {
  37. HaveState = panel.GetController("HaveState");
  38. Up = panel.GetController("up");
  39. HaveAtrr = panel.GetController("haveAtrr");
  40. MaskBg = adapter.CreateNested<CommonBackGroundNestedView>(new FguiNested(panel.GetChild("MaskBg").asCom), true);
  41. AddChild(MaskBg);
  42. EpiLabel = adapter.CreateNested<PartnerEpiBaseItemView>(new FguiNested(panel.GetChild("EpiLabel").asCom), true);
  43. AddChild(EpiLabel);
  44. ChipPbar = panel.GetChild("ChipPbar") as GProgressBar;
  45. AttrIcon = panel.GetChild("AttrIcon") as GLoader;
  46. NameLabel = panel.GetChild("NameLabel") as GTextField;
  47. DescLabel = panel.GetChild("DescLabel") as GTextField;
  48. AttrLabel = panel.GetChild("AttrLabel") as GTextField;
  49. UpBtn = panel.GetChild("UpBtn") as GButton;
  50. DownBtn = panel.GetChild("DownBtn") as GButton;
  51. GotoBtn = panel.GetChild("GotoBtn") as GButton;
  52. RankUpBtn = panel.GetChild("RankUpBtn") as GButton;
  53. EffectList = panel.GetChild("EffectList") as GList;
  54. EffectList.Init(typeof(PartnerEpiDetailListItemView), adapter.CreateListItem);
  55. }
  56. }
  57. }