/// #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 MountAdvancedNestedVM : FguiViewModel
{
public Controller AdvanceMountStateCtrl { get; private set; }
public Controller RideCtrl { get; private set; }
public Controller SkillCtrl { get; private set; }
public GTextField MountNameLabel { get; private set; }
public GList MountStar { get; private set; }
public GLoader3D MountSpine { get; private set; }
public GButton RideBtn { 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; }
protected override void BindComponents(GComponent panel, IUIViewAdapter adapter)
{
AdvanceMountStateCtrl = panel.GetController("AdvanceMountStateCtrl");
RideCtrl = panel.GetController("RideCtrl");
SkillCtrl = panel.GetController("SkillCtrl");
MountNameLabel = panel.GetChild("MountNameLabel") as GTextField;
MountStar = panel.GetChild("MountStar") as GList;
MountStar.Init(typeof(CommonComStarListItemView), adapter.CreateListItem);
MountSpine = panel.GetChild("MountSpine") as GLoader3D;
RideBtn = panel.GetChild("RideBtn") as GButton;
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(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);
}
}
}