MountTrainNestedVM.Gen.cs 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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 MountTrainNestedVM : FguiViewModel
  19. {
  20. public Controller MaxUpgradeStep { get; private set; }
  21. public CommonComCostNestedView TrainCostItem { get; private set; }
  22. public GButton TrainBtn { get; private set; }
  23. public GButton OneClickTrainBtn { get; private set; }
  24. public GLoader3D MountSpine { get; private set; }
  25. public GProgressBar TrainLuckyBar { get; private set; }
  26. public MountTrainingAreaNestedView TrainingTheHead { get; private set; }
  27. public MountTrainingAreaNestedView TrainingTheBody { get; private set; }
  28. public MountTrainingAreaNestedView TrainingFeet { get; private set; }
  29. public GTextField TrainTotalLvLabel { get; private set; }
  30. public GTextField TrainRateLabel { get; private set; }
  31. protected override void BindComponents(GComponent panel, IUIViewAdapter adapter)
  32. {
  33. MaxUpgradeStep = panel.GetController("MaxUpgradeStep");
  34. TrainCostItem = adapter.CreateNested<CommonComCostNestedView>(new FguiNested(panel.GetChild("TrainCostItem").asCom), true);
  35. AddChild(TrainCostItem);
  36. TrainBtn = panel.GetChild("TrainBtn") as GButton;
  37. OneClickTrainBtn = panel.GetChild("OneClickTrainBtn") as GButton;
  38. MountSpine = panel.GetChild("MountSpine") as GLoader3D;
  39. TrainLuckyBar = panel.GetChild("TrainLuckyBar") as GProgressBar;
  40. TrainingTheHead = adapter.CreateNested<MountTrainingAreaNestedView>(new FguiNested(panel.GetChild("TrainingTheHead").asCom), true);
  41. AddChild(TrainingTheHead);
  42. TrainingTheBody = adapter.CreateNested<MountTrainingAreaNestedView>(new FguiNested(panel.GetChild("TrainingTheBody").asCom), true);
  43. AddChild(TrainingTheBody);
  44. TrainingFeet = adapter.CreateNested<MountTrainingAreaNestedView>(new FguiNested(panel.GetChild("TrainingFeet").asCom), true);
  45. AddChild(TrainingFeet);
  46. TrainTotalLvLabel = panel.GetChild("TrainTotalLvLabel") as GTextField;
  47. TrainRateLabel = panel.GetChild("TrainRateLabel") as GTextField;
  48. }
  49. }
  50. }