NBC修改

This commit is contained in:
bob
2025-07-03 14:16:18 +08:00
parent 4febfadd56
commit 800e96aac7
2083 changed files with 60081 additions and 2942 deletions

View File

@@ -24,23 +24,23 @@ namespace NBF
}
else if (btn == BtnSettings)
{
UI.Inst.OpenUI<SettingPanel>();
SettingPanel.Show();
}
else if (btn == BtnBag)
{
UI.Inst.OpenUI<BagPanel>();
BagPanel.Show();
}
else if (btn == BtnFishBag)
{
UI.Inst.OpenUI<FishBagPanel>();
FishBagPanel.Show();
}
else if (btn == BtnMake)
{
UI.Inst.OpenUI<MakePanel>();
MakePanel.Show();
}
else if (btn == BtnMap)
{
UI.Inst.OpenUI<MapPanel>();
MapPanel.Show();
}
}
}

View File

@@ -11,6 +11,9 @@ namespace NBF
public partial class HomePanel
{
public GObject this[string aKey] => ContentPane.GetChild(aKey);
public override string UIPackName => "Main";
public override string UIResName => "HomePanel";
[AutoFind(Name = "Back")]
public GLabel Back;
[AutoFind(Name = "Pages")]
@@ -19,6 +22,11 @@ namespace NBF
public CommonMenu Menu;
public override string[] GetDependPackages(){ return new string[] {"Common"}; }
public static void Show(object param = null){ App.UI.OpenUI<HomePanel>(param); }
public static void Hide(){ App.UI.HideUI<HomePanel>(); }
public static void Del(){ App.UI.DestroyUI<HomePanel>(); }
}
}

View File

@@ -10,8 +10,6 @@ namespace NBF
{
public partial class HomePanel : UIPanel
{
public override string UIPackName => "Main";
public override string UIResName => "HomePanel";
private string[] PageNames = new[] { "HomeMainPage", "HomeActivityPage", "HomeRankPage" };
private List<HomePageBase> _pages = new List<HomePageBase>();