123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126 |
- /// #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 Controller SkillCtrl { 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 GTextField MountNameLabel { get; private set; }
- public GComponent MountStar { get; private set; }
- public GLoader MountPicture { get; private set; }
- public GLoader TrainMountPicture { 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 MountAttrDescLabel { get; private set; }
- public GTextField NextMountAttrDescLabel { get; private set; }
- public CommonItemBaseView UnlockMountItem { get; private set; }
- public GButton UpgradeMountBtn { get; private set; }
- public GButton UnlockMountBtn { get; private set; }
- public GList AdvancedMountList { 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");
- SkillCtrl = panel.GetController("SkillCtrl");
- 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;
- MountNameLabel = panel.GetChild("MountNameLabel") as GTextField;
- MountStar = panel.GetChild("MountStar") as GComponent;
- MountPicture = panel.GetChild("MountPicture") as GLoader;
- TrainMountPicture = panel.GetChild("TrainMountPicture") as GLoader;
- 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;
- MountAttrDescLabel = panel.GetChild("MountAttrDescLabel") as GTextField;
- NextMountAttrDescLabel = panel.GetChild("NextMountAttrDescLabel") as GTextField;
- UnlockMountItem = adapter.CreateNested<CommonItemBaseView>(new FguiNested(panel.GetChild("UnlockMountItem").asCom), true);
- AddChild(UnlockMountItem);
- UpgradeMountBtn = panel.GetChild("UpgradeMountBtn") as GButton;
- UnlockMountBtn = panel.GetChild("UnlockMountBtn") as GButton;
- AdvancedMountList = panel.GetChild("AdvancedMountList") as GList;
- AdvancedMountList.Init(typeof(MountMountListItemView), adapter.CreateListItem);
- UnLockModelLabel = panel.GetChild("UnLockModelLabel") as GTextField;
- }
- }
- }
|