コード例 #1
0
        /// <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);
            }
        }
コード例 #2
0
        /// <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);
            }
        }
コード例 #3
0
 public ImageConfige(LocalizationManager.LanguageType language, ImageProperty imageProperty)
 {
     m_Language      = language;
     m_LanguageName  = m_Language.ToString();
     m_ImageProperty = new ImageProperty(imageProperty);
 }
コード例 #4
0
 public ImageConfige()
 {
     m_LanguageName  = m_Language.ToString();
     m_ImageProperty = new ImageProperty();
 }