新增菜单all和列表标题功能

This commit is contained in:
2025-10-13 17:54:53 +08:00
parent d99f361f2e
commit 9470c3ab00
17 changed files with 157 additions and 72 deletions

View File

@@ -16,10 +16,10 @@ namespace NBF
[AutoFind(Name = "back")]
public GImage back;
[AutoFind(Name = "Menu")]
public CommonMenu Menu;
[AutoFind(Name = "BottomMenu")]
public BottomMenu BottomMenu;
[AutoFind(Name = "ItemList")]
public CommonItemList ItemList;
public override string[] GetDependPackages(){ return new string[] {"Common"}; }
public static void Show(object param = null){ App.UI.OpenUI<BagPanel>(param); }

View File

@@ -10,7 +10,6 @@ namespace NBF
protected override void OnInit()
{
base.OnInit();
Menu.OnTabChange += ChangeTab;
}
protected override void OnShow()
@@ -36,12 +35,6 @@ namespace NBF
}
}
private void ChangeTab(int index)
{
if (index < 0) return;
Log.Info($"Change tab index={index}");
}
private void UseBottomMenu()
{
BottomMenu.Use(this);