public static DeployGateWindow GetWindow() { DeployGateWindow window = GetWindow <DeployGateWindow>(true, "DeployGateWindow"); SetWindowSize(window); return(window); }
static bool CanBuild(ref string error) { if (string.IsNullOrEmpty(preference.user.username) || string.IsNullOrEmpty(preference.user.token)) { error = I18n.profileError; DeployGateWindow.GetWindow().selection = DeployGateWindowUtility.DeployGateSelection.Setings; } if (!System.Net.NetworkInformation.NetworkInterface.GetIsNetworkAvailable()) { error = I18n.networkError; } return(string.IsNullOrEmpty(error)); }
static void DrawBuildButton() { if (GUI.Button(new Rect(Screen.width * 0.8f, Screen.height - 40, Screen.width * 0.20f, 30), "Build & Upload")) { string error = ""; if (CanBuild(ref error)) { DeployGateWindow.CloseWindow(); DeployGateBuildPipeline.Build(messages[0]); } else { DeployGateWindow.GetWindow().ShowNotification(new GUIContent(error)); } EditorGUIUtility.ExitGUI(); } }
static void OpenDeployGatePreferenceWindow() { DeployGateWindow.GetWindow(); }