MainHomePanelVM.Gen.cs 4.1 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 MainHomePanelVM : FguiViewModel
  19. {
  20. public GImage TouXiangBottom { get; private set; }
  21. public GTextField ZLNummber { get; private set; }
  22. public GTextField ApextTan { get; private set; }
  23. public GProgressBar LevelpBar { get; private set; }
  24. public GImage TXKuang { get; private set; }
  25. public GLoader TouXiang { get; private set; }
  26. public GImage PlayerLevelBottom { get; private set; }
  27. public GTextField PlayerLevelNummber { get; private set; }
  28. public GImage Zhandouli { get; private set; }
  29. public GImage GoldBottom01 { get; private set; }
  30. public GTextField GoldNummber { get; private set; }
  31. public GImage Jinbi { get; private set; }
  32. public GButton GoldBtn { get; private set; }
  33. public GImage GoldBottom02 { get; private set; }
  34. public GTextField DiamindNummber { get; private set; }
  35. public GButton DiamondBtn { get; private set; }
  36. public GImage Baoshi { get; private set; }
  37. public GButton ShopBtn { get; private set; }
  38. public GButton SCBtn { get; private set; }
  39. public GButton HDBtn { get; private set; }
  40. public GButton XSLBtn { get; private set; }
  41. public GButton GoldBox { get; private set; }
  42. public GButton TaskBtn { get; private set; }
  43. public GButton SheZhiBtn { get; private set; }
  44. public MainHomeBuffInfoNestedView BuffInfo { get; private set; }
  45. public GGroup Bottom { get; private set; }
  46. public GButton XinXiBtn { get; private set; }
  47. public GTextField XinWen { get; private set; }
  48. public GGroup Message { get; private set; }
  49. protected override void BindComponents(GComponent panel, IUIViewAdapter adapter)
  50. {
  51. TouXiangBottom = panel.GetChild("TouXiangBottom") as GImage;
  52. ZLNummber = panel.GetChild("ZLNummber") as GTextField;
  53. ApextTan = panel.GetChild("ApextTan") as GTextField;
  54. LevelpBar = panel.GetChild("LevelpBar") as GProgressBar;
  55. TXKuang = panel.GetChild("TXKuang") as GImage;
  56. TouXiang = panel.GetChild("TouXiang") as GLoader;
  57. PlayerLevelBottom = panel.GetChild("PlayerLevelBottom") as GImage;
  58. PlayerLevelNummber = panel.GetChild("PlayerLevelNummber") as GTextField;
  59. Zhandouli = panel.GetChild("Zhandouli") as GImage;
  60. GoldBottom01 = panel.GetChild("GoldBottom01") as GImage;
  61. GoldNummber = panel.GetChild("GoldNummber") as GTextField;
  62. Jinbi = panel.GetChild("Jinbi") as GImage;
  63. GoldBtn = panel.GetChild("GoldBtn") as GButton;
  64. GoldBottom02 = panel.GetChild("GoldBottom02") as GImage;
  65. DiamindNummber = panel.GetChild("DiamindNummber") as GTextField;
  66. DiamondBtn = panel.GetChild("DiamondBtn") as GButton;
  67. Baoshi = panel.GetChild("Baoshi") as GImage;
  68. ShopBtn = panel.GetChild("ShopBtn") as GButton;
  69. SCBtn = panel.GetChild("SCBtn") as GButton;
  70. HDBtn = panel.GetChild("HDBtn") as GButton;
  71. XSLBtn = panel.GetChild("XSLBtn") as GButton;
  72. GoldBox = panel.GetChild("GoldBox") as GButton;
  73. TaskBtn = panel.GetChild("TaskBtn") as GButton;
  74. SheZhiBtn = panel.GetChild("SheZhiBtn") as GButton;
  75. BuffInfo = adapter.CreateNested<MainHomeBuffInfoNestedView>(new FguiNested(panel.GetChild("BuffInfo").asCom), true);
  76. Bottom = panel.GetChild("Bottom") as GGroup;
  77. XinXiBtn = panel.GetChild("XinXiBtn") as GButton;
  78. XinWen = panel.GetChild("XinWen") as GTextField;
  79. Message = panel.GetChild("Message") as GGroup;
  80. }
  81. }
  82. }