提交修改

This commit is contained in:
2025-10-11 17:55:09 +08:00
parent 939d3d81fc
commit d99f361f2e
194 changed files with 186 additions and 9533 deletions

View File

@@ -39,7 +39,7 @@ namespace NBF
}
}
public void SetTabs<T>(List<T> tabList, int selectIndex = 0) where T : TabListData
public void SetTabs(List<TabItemData> tabList, int selectIndex = 0)
{
List.RemoveChildrenToPool();
var listWidth = 0f;
@@ -47,14 +47,7 @@ namespace NBF
{
var tabData = tabList[i];
var tabItem = List.AddItemFromPool().asButton;
if (!string.IsNullOrEmpty(tabData.Key))
{
tabItem.SetLanguage(tabData.Key);
}
else
{
tabItem.SetLanguage(tabData.Name);
}
tabItem.SetLanguage(tabData.Key);
listWidth += tabItem.width;
if (i > 0)

View File

@@ -39,7 +39,7 @@ namespace NBF
}
}
public void SetTabs(List<TabSubItemData> subItems, int selectIndex = 0)
public void SetTabs(List<TabItemData> subItems, int selectIndex = 0)
{
List.RemoveChildrenToPool();
var width = 0f;
@@ -47,7 +47,8 @@ namespace NBF
{
var tabData = subItems[i];
var tabItem = List.AddItemFromPool().asButton;
tabItem.SetLanguage(tabData.Name);
tabItem.SetLanguage(tabData.Key);
width += tabItem.width;
if (i > 0)
{