PlayerMainPanelVM.Gen.cs 4.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  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 CommonItemBaseView Weapon { get; private set; }
  21. public CommonItemBaseView Clothes { get; private set; }
  22. public CommonItemBaseView Helmet { get; private set; }
  23. public CommonItemBaseView Hand { get; private set; }
  24. public CommonItemBaseView Boots { get; private set; }
  25. public CommonItemBaseView Pants { get; private set; }
  26. public GLoader TitleIcon { get; private set; }
  27. public GLoader3D PlayerSpine { get; private set; }
  28. public GProgressBar ExpBar { get; private set; }
  29. public GTextField NameLabel { get; private set; }
  30. public GTextField LvLabl { get; private set; }
  31. public GGroup TopUI { get; private set; }
  32. public GTextField HpLabel { get; private set; }
  33. public GTextField AtkLabel { get; private set; }
  34. public GTextField DefLabel { get; private set; }
  35. public GTextField AtkSpeedLabel { get; private set; }
  36. public GButton AttrInfoBtn { get; private set; }
  37. public GTextField SkillNameLabl { get; private set; }
  38. public GTextField SkillDescLabl { get; private set; }
  39. public GButton SkillBtn { get; private set; }
  40. public GButton ChangeBtn { get; private set; }
  41. public GButton MountBtn { get; private set; }
  42. public GButton ArtifactBtn { get; private set; }
  43. public GButton ContractBtn { get; private set; }
  44. public GButton JewelryBtn { get; private set; }
  45. public GButton NotOpenBtn1 { get; private set; }
  46. public GButton NotOpenBtn2 { get; private set; }
  47. public GGroup BottomUI { get; private set; }
  48. protected override void BindComponents(GComponent panel, IUIViewAdapter adapter)
  49. {
  50. Weapon = adapter.CreateNested<CommonItemBaseView>(new FguiNested(panel.GetChild("Weapon").asCom), true);
  51. Clothes = adapter.CreateNested<CommonItemBaseView>(new FguiNested(panel.GetChild("Clothes").asCom), true);
  52. Helmet = adapter.CreateNested<CommonItemBaseView>(new FguiNested(panel.GetChild("Helmet").asCom), true);
  53. Hand = adapter.CreateNested<CommonItemBaseView>(new FguiNested(panel.GetChild("Hand").asCom), true);
  54. Boots = adapter.CreateNested<CommonItemBaseView>(new FguiNested(panel.GetChild("Boots").asCom), true);
  55. Pants = adapter.CreateNested<CommonItemBaseView>(new FguiNested(panel.GetChild("Pants").asCom), true);
  56. TitleIcon = panel.GetChild("TitleIcon") as GLoader;
  57. PlayerSpine = panel.GetChild("PlayerSpine") as GLoader3D;
  58. ExpBar = panel.GetChild("ExpBar") as GProgressBar;
  59. NameLabel = panel.GetChild("NameLabel") as GTextField;
  60. LvLabl = panel.GetChild("LvLabl") as GTextField;
  61. TopUI = panel.GetChild("topUI") as GGroup;
  62. HpLabel = panel.GetChild("HpLabel") as GTextField;
  63. AtkLabel = panel.GetChild("AtkLabel") as GTextField;
  64. DefLabel = panel.GetChild("DefLabel") as GTextField;
  65. AtkSpeedLabel = panel.GetChild("AtkSpeedLabel") as GTextField;
  66. AttrInfoBtn = panel.GetChild("AttrInfoBtn") as GButton;
  67. SkillNameLabl = panel.GetChild("SkillNameLabl") as GTextField;
  68. SkillDescLabl = panel.GetChild("SkillDescLabl") as GTextField;
  69. SkillBtn = panel.GetChild("SkillBtn") as GButton;
  70. ChangeBtn = panel.GetChild("ChangeBtn") as GButton;
  71. MountBtn = panel.GetChild("MountBtn") as GButton;
  72. ArtifactBtn = panel.GetChild("ArtifactBtn") as GButton;
  73. ContractBtn = panel.GetChild("ContractBtn") as GButton;
  74. JewelryBtn = panel.GetChild("JewelryBtn") as GButton;
  75. NotOpenBtn1 = panel.GetChild("NotOpenBtn1") as GButton;
  76. NotOpenBtn2 = panel.GetChild("NotOpenBtn2") as GButton;
  77. BottomUI = panel.GetChild("bottomUI") as GGroup;
  78. }
  79. }
  80. }