/// #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 PlayerAwakePanelVM : FguiViewModel { public Controller LockCtrl { get; private set; } public Controller LevelCtrl { get; private set; } public Controller AwakeCtrl { get; private set; } public GButton PlansNameBtn { get; private set; } public GButton RenameBtn { get; private set; } public GLoader3D JobSpine { get; private set; } public PlayerImprintItemNestedView ImprintItem1 { get; private set; } public PlayerImprintItemNestedView ImprintItem2 { get; private set; } public PlayerImprintItemNestedView ImprintItem3 { get; private set; } public PlayerImprintItemNestedView ImprintItem4 { get; private set; } public PlayerImprintItemNestedView ImprintItem5 { get; private set; } public PlayerImprintItemNestedView ImprintItem6 { get; private set; } public CommonComCurrencyNestedView AwakeCostItem { get; private set; } public GButton WakeupBtn { get; private set; } public GButton ResetBtn { get; private set; } public GButton ChangeImprintBtn { get; private set; } public GTextField ImprintNameLabel { get; private set; } public GTextField ImprintDescLabel { get; private set; } public GButton BackBtn { get; private set; } public CommonComCurrencyNestedView UpgradeCostItem { get; private set; } public CommonComCurrencyNestedView TenCostItem { get; private set; } public GButton UpgradeBtn { get; private set; } public GButton TenBtn { get; private set; } public PlayerPlansNameNestedView PlansNameNestedItem { get; private set; } protected override void BindComponents(GComponent panel, IUIViewAdapter adapter) { LockCtrl = panel.GetController("LockCtrl"); LevelCtrl = panel.GetController("LevelCtrl"); AwakeCtrl = panel.GetController("AwakeCtrl"); PlansNameBtn = panel.GetChild("PlansNameBtn") as GButton; RenameBtn = panel.GetChild("RenameBtn") as GButton; JobSpine = panel.GetChild("JobSpine") as GLoader3D; ImprintItem1 = adapter.CreateNested(new FguiNested(panel.GetChild("ImprintItem1").asCom), true); AddChild(ImprintItem1); ImprintItem2 = adapter.CreateNested(new FguiNested(panel.GetChild("ImprintItem2").asCom), true); AddChild(ImprintItem2); ImprintItem3 = adapter.CreateNested(new FguiNested(panel.GetChild("ImprintItem3").asCom), true); AddChild(ImprintItem3); ImprintItem4 = adapter.CreateNested(new FguiNested(panel.GetChild("ImprintItem4").asCom), true); AddChild(ImprintItem4); ImprintItem5 = adapter.CreateNested(new FguiNested(panel.GetChild("ImprintItem5").asCom), true); AddChild(ImprintItem5); ImprintItem6 = adapter.CreateNested(new FguiNested(panel.GetChild("ImprintItem6").asCom), true); AddChild(ImprintItem6); AwakeCostItem = adapter.CreateNested(new FguiNested(panel.GetChild("AwakeCostItem").asCom), true); AddChild(AwakeCostItem); WakeupBtn = panel.GetChild("WakeupBtn") as GButton; ResetBtn = panel.GetChild("ResetBtn") as GButton; ChangeImprintBtn = panel.GetChild("ChangeImprintBtn") as GButton; ImprintNameLabel = panel.GetChild("ImprintNameLabel") as GTextField; ImprintDescLabel = panel.GetChild("ImprintDescLabel") as GTextField; BackBtn = panel.GetChild("BackBtn") as GButton; UpgradeCostItem = adapter.CreateNested(new FguiNested(panel.GetChild("UpgradeCostItem").asCom), true); AddChild(UpgradeCostItem); TenCostItem = adapter.CreateNested(new FguiNested(panel.GetChild("TenCostItem").asCom), true); AddChild(TenCostItem); UpgradeBtn = panel.GetChild("UpgradeBtn") as GButton; TenBtn = panel.GetChild("TenBtn") as GButton; PlansNameNestedItem = adapter.CreateNested(new FguiNested(panel.GetChild("PlansNameNestedItem").asCom), true); AddChild(PlansNameNestedItem); } } }