Skip to content

ConfigurationImGui Class

Extensions to enable ImGui with SadConsole.

C#
public static class ConfigurationImGui

Inheritance object

EnableImGui(Builder, string, float, bool, Action<ImGuiMonoGameComponent>)

Section titled “EnableImGui(Builder, string, float, bool, Action<ImGuiMonoGameComponent>)”

Adds the ImGui MonoGame component to MonoGame.

C#
public static Builder EnableImGui(this Builder builder, string fontFile = "Roboto-Regular.ttf", float fontSize = 16, bool enableDocking = false, Action<ImGuiMonoGameComponent> startupAction = null)

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.

Builder
The config builder.