/// <summary> /// 重置配置 /// </summary> protected override void ResetConfig() { base.ResetConfig(); configs.Clear(); foreach (var obj in System.Enum.GetValues(typeof(LocalizationManager.LanguageType))) { LocalizationManager.LanguageType languageType = (LocalizationManager.LanguageType)obj; Config config = new Config(); config.languageName = languageType.ToString(); config.languageType = languageType; configs.Add(config); } }
/// <summary> /// 重置 /// </summary> public void Reset() { GenConfigKey(); currentLanguageType = LocalizationManager.LanguageType.cn; m_lastLanguageType = currentLanguageType; textConfigs.Clear(); foreach (var obj in System.Enum.GetValues(typeof(LocalizationManager.LanguageType))) { LocalizationManager.LanguageType languageType = (LocalizationManager.LanguageType)obj; TextConfig textConfig = new TextConfig(); textConfig.languageName = languageType.ToString(); textConfig.languageType = languageType; textConfigs.Add(textConfig); } }
public ImageConfige(LocalizationManager.LanguageType language, ImageProperty imageProperty) { m_Language = language; m_LanguageName = m_Language.ToString(); m_ImageProperty = new ImageProperty(imageProperty); }
public ImageConfige() { m_LanguageName = m_Language.ToString(); m_ImageProperty = new ImageProperty(); }