PlayerMainPanelVM.Gen.cs 3.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  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 PlayerMainPanelVM : FguiViewModel
  19. {
  20. public Controller SuperlativeCtrl { get; private set; }
  21. public CommonItemBaseView Weapon { get; private set; }
  22. public CommonItemBaseView Clothes { get; private set; }
  23. public CommonItemBaseView Helmet { get; private set; }
  24. public CommonItemBaseView Hand { get; private set; }
  25. public CommonItemBaseView Boots { get; private set; }
  26. public CommonItemBaseView Pants { get; private set; }
  27. public GLoader TitleIcon { get; private set; }
  28. public GLoader3D PlayerSpine { get; private set; }
  29. public GProgressBar ExpBar { get; private set; }
  30. public GTextField NameLabel { get; private set; }
  31. public GTextField LvLabl { get; private set; }
  32. public GButton UpgradeLvBtn { get; private set; }
  33. public GButton MountBtn { get; private set; }
  34. public GButton ArtifactBtn { get; private set; }
  35. public GButton ContractBtn { get; private set; }
  36. public GButton JewelryBtn { get; private set; }
  37. public GButton NotOpenBtn1 { get; private set; }
  38. public GButton NotOpenBtn2 { get; private set; }
  39. public PlayerJokSkillNestedView JokSkillNested { get; private set; }
  40. protected override void BindComponents(GComponent panel, IUIViewAdapter adapter)
  41. {
  42. SuperlativeCtrl = panel.GetController("SuperlativeCtrl");
  43. Weapon = adapter.CreateNested<CommonItemBaseView>(new FguiNested(panel.GetChild("Weapon").asCom), true);
  44. AddChild(Weapon);
  45. Clothes = adapter.CreateNested<CommonItemBaseView>(new FguiNested(panel.GetChild("Clothes").asCom), true);
  46. AddChild(Clothes);
  47. Helmet = adapter.CreateNested<CommonItemBaseView>(new FguiNested(panel.GetChild("Helmet").asCom), true);
  48. AddChild(Helmet);
  49. Hand = adapter.CreateNested<CommonItemBaseView>(new FguiNested(panel.GetChild("Hand").asCom), true);
  50. AddChild(Hand);
  51. Boots = adapter.CreateNested<CommonItemBaseView>(new FguiNested(panel.GetChild("Boots").asCom), true);
  52. AddChild(Boots);
  53. Pants = adapter.CreateNested<CommonItemBaseView>(new FguiNested(panel.GetChild("Pants").asCom), true);
  54. AddChild(Pants);
  55. TitleIcon = panel.GetChild("TitleIcon") as GLoader;
  56. PlayerSpine = panel.GetChild("PlayerSpine") as GLoader3D;
  57. ExpBar = panel.GetChild("ExpBar") as GProgressBar;
  58. NameLabel = panel.GetChild("NameLabel") as GTextField;
  59. LvLabl = panel.GetChild("LvLabl") as GTextField;
  60. UpgradeLvBtn = panel.GetChild("UpgradeLvBtn") as GButton;
  61. MountBtn = panel.GetChild("MountBtn") as GButton;
  62. ArtifactBtn = panel.GetChild("ArtifactBtn") as GButton;
  63. ContractBtn = panel.GetChild("ContractBtn") as GButton;
  64. JewelryBtn = panel.GetChild("JewelryBtn") as GButton;
  65. NotOpenBtn1 = panel.GetChild("NotOpenBtn1") as GButton;
  66. NotOpenBtn2 = panel.GetChild("NotOpenBtn2") as GButton;
  67. JokSkillNested = adapter.CreateNested<PlayerJokSkillNestedView>(new FguiNested(panel.GetChild("JokSkillNested").asCom), true);
  68. AddChild(JokSkillNested);
  69. }
  70. }
  71. }