Example #1
0
        protected override void OnChangeLang(ref CreatureConfig[] cfgs, string language)
        {
            TextDao tDao = TextDao.Inst;

            for (int i = 0; i < cfgs.Length; i++)
            {
                CreatureConfig cfg = cfgs[i];
                tDao.TryGetText(cfg.AvatarName, language, ref cfg.AvatarName);
            }
        }
Example #2
0
        protected override void OnChangeLang(ref AchievementConfig[] cfgs, string language)
        {
            TextDao tDao = TextDao.Inst;

            for (int i = 0; i < cfgs.Length; i++)
            {
                AchievementConfig cfg = cfgs[i];
                tDao.TryGetText(cfg.Name, language, ref cfg.Name);
            }
        }
Example #3
0
        protected override void OnChangeLang(ref SceneBubbleDialogueConfig[] cfgs, string language)
        {
            TextDao tDao = TextDao.Inst;

            for (int i = 0; i < cfgs.Length; i++)
            {
                SceneBubbleDialogueConfig cfg = cfgs[i];
                tDao.TryGetText(cfg.DialogueTid, language, ref cfg.DialogueTid);
            }
        }
Example #4
0
        protected override void OnChangeLang(ref BuffConfig[] cfgs, string language)
        {
            TextDao tDao = TextDao.Inst;

            for (int i = 0; i < cfgs.Length; i++)
            {
                BuffConfig cfg = cfgs[i];
                tDao.TryGetText(cfg.Tid, language, ref cfg.Tid);
            }
        }
Example #5
0
        protected override void OnChangeLang(ref HeroInfoConfig[] cfgs, string language)
        {
            TextDao tDao = TextDao.Inst;

            for (int i = 0; i < cfgs.Length; i++)
            {
                HeroInfoConfig cfg = cfgs[i];
                tDao.TryGetText(cfg.HeroName, language, ref cfg.HeroName);
                tDao.TryGetText(cfg.HeroIntroduce, language, ref cfg.HeroIntroduce);
            }
        }
Example #6
0
        protected override void OnChangeLang(ref HeroElementConfig[] cfgs, string language)
        {
            TextDao tDao = TextDao.Inst;

            for (int i = 0; i < cfgs.Length; i++)
            {
                HeroElementConfig cfg = cfgs[i];
                //tDao.TryGetText(cfg.HeroElementIconPath.ToString(), language, ref cfg.HeroElementIconPath);
                tDao.TryGetText(cfg.HeroElementTid, language, ref cfg.HeroElementTid);
            }
        }
Example #7
0
        protected override void OnChangeLang(ref CharacteristicConfig[] cfgs, string language)
        {
            TextDao tDao = TextDao.Inst;

            for (int i = 0; i < cfgs.Length; i++)
            {
                CharacteristicConfig cfg = cfgs[i];
                tDao.TryGetText(cfg.NameTid, language, ref cfg.NameTid);
                tDao.TryGetText(cfg.InfoTid, language, ref cfg.InfoTid);
            }
        }
Example #8
0
        protected override void OnChangeLang(ref SceneDialogueConfig[] cfgs, string language)
        {
            TextDao tDao = TextDao.Inst;

            for (int i = 0; i < cfgs.Length; i++)
            {
                SceneDialogueConfig cfg = cfgs[i];
                tDao.TryGetText(cfg.NameTid, language, ref cfg.NameTid);
                tDao.TryGetText(cfg.DialogueTid, language, ref cfg.DialogueTid);
                tDao.TryGetText(cfg.SkipSummary, language, ref cfg.SkipSummary);
                tDao.TryGetText(cfg.OptionTid1, language, ref cfg.OptionTid1);
                tDao.TryGetText(cfg.OptionTid2, language, ref cfg.OptionTid2);
                tDao.TryGetText(cfg.OptionTid3, language, ref cfg.OptionTid3);
            }
        }