MountAdvancedNestedVM.Gen.cs 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  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 MountAdvancedNestedVM : FguiViewModel
  19. {
  20. public Controller AdvanceMountStateCtrl { get; private set; }
  21. public Controller RideCtrl { get; private set; }
  22. public Controller SkillCtrl { get; private set; }
  23. public GTextField MountNameLabel { get; private set; }
  24. public GList MountStar { get; private set; }
  25. public GLoader3D MountSpine { get; private set; }
  26. public GButton RideBtn { get; private set; }
  27. public GButton UpgradePreviewBtn { get; private set; }
  28. public GButton EnableSkillBtn { get; private set; }
  29. public GLoader SkillIcon { get; private set; }
  30. public GTextField SkillNameLabel { get; private set; }
  31. public GTextField SkillDescLabel { get; private set; }
  32. public GTextField MountAttrDescLabel { get; private set; }
  33. public GTextField NextMountAttrDescLabel { get; private set; }
  34. public CommonItemBaseView UnlockMountItem { get; private set; }
  35. public GButton UpgradeMountBtn { get; private set; }
  36. public GButton UnlockMountBtn { get; private set; }
  37. public GList AdvancedMountList { get; private set; }
  38. protected override void BindComponents(GComponent panel, IUIViewAdapter adapter)
  39. {
  40. AdvanceMountStateCtrl = panel.GetController("AdvanceMountStateCtrl");
  41. RideCtrl = panel.GetController("RideCtrl");
  42. SkillCtrl = panel.GetController("SkillCtrl");
  43. MountNameLabel = panel.GetChild("MountNameLabel") as GTextField;
  44. MountStar = panel.GetChild("MountStar") as GList;
  45. MountStar.Init(typeof(CommonComStarListItemView), adapter.CreateListItem);
  46. MountSpine = panel.GetChild("MountSpine") as GLoader3D;
  47. RideBtn = panel.GetChild("RideBtn") as GButton;
  48. UpgradePreviewBtn = panel.GetChild("UpgradePreviewBtn") as GButton;
  49. EnableSkillBtn = panel.GetChild("EnableSkillBtn") as GButton;
  50. SkillIcon = panel.GetChild("SkillIcon") as GLoader;
  51. SkillNameLabel = panel.GetChild("SkillNameLabel") as GTextField;
  52. SkillDescLabel = panel.GetChild("SkillDescLabel") as GTextField;
  53. MountAttrDescLabel = panel.GetChild("MountAttrDescLabel") as GTextField;
  54. NextMountAttrDescLabel = panel.GetChild("NextMountAttrDescLabel") as GTextField;
  55. UnlockMountItem = adapter.CreateNested<CommonItemBaseView>(new FguiNested(panel.GetChild("UnlockMountItem").asCom), true);
  56. AddChild(UnlockMountItem);
  57. UpgradeMountBtn = panel.GetChild("UpgradeMountBtn") as GButton;
  58. UnlockMountBtn = panel.GetChild("UnlockMountBtn") as GButton;
  59. AdvancedMountList = panel.GetChild("AdvancedMountList") as GList;
  60. AdvancedMountList.Init(typeof(MountMountListItemView), adapter.CreateListItem);
  61. }
  62. }
  63. }