/// #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 GTextField PlayerPowerTxt { get; private set; }
public MainCurrencyNestedView GoldNested { get; private set; }
public MainCurrencyNestedView DiamonNested { get; private set; }
public GButton SysMenuBtn { 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;
PlayerPowerTxt = panel.GetChild("PlayerPowerTxt") as GTextField;
GoldNested = adapter.CreateNested(new FguiNested(panel.GetChild("GoldNested").asCom), true);
AddChild(GoldNested);
DiamonNested = adapter.CreateNested(new FguiNested(panel.GetChild("DiamonNested").asCom), true);
AddChild(DiamonNested);
SysMenuBtn = panel.GetChild("SysMenuBtn") as GButton;
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;
}
}
}