1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374 |
- /// #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
- {
- /// <summary>
- /// 该脚本由模板创建,不可修改,不可编辑
- /// </summary>
- public partial class PlayerMainPanelVM : FguiViewModel
- {
- public Controller SuperlativeCtrl { get; private set; }
- public CommonItemBaseView Weapon { get; private set; }
- public CommonItemBaseView Clothes { get; private set; }
- public CommonItemBaseView Helmet { get; private set; }
- public CommonItemBaseView Hand { get; private set; }
- public CommonItemBaseView Boots { get; private set; }
- public CommonItemBaseView Pants { get; private set; }
- public GLoader TitleIcon { get; private set; }
- public GLoader3D PlayerSpine { get; private set; }
- public GProgressBar ExpBar { get; private set; }
- public GTextField NameLabel { get; private set; }
- public GTextField LvLabl { get; private set; }
- public GButton UpgradeLvBtn { get; private set; }
- public GButton MountBtn { get; private set; }
- public GButton ArtifactBtn { get; private set; }
- public GButton ContractBtn { get; private set; }
- public GButton JewelryBtn { get; private set; }
- public GButton NotOpenBtn1 { get; private set; }
- public GButton NotOpenBtn2 { get; private set; }
- public PlayerJokSkillNestedView JokSkillNested { get; private set; }
- protected override void BindComponents(GComponent panel, IUIViewAdapter adapter)
- {
- SuperlativeCtrl = panel.GetController("SuperlativeCtrl");
- Weapon = adapter.CreateNested<CommonItemBaseView>(new FguiNested(panel.GetChild("Weapon").asCom), true);
- AddChild(Weapon);
- Clothes = adapter.CreateNested<CommonItemBaseView>(new FguiNested(panel.GetChild("Clothes").asCom), true);
- AddChild(Clothes);
- Helmet = adapter.CreateNested<CommonItemBaseView>(new FguiNested(panel.GetChild("Helmet").asCom), true);
- AddChild(Helmet);
- Hand = adapter.CreateNested<CommonItemBaseView>(new FguiNested(panel.GetChild("Hand").asCom), true);
- AddChild(Hand);
- Boots = adapter.CreateNested<CommonItemBaseView>(new FguiNested(panel.GetChild("Boots").asCom), true);
- AddChild(Boots);
- Pants = adapter.CreateNested<CommonItemBaseView>(new FguiNested(panel.GetChild("Pants").asCom), true);
- AddChild(Pants);
- TitleIcon = panel.GetChild("TitleIcon") as GLoader;
- PlayerSpine = panel.GetChild("PlayerSpine") as GLoader3D;
- ExpBar = panel.GetChild("ExpBar") as GProgressBar;
- NameLabel = panel.GetChild("NameLabel") as GTextField;
- LvLabl = panel.GetChild("LvLabl") as GTextField;
- UpgradeLvBtn = panel.GetChild("UpgradeLvBtn") as GButton;
- MountBtn = panel.GetChild("MountBtn") as GButton;
- ArtifactBtn = panel.GetChild("ArtifactBtn") as GButton;
- ContractBtn = panel.GetChild("ContractBtn") as GButton;
- JewelryBtn = panel.GetChild("JewelryBtn") as GButton;
- NotOpenBtn1 = panel.GetChild("NotOpenBtn1") as GButton;
- NotOpenBtn2 = panel.GetChild("NotOpenBtn2") as GButton;
- JokSkillNested = adapter.CreateNested<PlayerJokSkillNestedView>(new FguiNested(panel.GetChild("JokSkillNested").asCom), true);
- AddChild(JokSkillNested);
- }
- }
- }
|