PartnerSbMainPanelVM.Gen.cs 3.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  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 PartnerSbMainPanelVM : FguiViewModel
  19. {
  20. public Controller UpPartner { get; private set; }
  21. public Controller IsEmpty { get; private set; }
  22. public Controller Page { get; private set; }
  23. public GTextField AttrLabel { get; private set; }
  24. public PartnerSbDetailNestedView SbDetailNested { get; private set; }
  25. public PartnerMwDetailNestedView MwDetailNested { get; private set; }
  26. public GButton ReplaceBtn { get; private set; }
  27. public GImage CanUpImg { get; private set; }
  28. public GButton StrengthBtn { get; private set; }
  29. public GButton OneUpBtn { get; private set; }
  30. public GButton RecommendBtn { get; private set; }
  31. public GButton SbBagBtn { get; private set; }
  32. public GButton MwBagBtn { get; private set; }
  33. public GImage DownArr { get; private set; }
  34. public GButton MaskBtn { get; private set; }
  35. public GList SbList { get; private set; }
  36. public GButton ConfirmBtn { get; private set; }
  37. public GButton CancelBtn { get; private set; }
  38. public GImage ChangeArr { get; private set; }
  39. protected override void BindComponents(GComponent panel, IUIViewAdapter adapter)
  40. {
  41. UpPartner = panel.GetController("UpPartner");
  42. IsEmpty = panel.GetController("IsEmpty");
  43. Page = panel.GetController("Page");
  44. AttrLabel = panel.GetChild("AttrLabel") as GTextField;
  45. SbDetailNested = adapter.CreateNested<PartnerSbDetailNestedView>(new FguiNested(panel.GetChild("SbDetailNested").asCom), true);
  46. AddChild(SbDetailNested);
  47. MwDetailNested = adapter.CreateNested<PartnerMwDetailNestedView>(new FguiNested(panel.GetChild("MwDetailNested").asCom), true);
  48. AddChild(MwDetailNested);
  49. ReplaceBtn = panel.GetChild("ReplaceBtn") as GButton;
  50. CanUpImg = panel.GetChild("CanUpImg") as GImage;
  51. StrengthBtn = panel.GetChild("StrengthBtn") as GButton;
  52. OneUpBtn = panel.GetChild("OneUpBtn") as GButton;
  53. RecommendBtn = panel.GetChild("RecommendBtn") as GButton;
  54. SbBagBtn = panel.GetChild("SbBagBtn") as GButton;
  55. MwBagBtn = panel.GetChild("MwBagBtn") as GButton;
  56. DownArr = panel.GetChild("DownArr") as GImage;
  57. MaskBtn = panel.GetChild("MaskBtn") as GButton;
  58. SbList = panel.GetChild("SbList") as GList;
  59. SbList.Init(typeof(PartnerSbUpListItemView), adapter.CreateListItem);
  60. ConfirmBtn = panel.GetChild("ConfirmBtn") as GButton;
  61. CancelBtn = panel.GetChild("CancelBtn") as GButton;
  62. ChangeArr = panel.GetChild("ChangeArr") as GImage;
  63. }
  64. }
  65. }