public static void ShowPopUp(TranslationDictionaryEditor editor)
        {
            UpdateFontAssets window = GetWindow <UpdateFontAssets>(true, "Update Font Assets", true);

            window.Editor           = editor;
            window.DictionaryToEdit = (TranslationDictionary)editor.serializedObject.targetObject;
            window.Setup();
            window.Show();
        }
Esempio n. 2
0
        private void DrawUpdateFontAssets()
        {
            // Draw label
            EditorGUILayout.Space();
            EditorGUILayout.LabelField("Update Font Assets", EditorStyles.boldLabel);

            // Draw the buttons
            EditorGUILayout.BeginHorizontal();
            if (GUILayout.Button("Add Characters to Font Assets...") == true)
            {
                UpdateFontAssets.ShowPopUp(this);
            }
            EditorGUILayout.EndHorizontal();
        }
 public FontSets(UpdateFontAssets editor, SupportedLanguages languages, bool[] languageToUpdate) : base(editor, true)
 {
     this.languages        = languages;
     this.languageToUpdate = languageToUpdate;
 }