多语言逻辑
This commit is contained in:
@@ -47,7 +47,15 @@ namespace NBF
|
||||
{
|
||||
var tabData = tabList[i];
|
||||
var tabItem = List.AddItemFromPool().asButton;
|
||||
tabItem.title = Lan.Get(tabData.Name);
|
||||
if (!string.IsNullOrEmpty(tabData.Key))
|
||||
{
|
||||
tabItem.SetLanguage(tabData.Key);
|
||||
}
|
||||
else
|
||||
{
|
||||
tabItem.SetLanguage(tabData.Name);
|
||||
}
|
||||
|
||||
listWidth += tabItem.width;
|
||||
if (i > 0)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user