//private static CoolTheme coolTheme = new CoolTheme(); /// <summary> /// Initializes the debugger. /// </summary> public static void BasicInit() { _imGui = new ImGuiHost(SadConsole.Host.Global.GraphicsDeviceManager, Game.Instance.MonoGameInstance, true); _imGui.Font = "Roboto-Regular.ttf"; _imGui.fontSize = 14f; Game.Instance.MonoGameInstance.Components.Add(_imGui); SadConsole.Game.Instance.MonoGameInstance.SadConsoleComponent.Enabled = false; }
public static void Start() { if (_imGui != null) { _imGui.Visible = true; _imGui.Enabled = true; SadConsole.Game.Instance.MonoGameInstance.SadConsoleComponent.Enabled = false; SadConsole.Settings.DoFinalDraw = GuiState.ShowSadConsoleRendering; return; } SadConsole.Game.Instance.MonoGameInstance.SadConsoleComponent.Enabled = false; SadConsole.Settings.DoFinalDraw = GuiState.ShowSadConsoleRendering; //SadConsole.Game.Instance.MonoGameInstance.ClearScreenComponent.Visible = false; //SadConsole.Game.Instance.MonoGameInstance.ClearScreenComponent.Enabled = false; _imGui = new ImGuiHost(SadConsole.Host.Global.GraphicsDeviceManager, Game.Instance.MonoGameInstance, true); _imGui.Font = "Roboto-Regular.ttf"; _imGui.fontSize = 14f; //ImGui.Theme = coolTheme; //ImGui.Initialize(); //ImGui.LoadContent(); GuiState.ShowSadConsoleRenderingChanged += (s, e) => SadConsole.Settings.DoFinalDraw = GuiState.ShowSadConsoleRendering; _imGui.UIComponents.Add(new GuiTopBar()); _imGui.UIComponents.Add(new GuiDockspace()); _imGui.UIComponents.Add(new GuiScreenObjects()); _imGui.UIComponents.Add(new GuiSurfacePreview()); //_debuggerComponent = new DebuggerComponent(Game.Instance.MonoGameInstance, imGui); Game.Instance.MonoGameInstance.Components.Add(_imGui); //ImGuiNET.ImGui. }