private bool OpenWindow() { var window = GetWindow; if (window != null) { return(true); } window = new Window_MiniMap(); Find.WindowStack.Add(window); return(true); }
private bool OpenWindow() { var window = GetWindow; if (window != null) { return(true); } Window_MiniMap.windowRect = new Rect(Screen.width - windowSize.x, 0f, windowSize.y, windowSize.x); window = new Window_MiniMap(Window_MiniMap.windowRect); if (window == null) { CCL_Log.Error("Unable to create Window_MiniMap", "MiniMap"); return(false); } Find.WindowStack.Add(window); return(true); }