public static void ShowWindow(AS_SetupWindow caller) { //Show existing window instance. If one doesn't exist, make one. AS_WrongBuildTargetWindow window = (AS_WrongBuildTargetWindow)EditorWindow.GetWindow(typeof(AS_WrongBuildTargetWindow)); window.minSize = new Vector2(460, 130); window.name = "Web player platform active"; window.title = "Web player platform active"; window.caller = caller; window.position = new Rect(600, 400, window.minSize.x, window.minSize.y); }
public static void ShowWindow() { //Show existing window instance. If one doesn't exist, make one. AS_SetupWindow window = (AS_SetupWindow)EditorWindow.GetWindow(typeof(AS_SetupWindow)); window.minSize = new Vector2(620, 500); window.name = "Setup"; window.title = "Setup"; window.position = new Rect(400, 200, window.minSize.x, window.minSize.y); }
public static void ShowWindow(string name, string _message, AS_SetupWindow caller = null, AS_SetupState _stateToLoad = AS_SetupState.CredentialsAndPreferences) { //Show existing window instance. If one doesn't exist, make one. AS_PopUpWindow window = (AS_PopUpWindow)EditorWindow.GetWindow(typeof(AS_PopUpWindow)); window.minSize = new Vector2(460, 110); window.name = name; window.title = name; window.caller = caller; window.stateToLoad = _stateToLoad; window.position = new Rect(600, 400, window.minSize.x, window.minSize.y); window.message = _message; }