PlayerPreviewItemNestedVM.Gen.cs 4.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  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 PlayerPreviewItemNestedVM : FguiViewModel
  19. {
  20. public Controller UpperCtrl { get; private set; }
  21. public Controller LowerCtrl { get; private set; }
  22. public Controller JobCtrl { get; private set; }
  23. public GLoader Lv30_icon { get; private set; }
  24. public GLoader Lv30_1_icon { get; private set; }
  25. public GLoader Lv30_1_2_icon { get; private set; }
  26. public GLoader Lv30_2_icon { get; private set; }
  27. public GLoader Lv30_2_2_icon { get; private set; }
  28. public GLoader Lv60_1_icon { get; private set; }
  29. public GLoader Lv60_2_icon { get; private set; }
  30. public GLoader Lv80_1_icon { get; private set; }
  31. public GLoader Lv80_2_icon { get; private set; }
  32. public GLoader Lv100_1_icon { get; private set; }
  33. public GLoader Lv100_2_icon { get; private set; }
  34. public PlayerJobPrrviewItemNestedView JobLv30 { get; private set; }
  35. public PlayerJobPrrviewItemNestedView JobLv60_1 { get; private set; }
  36. public PlayerJobPrrviewItemNestedView JobLv60_2 { get; private set; }
  37. public PlayerJobPrrviewItemNestedView JobLv80_1 { get; private set; }
  38. public PlayerJobPrrviewItemNestedView JobLv80_2 { get; private set; }
  39. public PlayerJobPrrviewItemNestedView JobLv100_1 { get; private set; }
  40. public PlayerJobPrrviewItemNestedView JobLv100_2 { get; private set; }
  41. public PlayerJobPrrviewItemNestedView JobLv120_1 { get; private set; }
  42. public PlayerJobPrrviewItemNestedView JobLv120_2 { get; private set; }
  43. protected override void BindComponents(GComponent panel, IUIViewAdapter adapter)
  44. {
  45. UpperCtrl = panel.GetController("UpperCtrl");
  46. LowerCtrl = panel.GetController("LowerCtrl");
  47. JobCtrl = panel.GetController("JobCtrl");
  48. Lv30_icon = panel.GetChild("Lv30_icon") as GLoader;
  49. Lv30_1_icon = panel.GetChild("Lv30_1_icon") as GLoader;
  50. Lv30_1_2_icon = panel.GetChild("Lv30_1_2_icon") as GLoader;
  51. Lv30_2_icon = panel.GetChild("Lv30_2_icon") as GLoader;
  52. Lv30_2_2_icon = panel.GetChild("Lv30_2_2_icon") as GLoader;
  53. Lv60_1_icon = panel.GetChild("Lv60_1_icon") as GLoader;
  54. Lv60_2_icon = panel.GetChild("Lv60_2_icon") as GLoader;
  55. Lv80_1_icon = panel.GetChild("Lv80_1_icon") as GLoader;
  56. Lv80_2_icon = panel.GetChild("Lv80_2_icon") as GLoader;
  57. Lv100_1_icon = panel.GetChild("Lv100_1_icon") as GLoader;
  58. Lv100_2_icon = panel.GetChild("Lv100_2_icon") as GLoader;
  59. JobLv30 = adapter.CreateNested<PlayerJobPrrviewItemNestedView>(new FguiNested(panel.GetChild("JobLv30").asCom), true);
  60. AddChild(JobLv30);
  61. JobLv60_1 = adapter.CreateNested<PlayerJobPrrviewItemNestedView>(new FguiNested(panel.GetChild("JobLv60_1").asCom), true);
  62. AddChild(JobLv60_1);
  63. JobLv60_2 = adapter.CreateNested<PlayerJobPrrviewItemNestedView>(new FguiNested(panel.GetChild("JobLv60_2").asCom), true);
  64. AddChild(JobLv60_2);
  65. JobLv80_1 = adapter.CreateNested<PlayerJobPrrviewItemNestedView>(new FguiNested(panel.GetChild("JobLv80_1").asCom), true);
  66. AddChild(JobLv80_1);
  67. JobLv80_2 = adapter.CreateNested<PlayerJobPrrviewItemNestedView>(new FguiNested(panel.GetChild("JobLv80_2").asCom), true);
  68. AddChild(JobLv80_2);
  69. JobLv100_1 = adapter.CreateNested<PlayerJobPrrviewItemNestedView>(new FguiNested(panel.GetChild("JobLv100_1").asCom), true);
  70. AddChild(JobLv100_1);
  71. JobLv100_2 = adapter.CreateNested<PlayerJobPrrviewItemNestedView>(new FguiNested(panel.GetChild("JobLv100_2").asCom), true);
  72. AddChild(JobLv100_2);
  73. JobLv120_1 = adapter.CreateNested<PlayerJobPrrviewItemNestedView>(new FguiNested(panel.GetChild("JobLv120_1").asCom), true);
  74. AddChild(JobLv120_1);
  75. JobLv120_2 = adapter.CreateNested<PlayerJobPrrviewItemNestedView>(new FguiNested(panel.GetChild("JobLv120_2").asCom), true);
  76. AddChild(JobLv120_2);
  77. }
  78. }
  79. }