public void ChangeLanguage(ELANGUAGE language) // 런타임중 언어변경은 이것만 실행
 {
     this.m_language = language;
     foreach (var strTable in m_strTableList)
     {
         strTable.AllStrSetValue();
         AllStrKeyValueSet();
     }
 }
    public void ClickTestChangeLanguage()
    {
        m_language++;
        if (m_language == ELANGUAGE.MAX)
        {
            m_language = ELANGUAGE.DEFAULT + 1;
        }

        ChangeLanguage(m_language);
    }
 public Dictionary <string, string> GetMergeDic(ELANGUAGE language)
 {
     if (mergeDic.Count == 0)
     {
         MergeData();
         m_language = ELANGUAGE.MYANMAR;
         language   = m_language;
     }
     return(mergeDic[(int)language]);
 }
Ejemplo n.º 4
0
    private void SetStrTableManager()
    {
        StringTableManager strTableManager = FindObjectOfType <StringTableManager>();

        GUILayout.Label("CreateStrData", EditorStyles.boldLabel);
        op = (ELANGUAGE)EditorGUILayout.EnumPopup("Select Language", op);

        if (GUILayout.Button("Setting"))
        {
            Debug.Log("Setting");
            //csv 파일에서 변경사항이 있을경우 덮어씌우는 기능
            //strTableManager.SetStrDatas(CsvManager.ExportStrData());
            //strTableManager.MergeData();
            strTableManager.StrTableManagerSetting();
            strTableManager.ChangeLanguage(op);
            //
        }
    }
 private void Awake()
 {
     MergeData();
     //m_language = (ELANGUAGE)Config.getInt(CONFIGIDX.LANGUAGE);
     m_language = ELANGUAGE.MYANMAR;
 }