/// #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 { /// /// 该脚本由模板创建,不可修改,不可编辑 /// public partial class PartnerDetailsPanelVM : FguiViewModel { public Controller MaxLvCtrl { get; private set; } public Controller MaxStarCtrl { get; private set; } public Controller ShowBtnCtrl { get; private set; } public Controller CanSwitch { get; private set; } public Controller Have { get; private set; } public GLoader3D PartnerSpine { get; private set; } public GLoader PartnerIcon { get; private set; } public GButton PreviousBtn { get; private set; } public GButton NextBtn { get; private set; } public PartnerEpiSetBaseView EpiItem { get; private set; } public GTextField EpiNameLabel { get; private set; } public GButton ChangeBtn { get; private set; } public GGroup TopUI { get; private set; } public GTextField NameLabel { get; private set; } public GLoader QualityIcon { get; private set; } public GLoader SacredVesselsIcon { get; private set; } public GLoader AttrTypeIcon { get; private set; } public GTextField TypeLabel { get; private set; } public GTextField LvLabel { get; private set; } public GTextField AtkLabel { get; private set; } public GTextField AtkSpeedLabel { get; private set; } public GTextField SkillInfoLabel { get; private set; } public GTextField SkillEffectLabel { get; private set; } public GList StarRatingList { get; private set; } public GList StarBuffItemList { get; private set; } public CommonComCurrencyNestedView UpgradeCostItem { get; private set; } public GButton DownBtn { get; private set; } public GButton UpBtn { get; private set; } public GButton UpLvBtn { get; private set; } public GButton UpStarBtn { get; private set; } public GProgressBar StarCostBar { get; private set; } public GButton BackBtn { get; private set; } protected override void BindComponents(GComponent panel, IUIViewAdapter adapter) { MaxLvCtrl = panel.GetController("MaxLvCtrl"); MaxStarCtrl = panel.GetController("MaxStarCtrl"); ShowBtnCtrl = panel.GetController("ShowBtnCtrl"); CanSwitch = panel.GetController("CanSwitch"); Have = panel.GetController("Have"); PartnerSpine = panel.GetChild("PartnerSpine") as GLoader3D; PartnerIcon = panel.GetChild("PartnerIcon") as GLoader; PreviousBtn = panel.GetChild("PreviousBtn") as GButton; NextBtn = panel.GetChild("NextBtn") as GButton; EpiItem = adapter.CreateNested(new FguiNested(panel.GetChild("EpiItem").asCom), true); AddChild(EpiItem); EpiNameLabel = panel.GetChild("EpiNameLabel") as GTextField; ChangeBtn = panel.GetChild("ChangeBtn") as GButton; TopUI = panel.GetChild("topUI") as GGroup; NameLabel = panel.GetChild("NameLabel") as GTextField; QualityIcon = panel.GetChild("QualityIcon") as GLoader; SacredVesselsIcon = panel.GetChild("SacredVesselsIcon") as GLoader; AttrTypeIcon = panel.GetChild("AttrTypeIcon") as GLoader; TypeLabel = panel.GetChild("TypeLabel") as GTextField; LvLabel = panel.GetChild("LvLabel") as GTextField; AtkLabel = panel.GetChild("AtkLabel") as GTextField; AtkSpeedLabel = panel.GetChild("AtkSpeedLabel") as GTextField; SkillInfoLabel = panel.GetChild("SkillInfoLabel") as GTextField; SkillEffectLabel = panel.GetChild("SkillEffectLabel") as GTextField; StarRatingList = panel.GetChild("StarRatingList") as GList; StarRatingList.Init(typeof(PartnerStarListItemView), adapter.CreateListItem); StarBuffItemList = panel.GetChild("StarBuffItemList") as GList; StarBuffItemList.Init(typeof(PartnerStarBuffItemView), adapter.CreateListItem); UpgradeCostItem = adapter.CreateNested(new FguiNested(panel.GetChild("UpgradeCostItem").asCom), true); AddChild(UpgradeCostItem); DownBtn = panel.GetChild("DownBtn") as GButton; UpBtn = panel.GetChild("UpBtn") as GButton; UpLvBtn = panel.GetChild("UpLvBtn") as GButton; UpStarBtn = panel.GetChild("UpStarBtn") as GButton; StarCostBar = panel.GetChild("StarCostBar") as GProgressBar; BackBtn = panel.GetChild("BackBtn") as GButton; } } }