PlayerJokSkillNestedVM.Gen.cs 3.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  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 PlayerJokSkillNestedVM : FguiViewModel
  19. {
  20. public Controller SuperlativeCtrl { get; private set; }
  21. public Controller SkillInfoTipCtrl { get; private set; }
  22. public GTextField HpLabel { get; private set; }
  23. public GTextField DefLabel { get; private set; }
  24. public GTextField AtkLabel { get; private set; }
  25. public GTextField AtkSpeedLabel { get; private set; }
  26. public GButton AttrInfoBtn { get; private set; }
  27. public GButton JobBtn { get; private set; }
  28. public GButton SkillBtn { get; private set; }
  29. public GTextField TransfersCountLabel { get; private set; }
  30. public GTextField JobNameLabel { get; private set; }
  31. public GTextField JobSkillLabel { get; private set; }
  32. public GTextField JobUnLockLabel { get; private set; }
  33. public GList PassiveSkillList { get; private set; }
  34. public GTextField UnlockLabel { get; private set; }
  35. public GButton WakeUpBtn { get; private set; }
  36. public GButton TransferBtn { get; private set; }
  37. public PlayerSkillInfoNestedView SkillInfoNested { get; private set; }
  38. protected override void BindComponents(GComponent panel, IUIViewAdapter adapter)
  39. {
  40. SuperlativeCtrl = panel.GetController("SuperlativeCtrl");
  41. SkillInfoTipCtrl = panel.GetController("SkillInfoTipCtrl");
  42. HpLabel = panel.GetChild("HpLabel") as GTextField;
  43. DefLabel = panel.GetChild("DefLabel") as GTextField;
  44. AtkLabel = panel.GetChild("AtkLabel") as GTextField;
  45. AtkSpeedLabel = panel.GetChild("AtkSpeedLabel") as GTextField;
  46. AttrInfoBtn = panel.GetChild("AttrInfoBtn") as GButton;
  47. JobBtn = panel.GetChild("JobBtn") as GButton;
  48. SkillBtn = panel.GetChild("SkillBtn") as GButton;
  49. TransfersCountLabel = panel.GetChild("TransfersCountLabel") as GTextField;
  50. JobNameLabel = panel.GetChild("JobNameLabel") as GTextField;
  51. JobSkillLabel = panel.GetChild("JobSkillLabel") as GTextField;
  52. JobUnLockLabel = panel.GetChild("JobUnLockLabel") as GTextField;
  53. PassiveSkillList = panel.GetChild("PassiveSkillList") as GList;
  54. PassiveSkillList.Init(typeof(PlayerPassiveSkillListItemView), adapter.CreateListItem);
  55. UnlockLabel = panel.GetChild("UnlockLabel") as GTextField;
  56. WakeUpBtn = panel.GetChild("WakeUpBtn") as GButton;
  57. TransferBtn = panel.GetChild("TransferBtn") as GButton;
  58. SkillInfoNested = adapter.CreateNested<PlayerSkillInfoNestedView>(new FguiNested(panel.GetChild("SkillInfoNested").asCom), true);
  59. AddChild(SkillInfoNested);
  60. }
  61. }
  62. }