Esempio n. 1
0
    public void SavePressed()
    {
        if (CurrentLang == null)
        {
            return;
        }

        ApplyStateToLang();
        Debug.Log("Saving '" + CurrentLang.ToString() + "'");
        LanguageIO.SaveLanguage(CurrentLang);
    }
Esempio n. 2
0
    public void NewButtonPressed()
    {
        if (IsValidLangName(NewLangIn.text) == null)
        {
            string name = NewLangIn.text;
            NewLangIn.text = "";

            // Add new empty language file.
            var lang = new Language();
            lang.Name = name;

            LanguageIO.SaveLanguage(lang);

            Debug.Log("Added new language '" + name + "'");
            SpawnFromFolderContents();
        }
    }