PlayerAwakePanelVM.Gen.cs 4.9 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 PlayerAwakePanelVM : FguiViewModel
  19. {
  20. public Controller LockCtrl { get; private set; }
  21. public Controller LevelCtrl { get; private set; }
  22. public Controller AwakeCtrl { get; private set; }
  23. public GButton PlansNameBtn { get; private set; }
  24. public GButton RenameBtn { get; private set; }
  25. public GLoader3D JobSpine { get; private set; }
  26. public PlayerImprintItemNestedView ImprintItem1 { get; private set; }
  27. public PlayerImprintItemNestedView ImprintItem2 { get; private set; }
  28. public PlayerImprintItemNestedView ImprintItem3 { get; private set; }
  29. public PlayerImprintItemNestedView ImprintItem4 { get; private set; }
  30. public PlayerImprintItemNestedView ImprintItem5 { get; private set; }
  31. public PlayerImprintItemNestedView ImprintItem6 { get; private set; }
  32. public CommonComCurrencyNestedView AwakeCostItem { get; private set; }
  33. public GButton WakeupBtn { get; private set; }
  34. public GButton ResetBtn { get; private set; }
  35. public GButton ChangeImprintBtn { get; private set; }
  36. public GTextField ImprintNameLabel { get; private set; }
  37. public GTextField ImprintDescLabel { get; private set; }
  38. public GButton BackBtn { get; private set; }
  39. public CommonComCurrencyNestedView UpgradeCostItem { get; private set; }
  40. public CommonComCurrencyNestedView TenCostItem { get; private set; }
  41. public GButton UpgradeBtn { get; private set; }
  42. public GButton TenBtn { get; private set; }
  43. public PlayerPlansNameNestedView PlansNameNestedItem { get; private set; }
  44. protected override void BindComponents(GComponent panel, IUIViewAdapter adapter)
  45. {
  46. LockCtrl = panel.GetController("LockCtrl");
  47. LevelCtrl = panel.GetController("LevelCtrl");
  48. AwakeCtrl = panel.GetController("AwakeCtrl");
  49. PlansNameBtn = panel.GetChild("PlansNameBtn") as GButton;
  50. RenameBtn = panel.GetChild("RenameBtn") as GButton;
  51. JobSpine = panel.GetChild("JobSpine") as GLoader3D;
  52. ImprintItem1 = adapter.CreateNested<PlayerImprintItemNestedView>(new FguiNested(panel.GetChild("ImprintItem1").asCom), true);
  53. AddChild(ImprintItem1);
  54. ImprintItem2 = adapter.CreateNested<PlayerImprintItemNestedView>(new FguiNested(panel.GetChild("ImprintItem2").asCom), true);
  55. AddChild(ImprintItem2);
  56. ImprintItem3 = adapter.CreateNested<PlayerImprintItemNestedView>(new FguiNested(panel.GetChild("ImprintItem3").asCom), true);
  57. AddChild(ImprintItem3);
  58. ImprintItem4 = adapter.CreateNested<PlayerImprintItemNestedView>(new FguiNested(panel.GetChild("ImprintItem4").asCom), true);
  59. AddChild(ImprintItem4);
  60. ImprintItem5 = adapter.CreateNested<PlayerImprintItemNestedView>(new FguiNested(panel.GetChild("ImprintItem5").asCom), true);
  61. AddChild(ImprintItem5);
  62. ImprintItem6 = adapter.CreateNested<PlayerImprintItemNestedView>(new FguiNested(panel.GetChild("ImprintItem6").asCom), true);
  63. AddChild(ImprintItem6);
  64. AwakeCostItem = adapter.CreateNested<CommonComCurrencyNestedView>(new FguiNested(panel.GetChild("AwakeCostItem").asCom), true);
  65. AddChild(AwakeCostItem);
  66. WakeupBtn = panel.GetChild("WakeupBtn") as GButton;
  67. ResetBtn = panel.GetChild("ResetBtn") as GButton;
  68. ChangeImprintBtn = panel.GetChild("ChangeImprintBtn") as GButton;
  69. ImprintNameLabel = panel.GetChild("ImprintNameLabel") as GTextField;
  70. ImprintDescLabel = panel.GetChild("ImprintDescLabel") as GTextField;
  71. BackBtn = panel.GetChild("BackBtn") as GButton;
  72. UpgradeCostItem = adapter.CreateNested<CommonComCurrencyNestedView>(new FguiNested(panel.GetChild("UpgradeCostItem").asCom), true);
  73. AddChild(UpgradeCostItem);
  74. TenCostItem = adapter.CreateNested<CommonComCurrencyNestedView>(new FguiNested(panel.GetChild("TenCostItem").asCom), true);
  75. AddChild(TenCostItem);
  76. UpgradeBtn = panel.GetChild("UpgradeBtn") as GButton;
  77. TenBtn = panel.GetChild("TenBtn") as GButton;
  78. PlansNameNestedItem = adapter.CreateNested<PlayerPlansNameNestedView>(new FguiNested(panel.GetChild("PlansNameNestedItem").asCom), true);
  79. AddChild(PlansNameNestedItem);
  80. }
  81. }
  82. }