/// <summary> /// Open the ReSize Settings window. /// </summary> private void OpenSettings() { // initialize if closed if (ReSizeSettingsWindow.window == null) { ReSizeSettingsWindow.Init(); } else { // set focus ReSizeSettingsWindow.window.Focus(); } }
/// <summary> /// Initialize the window. /// </summary> public static void Init() { window = (ReSizeSettingsWindow)GetWindow(typeof(ReSizeSettingsWindow), true, "ReSize Settings"); window.Show(); }