PartnerSbMainPanelVM.Gen.cs 2.7 KB

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