|
@@ -0,0 +1,124 @@
|
|
|
+/// #pkgName FGUI包名
|
|
|
+/// #panelName UIPanel名字
|
|
|
+/// #UIName = $"{#pkgName}{#panelName}" UIKey名字
|
|
|
+/// #PropertyDefineArea 属性定义区域
|
|
|
+/// #PropertyAssignArea 属性赋值区域
|
|
|
+/// #ComponentType 组件类型
|
|
|
+/// #PropertyName 属性名字
|
|
|
+/// 该脚本由模板创建,不可编辑
|
|
|
+/// created by cb 2024
|
|
|
+using FairyGUI;
|
|
|
+using XGame.Framework.FGUI;
|
|
|
+using XGame.Framework.UI;
|
|
|
+
|
|
|
+namespace FL.FGUI
|
|
|
+{
|
|
|
+ /// <summary>
|
|
|
+ /// 该脚本由模板创建,不可修改,不可编辑
|
|
|
+ /// </summary>
|
|
|
+ public partial class MountDevelopPanelVM : FguiViewModel
|
|
|
+ {
|
|
|
+ public Controller PageCtrl { get; private set; }
|
|
|
+ public Controller AdvanceMountStateCtrl { get; private set; }
|
|
|
+ public Controller RideCtrl { get; private set; }
|
|
|
+ public Controller UpgradeCtrl { get; private set; }
|
|
|
+ public Controller MaxUpgradeStep { get; private set; }
|
|
|
+ public CommonBackGroundNestedView MaskBg { get; private set; }
|
|
|
+ public GButton UpgradeBtn { get; private set; }
|
|
|
+ public GButton TrainBtn { get; private set; }
|
|
|
+ public GButton AdvancedMountBtn { get; private set; }
|
|
|
+ public GLoader MountPicture { get; private set; }
|
|
|
+ public GLoader TrainMountPicture { get; private set; }
|
|
|
+ public GTextField MountNameLabel { get; private set; }
|
|
|
+ public GComponent MountStar { get; private set; }
|
|
|
+ public GButton LastBtn { get; private set; }
|
|
|
+ public GButton NextBtn { get; private set; }
|
|
|
+ public GButton RideBtn { get; private set; }
|
|
|
+ public GTextField SpecialStarLvLabel { get; private set; }
|
|
|
+ public MountAttrItemListView SpecialAttrItem { get; private set; }
|
|
|
+ public GTextField NextStarLvLabel { get; private set; }
|
|
|
+ public GTextField BaseStarLvLabel { get; private set; }
|
|
|
+ public GList BaseAttrList { get; private set; }
|
|
|
+ public GComponent StarBar { get; private set; }
|
|
|
+ public GProgressBar ExpBar { get; private set; }
|
|
|
+ public CommonComCostNestedView FeedCostItem { get; private set; }
|
|
|
+ public GButton FeedBtn { get; private set; }
|
|
|
+ public GButton OneClickFeedingBtn { get; private set; }
|
|
|
+ public GProgressBar TrainExpBar { get; private set; }
|
|
|
+ public MountTrainingAreaNestedView TrainingTheHead { get; private set; }
|
|
|
+ public MountTrainingAreaNestedView TrainingTheBody { get; private set; }
|
|
|
+ public MountTrainingAreaNestedView TrainingFeet { get; private set; }
|
|
|
+ public GTextField TrainTotalLvLabel { get; private set; }
|
|
|
+ public GTextField TrainRateLabel { get; private set; }
|
|
|
+ public GButton UpgradePreviewBtn { get; private set; }
|
|
|
+ public GButton EnableSkillBtn { get; private set; }
|
|
|
+ public GLoader SkillIcon { get; private set; }
|
|
|
+ public GTextField SkillNameLabel { get; private set; }
|
|
|
+ public GTextField SkillDescLabel { get; private set; }
|
|
|
+ public GTextField SkillAttrNameLabel { get; private set; }
|
|
|
+ public GTextField SkillAttrDescLabel { get; private set; }
|
|
|
+ public MountMountListItemView MountItem { get; private set; }
|
|
|
+ public GButton UpgradeMountBtn { get; private set; }
|
|
|
+ public GButton UnlockMountBtn { get; private set; }
|
|
|
+ public GList MountList { get; private set; }
|
|
|
+ public GTextField UnLockModelLabel { get; private set; }
|
|
|
+
|
|
|
+ protected override void BindComponents(GComponent panel, IUIViewAdapter adapter)
|
|
|
+ {
|
|
|
+ PageCtrl = panel.GetController("PageCtrl");
|
|
|
+ AdvanceMountStateCtrl = panel.GetController("AdvanceMountStateCtrl");
|
|
|
+ RideCtrl = panel.GetController("RideCtrl");
|
|
|
+ UpgradeCtrl = panel.GetController("UpgradeCtrl");
|
|
|
+ MaxUpgradeStep = panel.GetController("MaxUpgradeStep");
|
|
|
+ MaskBg = adapter.CreateNested<CommonBackGroundNestedView>(new FguiNested(panel.GetChild("MaskBg").asCom), true);
|
|
|
+ AddChild(MaskBg);
|
|
|
+ UpgradeBtn = panel.GetChild("UpgradeBtn") as GButton;
|
|
|
+ TrainBtn = panel.GetChild("TrainBtn") as GButton;
|
|
|
+ AdvancedMountBtn = panel.GetChild("AdvancedMountBtn") as GButton;
|
|
|
+ MountPicture = panel.GetChild("MountPicture") as GLoader;
|
|
|
+ TrainMountPicture = panel.GetChild("TrainMountPicture") as GLoader;
|
|
|
+ MountNameLabel = panel.GetChild("MountNameLabel") as GTextField;
|
|
|
+ MountStar = panel.GetChild("MountStar") as GComponent;
|
|
|
+ LastBtn = panel.GetChild("LastBtn") as GButton;
|
|
|
+ NextBtn = panel.GetChild("NextBtn") as GButton;
|
|
|
+ RideBtn = panel.GetChild("RideBtn") as GButton;
|
|
|
+ SpecialStarLvLabel = panel.GetChild("SpecialStarLvLabel") as GTextField;
|
|
|
+ SpecialAttrItem = adapter.CreateNested<MountAttrItemListView>(new FguiNested(panel.GetChild("SpecialAttrItem").asCom), true);
|
|
|
+ AddChild(SpecialAttrItem);
|
|
|
+ NextStarLvLabel = panel.GetChild("NextStarLvLabel") as GTextField;
|
|
|
+ BaseStarLvLabel = panel.GetChild("BaseStarLvLabel") as GTextField;
|
|
|
+ BaseAttrList = panel.GetChild("BaseAttrList") as GList;
|
|
|
+ BaseAttrList.Init(typeof(MountAttrItemListView), adapter.CreateListItem);
|
|
|
+ StarBar = panel.GetChild("StarBar") as GComponent;
|
|
|
+ ExpBar = panel.GetChild("ExpBar") as GProgressBar;
|
|
|
+ FeedCostItem = adapter.CreateNested<CommonComCostNestedView>(new FguiNested(panel.GetChild("FeedCostItem").asCom), true);
|
|
|
+ AddChild(FeedCostItem);
|
|
|
+ FeedBtn = panel.GetChild("FeedBtn") as GButton;
|
|
|
+ OneClickFeedingBtn = panel.GetChild("OneClickFeedingBtn") as GButton;
|
|
|
+ TrainExpBar = panel.GetChild("TrainExpBar") as GProgressBar;
|
|
|
+ TrainingTheHead = adapter.CreateNested<MountTrainingAreaNestedView>(new FguiNested(panel.GetChild("TrainingTheHead").asCom), true);
|
|
|
+ AddChild(TrainingTheHead);
|
|
|
+ TrainingTheBody = adapter.CreateNested<MountTrainingAreaNestedView>(new FguiNested(panel.GetChild("TrainingTheBody").asCom), true);
|
|
|
+ AddChild(TrainingTheBody);
|
|
|
+ TrainingFeet = adapter.CreateNested<MountTrainingAreaNestedView>(new FguiNested(panel.GetChild("TrainingFeet").asCom), true);
|
|
|
+ AddChild(TrainingFeet);
|
|
|
+ TrainTotalLvLabel = panel.GetChild("TrainTotalLvLabel") as GTextField;
|
|
|
+ TrainRateLabel = panel.GetChild("TrainRateLabel") as GTextField;
|
|
|
+ UpgradePreviewBtn = panel.GetChild("UpgradePreviewBtn") as GButton;
|
|
|
+ EnableSkillBtn = panel.GetChild("EnableSkillBtn") as GButton;
|
|
|
+ SkillIcon = panel.GetChild("SkillIcon") as GLoader;
|
|
|
+ SkillNameLabel = panel.GetChild("SkillNameLabel") as GTextField;
|
|
|
+ SkillDescLabel = panel.GetChild("SkillDescLabel") as GTextField;
|
|
|
+ SkillAttrNameLabel = panel.GetChild("SkillAttrNameLabel") as GTextField;
|
|
|
+ SkillAttrDescLabel = panel.GetChild("SkillAttrDescLabel") as GTextField;
|
|
|
+ MountItem = adapter.CreateNested<MountMountListItemView>(new FguiNested(panel.GetChild("MountItem").asCom), true);
|
|
|
+ AddChild(MountItem);
|
|
|
+ UpgradeMountBtn = panel.GetChild("UpgradeMountBtn") as GButton;
|
|
|
+ UnlockMountBtn = panel.GetChild("UnlockMountBtn") as GButton;
|
|
|
+ MountList = panel.GetChild("MountList") as GList;
|
|
|
+ MountList.Init(typeof(MountMountListItemView), adapter.CreateListItem);
|
|
|
+ UnLockModelLabel = panel.GetChild("UnLockModelLabel") as GTextField;
|
|
|
+
|
|
|
+ }
|
|
|
+ }
|
|
|
+}
|