public static void ShowWindow() { LocalizationEditorWindow window = (LocalizationEditorWindow)EditorWindow.GetWindow(typeof(LocalizationEditorWindow), false); LOCALIZATION_DATA = new LocalizationData(Application.dataPath, LOCALIZATION_RESOURCE_FILE, LocalizationEditorWindow.getLanguage()); window.titleContent = new GUIContent(LOCALIZATION_DATA.getEntries()[LOCALIZATION_WINDOW_TITLE]); window.position = new Rect((Screen.currentResolution.width / 2) - (WINDOW_WIDTH / 2), (Screen.currentResolution.height / 2) - (WINDOW_HEIGHT / 2), WINDOW_WIDTH, WINDOW_HEIGHT); SAVE_BUTTON = new GUIContent(LOCALIZATION_DATA.getEntries()[LOCALIZATION_SAVE]); DELETE_BUTTON = new GUIContent(LOCALIZATION_DATA.getEntries()[LOCALIZATION_DELETE_RESOURCE]); NEW_ENTRY_BUTTON = new GUIContent(LOCALIZATION_DATA.getEntries()[LOCALIZATION_NEW_ENTRY]); ADD_LANGUAGE_BUTTON = new GUIContent(LOCALIZATION_DATA.getEntries()[LOCALIZATION_ADD_LANGUAGE]); DELETE_LANGUAGE_BUTTON = new GUIContent(LOCALIZATION_DATA.getEntries()[LOCALIZATION_DELETE_LANGUAGE]); window.resourcesList = window.buildResourcesList(); window.createResource(); }
static void Init() { LocalizationEditorWindow window = (LocalizationEditorWindow)EditorWindow.GetWindow(typeof(LocalizationEditorWindow)); window.title = windowTitle; }
public LocalizationResourceNamePopup(LocalizationEditorWindow localizationWindow) { this.localizationWindow = localizationWindow; LOCALIZATION_DATA = new LocalizationData(Application.dataPath, LOCALIZATION_RESOURCE_FILE, LocalizationEditorWindow.getLanguage()); }
private void OpenLocalizationEditor(object sender, RoutedEventArgs e) { var window = new LocalizationEditorWindow(); window.ShowDialog(); }
public void EditContent() { LocalizationEditorWindow.ShowWindow(this); }