ImGuiImplementation Class
Definition
Section titled “Definition”A basic ImGui interface that adds the ImGuiMonoGameComponent to MonoGame, rendering ImGui over SadConsole.
public static class ImGuiImplementationInheritance object
Properties
Section titled “Properties”Renderer
Section titled “Renderer”Gets the renderer for ImGui.
public static ImGuiRenderer Renderer { get; }MonoGameComponent
Section titled “MonoGameComponent”Gets the MonoGame component that is rendering ImGui.
public static ImGuiMonoGameComponent MonoGameComponent { get; }UIObjects
Section titled “UIObjects”Gets the list of UI objects that is drawn by ImGui.
public static List<ImGuiObjectBase> UIObjects { get; }Methods
Section titled “Methods”Start(bool, bool, bool, float, string)
Section titled “Start(bool, bool, bool, float, string)”Starts the ImGui system.
public static void Start(bool disableFinalDraw = true, bool disableUpdate = false, bool disableInput = true, float fontSize = 18, string fontFileTTF = "Roboto-Regular.ttf")Parameters
Section titled “Parameters”disableFinalDraw bool
Turns off SadConsole.Settings.DoFinalDraw, which causes SadConsole to only render ImGui to the screen.
disableUpdate bool
Turns off SadConsole.Settings.DoUpdate, which pauses SadConsole’s update loop.
disableInput bool
Turns off SadConsole.Settings.Input.DoKeyboard and SadConsole.Settings.Input.DoMouse, allowing only ImGui to handle input.
fontSize float
The font size to use with ImGui.
fontFileTTF string
The TTF font file to use with ImGui.