Class ConfigurationImGui
Extensions to enable ImGui with SadConsole.
Inherited Members
Namespace: SadConsole.Configuration
Assembly: SadConsole.Debug.MonoGame.dll
Syntax
public static class ConfigurationImGui
Methods
EnableImGui(Builder, string, float, bool, Action<ImGuiMonoGameComponent>)
Adds the ImGui MonoGame component to MonoGame.
Declaration
public static Builder EnableImGui(this Builder builder, string fontFile = "Roboto-Regular.ttf", float fontSize = 16, bool enableDocking = false, Action<ImGuiMonoGameComponent> startupAction = null)
Parameters
Type | Name | Description |
---|---|---|
Builder | builder | The config builder. |
string | fontFile | The font file to use with ImGui. Defaults to 'Roboto-Regular.ttf'. |
float | fontSize | The font size to use with ImGui. Defaults to 16. |
bool | enableDocking | Enables the docking feature of ImGui. Defaults to false. |
Action<ImGuiMonoGameComponent> | startupAction | A callback to add objects to the ImGui MonoGame component. |
Returns
Type | Description |
---|---|
Builder | The config builder. |