/// #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 DragonEggTreasurePanelVM : FguiViewModel { public Controller MenusBtnCtrl { get; private set; } public Controller AwardState { get; private set; } public GProgressBar EggPointBar { get; private set; } public GTextField ScoreAwardLabel { get; private set; } public GButton BoxAwardBtn { get; private set; } public GButton BagBtn { get; private set; } public GGroup TopUI { get; private set; } public GImage DescBg { get; private set; } public GLoader DragonIcon { get; private set; } public GTextField ProbalityLabel { get; private set; } public GTextField NumLabel { get; private set; } public GLoader3D DragonSpine { get; private set; } public GButton PreviousBtn { get; private set; } public GButton NextBtn { get; private set; } public GButton DragonSpineBtn { get; private set; } public GButton DragonBtn1 { get; private set; } public GButton DragonBtn2 { get; private set; } public GButton DragonBtn3 { get; private set; } public GButton DragonBtn4 { get; private set; } public GButton DragonBtn5 { get; private set; } public GButton LevelBtn { get; private set; } public GGroup BottomUI { get; private set; } protected override void BindComponents(GComponent panel, IUIViewAdapter adapter) { MenusBtnCtrl = panel.GetController("MenusBtnCtrl"); AwardState = panel.GetController("AwardState"); EggPointBar = panel.GetChild("EggPointBar") as GProgressBar; ScoreAwardLabel = panel.GetChild("ScoreAwardLabel") as GTextField; BoxAwardBtn = panel.GetChild("BoxAwardBtn") as GButton; BagBtn = panel.GetChild("BagBtn") as GButton; TopUI = panel.GetChild("TopUI") as GGroup; DescBg = panel.GetChild("DescBg") as GImage; DragonIcon = panel.GetChild("DragonIcon") as GLoader; ProbalityLabel = panel.GetChild("ProbalityLabel") as GTextField; NumLabel = panel.GetChild("NumLabel") as GTextField; DragonSpine = panel.GetChild("DragonSpine") as GLoader3D; PreviousBtn = panel.GetChild("PreviousBtn") as GButton; NextBtn = panel.GetChild("NextBtn") as GButton; DragonSpineBtn = panel.GetChild("DragonSpineBtn") as GButton; DragonBtn1 = panel.GetChild("DragonBtn1") as GButton; DragonBtn2 = panel.GetChild("DragonBtn2") as GButton; DragonBtn3 = panel.GetChild("DragonBtn3") as GButton; DragonBtn4 = panel.GetChild("DragonBtn4") as GButton; DragonBtn5 = panel.GetChild("DragonBtn5") as GButton; LevelBtn = panel.GetChild("LevelBtn") as GButton; BottomUI = panel.GetChild("BottomUI") as GGroup; } } }