ui基本完毕,修了一大把的bug
This commit is contained in:
@@ -238,7 +238,15 @@ public class userSettings : MonoBehaviour
|
||||
index = 0;
|
||||
}
|
||||
|
||||
LocalizationService.SetLanguage(_availableLanguageCodes[index]);
|
||||
string targetLanguageCode = _availableLanguageCodes[index];
|
||||
if (IsTemporarilyUnsupportedLanguage(targetLanguageCode))
|
||||
{
|
||||
gNotice.error.display(LocalizationService.LocalizeLiteral("暂不支持该语言"));
|
||||
SyncLanguageDropdownValue();
|
||||
return;
|
||||
}
|
||||
|
||||
LocalizationService.SetLanguage(targetLanguageCode);
|
||||
}
|
||||
|
||||
private void HandleLanguageChanged(string languageCode)
|
||||
@@ -247,6 +255,12 @@ public class userSettings : MonoBehaviour
|
||||
UpdateUserInfoDisplay();
|
||||
}
|
||||
|
||||
private static bool IsTemporarilyUnsupportedLanguage(string languageCode)
|
||||
{
|
||||
return !string.IsNullOrWhiteSpace(languageCode) &&
|
||||
languageCode.StartsWith("en", System.StringComparison.OrdinalIgnoreCase);
|
||||
}
|
||||
|
||||
private void OnClearupSaveDataClicked()
|
||||
{
|
||||
if (clearupClickCount > 0 && Time.unscaledTime > clearupExpireTime)
|
||||
|
||||
Reference in New Issue
Block a user