提交修改
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user