Class UiBuilder
This class represents the Dalamud UI that is drawn on top of the game. It can be used to draw custom windows and overlays.
Assembly: Dalamud.dll
View Source
public sealed class UiBuilder : IDisposable, IUiBuilder
Implements:
System.IDisposable, Dalamud.Interface.IUiBuilder
Properties
DefaultFontSizePt
Gets the default Dalamud font size in points.
View Source
public static float DefaultFontSizePt { get; }
DefaultFontSizePx
Gets the default Dalamud font size in pixels.
View Source
public static float DefaultFontSizePx { get; }
DefaultFont
Gets the default Dalamud font - supporting all game languages and icons.
<strong>Accessing this static property outside of Dalamud.Interface.UiBuilder.Draw is dangerous and not supported.</strong>
View Source
public static ImFontPtr DefaultFont { get; }
IconFont
Gets the default Dalamud icon font based on FontAwesome 5 Free solid.
<strong>Accessing this static property outside of Dalamud.Interface.UiBuilder.Draw is dangerous and not supported.</strong>
View Source
public static ImFontPtr IconFont { get; }
MonoFont
Gets the default Dalamud monospaced font based on Inconsolata Regular.
<strong>Accessing this static property outside of Dalamud.Interface.UiBuilder.Draw is dangerous and not supported.</strong>
View Source
public static ImFontPtr MonoFont { get; }
DefaultFontSpec
Gets the default font specifications.
View Source
public IFontSpec DefaultFontSpec { get; }
FontDefaultSizePt
Gets the default Dalamud font size in points.
View Source
public float FontDefaultSizePt { get; }
FontDefaultSizePx
Gets the default Dalamud font size in pixels.
View Source
public float FontDefaultSizePx { get; }
FontDefault
Gets the default Dalamud font - supporting all game languages and icons.
<strong>Accessing this static property outside of Dalamud.Interface.IUiBuilder.Draw is dangerous and not supported.</strong>
View Source
public ImFontPtr FontDefault { get; }
FontIcon
Gets the default Dalamud icon font based on FontAwesome 5 Free solid.
<strong>Accessing this static property outside of Dalamud.Interface.IUiBuilder.Draw is dangerous and not supported.</strong>
View Source
public ImFontPtr FontIcon { get; }
FontMono
Gets the default Dalamud monospaced font based on Inconsolata Regular.
<strong>Accessing this static property outside of Dalamud.Interface.IUiBuilder.Draw is dangerous and not supported.</strong>
View Source
public ImFontPtr FontMono { get; }
DefaultFontHandle
Gets the handle to the default Dalamud font - supporting all game languages and icons.
View Source
public IFontHandle DefaultFontHandle { get; }
IconFontHandle
Gets the default Dalamud icon font based on FontAwesome 5 Free solid.
View Source
public IFontHandle IconFontHandle { get; }
IconFontFixedWidthHandle
Gets the default Dalamud icon font based on FontAwesome 5 free solid with a fixed width and vertically centered glyphs.
View Source
public IFontHandle IconFontFixedWidthHandle { get; }
MonoFontHandle
Gets the default Dalamud monospaced font based on Inconsolata Regular.
View Source
public IFontHandle MonoFontHandle { get; }
Device
Gets the game's active Direct3D device.
View Source
[Obsolete("Use DeviceHandle and wrap it using DirectX wrapper library of your choice.")]
public Device Device { get; }
DeviceHandle
Gets the game's active Direct3D device.
View Source
public nint DeviceHandle { get; }
WindowHandlePtr
Gets the game's main window handle.
View Source
public nint WindowHandlePtr { get; }
DisableAutomaticUiHide
Gets or sets a value indicating whether this plugin should hide its UI automatically when the game's UI is hidden.
View Source
public bool DisableAutomaticUiHide { get; set; }
DisableUserUiHide
Gets or sets a value indicating whether this plugin should hide its UI automatically when the user toggles the UI.
View Source
public bool DisableUserUiHide { get; set; }
DisableCutsceneUiHide
Gets or sets a value indicating whether this plugin should hide its UI automatically during cutscenes.
View Source
public bool DisableCutsceneUiHide { get; set; }
DisableGposeUiHide
Gets or sets a value indicating whether this plugin should hide its UI automatically while gpose is active.
View Source
public bool DisableGposeUiHide { get; set; }
OverrideGameCursor
Gets or sets a value indicating whether the game's cursor should be overridden with the ImGui cursor.
View Source
public bool OverrideGameCursor { get; set; }
FrameCount
Gets the count of Draw calls made since plugin creation.
View Source
public ulong FrameCount { get; }
CutsceneActive
Gets a value indicating whether a cutscene is playing.
View Source
public bool CutsceneActive { get; }
ShouldModifyUi
Gets a value indicating whether this plugin should modify the game's interface at this time.