private void Init()
    {
        win    = this;
        config = LanguageDataUtils.LoadRuntimeConfig();

        if (config == null)
        {
            return;
        }

        if (Application.isPlaying)
        {
            currentLanguage = LanguageManager.CurrentLanguage;
        }
        if (!config.gameExistLanguages.Contains(currentLanguage))
        {
            currentLanguage = config.defaultLanguage;
        }
        s_languageFullKeyFileNameList = LanguageDataEditorUtils.LoadLangusgeAllFileNames(currentLanguage);
        if (!string.IsNullOrEmpty(selectFullFileName))
        {
            currentFileDataTable = LanguageDataUtils.LoadFileData(currentLanguage, selectFullFileName);
        }
        if (treeViewState == null)
        {
            treeViewState = new TreeViewState();
        }

        treeView = new FolderTreeView(treeViewState);

        treeView.SetData(s_languageFullKeyFileNameList);
        treeView.dblclickItemCallBack = ModuleFileDblclickItemCallBack;
        treeView.selectCallBack       = ModuleFileFolderSelectCallBack;
    }
Exemplo n.º 2
0
    public static void Init()
    {
        //Debug.Log("1 当前语言: " + Application.systemLanguage + " isInit " + isInit);

        if (!isInit)
        {
            isInit = true;
            if (config == null)
            {
                config = LanguageDataUtils.LoadRuntimeConfig();
            }
            SetLanguage(ApplicationManager.Langguage);
        }
    }
Exemplo n.º 3
0
 public static void Init()
 {
     if (!isInit)
     {
         isInit = true;
         if (config == null)
         {
             config = LanguageDataUtils.LoadRuntimeConfig();
         }
         if (config == null)
         {
             return;
         }
         s_currentLanguage = SetConfig();
         Debug.Log("使用语言:" + s_currentLanguage);
     }
 }
Exemplo n.º 4
0
    public static List <string> GetLanguageAllFunKeyList()
    {
        List <string>         list   = new List <string>();
        LanguageSettingConfig config = LanguageDataUtils.LoadRuntimeConfig();

        if (config != null)
        {
            List <string> allFilePath = LoadLangusgeAllFileNames(config.defaultLanguage);
            foreach (var item in allFilePath)
            {
                DataTable data = LanguageDataUtils.LoadFileData(config.defaultLanguage, item);
                foreach (var key in data.TableIDs)
                {
                    list.Add(item + "/" + key);
                }
            }
        }

        return(list);
    }
Exemplo n.º 5
0
    public static void Init()
    {
        //Debug.Log("1 当前语言: " + Application.systemLanguage + " isInit " + isInit);

        if (!isInit)
        {
            isInit = true;
            if (config == null)
            {
                config = LanguageDataUtils.LoadRuntimeConfig();
            }
            if (config == null)
            {
                return;
            }
            s_currentLanguage = SetConfig();
            Debug.Log("使用语言:" + s_currentLanguage);
            // SetLanguage(SetConfig());
        }
    }