PlayerMainPanelVM.Gen.cs 4.3 KB

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