Esempio n. 1
0
        /// <summary>
        /// 切换语言
        /// </summary>
        /// <param name="type"></param>
        public virtual void Switch(LanguageType type)
        {
            LanguageType = type;
            if (data.ContainsKey(type))
            {
                curDic = data[type];
            }
            Callback_OnSwitchLanguage?.Invoke();

            SelfBaseGlobal.SettingsMgr.GetBaseSettings().LanguageType = type;
        }
Esempio n. 2
0
        // 切换语言
        public virtual void Switch(LanguageType type)
        {
            LanguageType = type;
            int lanIndex = Enum <LanguageType> .Int(LanguageType);

            if (data.ContainsKey(lanIndex))
            {
                curDic = data[lanIndex];
            }
            Callback_OnSwitchLanguage?.Invoke();
            BaseGlobal.SettingsMgr.GetBaseSettings().LanguageType = type;
            GlobalUITextMgr.RefreshFont();
        }