PartnerEpiDetailInfoVM.Gen.cs 2.5 KB

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