/// <summary> /// Unfocus the window if the user has just moved to a different quick deploy tab. /// </summary> /// <param name="currentTab">A ToolBarSelectedButton instance representing the current quick deploy tab.</param> private static void UpdateGuiFocus(ToolBarSelectedButton currentTab) { if (currentTab != _previousTab) { _previousTab = currentTab; GUI.FocusControl(null); } }
public static void ShowWindow(ToolBarSelectedButton select) { var window = GetWindow <QuickDeployWindow>(true, "Quick Deploy"); window.minSize = new Vector2(WindowMinWidth, WindowMinHeight); _toolbarSelectedButtonIndex = (int)select; Config.LoadConfiguration(); }