/// #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 MainHomePanelVM : FguiViewModel
{
public Controller SysMenuCtrl { get; private set; }
public GLoader PlayerHead { get; private set; }
public GLoader PlayerPowerIcon { get; private set; }
public GTextField PlayerLvTxt { get; private set; }
public GTextField PlayerNameTxt { get; private set; }
public CommonComCurrencyNestedView GoldNested { get; private set; }
public CommonComCurrencyNestedView DiamondNested { get; private set; }
public GTextField PlayerPowerTxt { get; private set; }
public GButton SysMenuBtn { get; private set; }
public GList RightHdList { get; private set; }
public GList LeftMenuBtnsList { get; private set; }
public GGroup LeftMenuBtns { get; private set; }
public GGroup Top { get; private set; }
public GButton FriendBtn { get; private set; }
public GButton MailBtn { get; private set; }
public GButton NoticeBtn { get; private set; }
public GButton SettingBtn { get; private set; }
public GButton ExchangeBtn { get; private set; }
public GButton BagBtn { get; private set; }
public GGroup SysMenu { get; private set; }
public GButton MapRewardBtn { get; private set; }
public GGroup Bottom { get; private set; }
protected override void BindComponents(GComponent panel, IUIViewAdapter adapter)
{
SysMenuCtrl = panel.GetController("SysMenuCtrl");
PlayerHead = panel.GetChild("PlayerHead") as GLoader;
PlayerPowerIcon = panel.GetChild("PlayerPowerIcon") as GLoader;
PlayerLvTxt = panel.GetChild("PlayerLvTxt") as GTextField;
PlayerNameTxt = panel.GetChild("PlayerNameTxt") as GTextField;
GoldNested = adapter.CreateNested(new FguiNested(panel.GetChild("GoldNested").asCom), true);
AddChild(GoldNested);
DiamondNested = adapter.CreateNested(new FguiNested(panel.GetChild("DiamondNested").asCom), true);
AddChild(DiamondNested);
PlayerPowerTxt = panel.GetChild("PlayerPowerTxt") as GTextField;
SysMenuBtn = panel.GetChild("SysMenuBtn") as GButton;
RightHdList = panel.GetChild("RightHdList") as GList;
RightHdList.Init(typeof(MainHdListItemView), adapter.CreateListItem);
LeftMenuBtnsList = panel.GetChild("LeftMenuBtnsList") as GList;
LeftMenuBtnsList.Init(typeof(MainHdListItemView), adapter.CreateListItem);
LeftMenuBtns = panel.GetChild("LeftMenuBtns") as GGroup;
Top = panel.GetChild("Top") as GGroup;
FriendBtn = panel.GetChild("FriendBtn") as GButton;
MailBtn = panel.GetChild("MailBtn") as GButton;
NoticeBtn = panel.GetChild("NoticeBtn") as GButton;
SettingBtn = panel.GetChild("SettingBtn") as GButton;
ExchangeBtn = panel.GetChild("ExchangeBtn") as GButton;
BagBtn = panel.GetChild("BagBtn") as GButton;
SysMenu = panel.GetChild("SysMenu") as GGroup;
MapRewardBtn = panel.GetChild("MapRewardBtn") as GButton;
Bottom = panel.GetChild("Bottom") as GGroup;
}
}
}