ConfigurationImGui Class
Definition
Section titled “Definition”Extensions to enable ImGui with SadConsole.
public static class ConfigurationImGuiInheritance object
Methods
Section titled “Methods”EnableImGui(Builder, string, float, bool, Action<ImGuiMonoGameComponent>)
Section titled “EnableImGui(Builder, string, float, bool, Action<ImGuiMonoGameComponent>)”Adds the ImGui MonoGame component to MonoGame.
public static Builder EnableImGui(this Builder builder, string fontFile = "Roboto-Regular.ttf", float fontSize = 16, bool enableDocking = false, Action<ImGuiMonoGameComponent> startupAction = null)Parameters
Section titled “Parameters”builder Builder
The config builder.
fontFile string
The font file to use with ImGui. Defaults to ‘Roboto-Regular.ttf’.
fontSize float
The font size to use with ImGui. Defaults to 16.
enableDocking bool
Enables the docking feature of ImGui. Defaults to false.
startupAction Action<ImGuiMonoGameComponent>
A callback to add objects to the ImGui MonoGame component.
Returns
Section titled “Returns”Builder
The config builder.