Class ImGuiComponents
Class containing various methods providing ImGui components.
Assembly: Dalamud.dll
View Source
public static class ImGuiComponents
Methods
ColorPickerWithPalette(int, string, Vector4)
ColorPicker with palette.
View Source
public static Vector4 ColorPickerWithPalette(int id, string description, Vector4 originalColor)
Returns
System.Numerics.Vector4
: Selected color.
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | id | Id for the color picker. |
System.String | description | The description of the color picker. |
System.Numerics.Vector4 | originalColor | The current color. |
ColorPickerWithPalette(int, string, Vector4, ImGuiColorEditFlags)
ColorPicker with palette with color picker options.
View Source
public static Vector4 ColorPickerWithPalette(int id, string description, Vector4 originalColor, ImGuiColorEditFlags flags)
Returns
System.Numerics.Vector4
: Selected color.
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | id | Id for the color picker. |
System.String | description | The description of the color picker. |
System.Numerics.Vector4 | originalColor | The current color. |
ImGuiNET.ImGuiColorEditFlags | flags | Flags to customize color picker. |
DisabledButton(FontAwesomeIcon, int?, Vector4?, Vector4?, Vector4?, float)
Alpha modified IconButton component to use an icon as a button with alpha and color options.
View Source
public static bool DisabledButton(FontAwesomeIcon icon, int? id = null, Vector4? defaultColor = null, Vector4? activeColor = null, Vector4? hoveredColor = null, float alphaMult = 0.5)
Returns
System.Boolean
: Indicator if button is clicked.
Parameters
Type | Name | Description |
---|---|---|
Dalamud.Interface.FontAwesomeIcon | icon | The icon for the button. |
System.Nullable<System.Int32> | id | The ID of the button. |
System.Nullable<System.Numerics.Vector4> | defaultColor | The default color of the button. |
System.Nullable<System.Numerics.Vector4> | activeColor | The color of the button when active. |
System.Nullable<System.Numerics.Vector4> | hoveredColor | The color of the button when hovered. |
System.Single | alphaMult | A multiplier for the current alpha levels. |
DisabledButton(string, Vector4?, Vector4?, Vector4?, float)
Alpha modified Button component to use as a disabled button with alpha and color options.
View Source
public static bool DisabledButton(string labelWithId, Vector4? defaultColor = null, Vector4? activeColor = null, Vector4? hoveredColor = null, float alphaMult = 0.5)
Returns
System.Boolean
: Indicator if button is clicked.
Parameters
Type | Name | Description |
---|---|---|
System.String | labelWithId | The button label with ID. |
System.Nullable<System.Numerics.Vector4> | defaultColor | The default color of the button. |
System.Nullable<System.Numerics.Vector4> | activeColor | The color of the button when active. |
System.Nullable<System.Numerics.Vector4> | hoveredColor | The color of the button when hovered. |
System.Single | alphaMult | A multiplier for the current alpha levels. |
HelpMarker(string)
HelpMarker component to add a help icon with text on hover.
View Source
public static void HelpMarker(string helpText)
Parameters
Type | Name | Description |
---|---|---|
System.String | helpText | The text to display on hover. |
HelpMarker(string, FontAwesomeIcon, Vector4?)
HelpMarker component to add a custom icon with text on hover.
View Source
public static void HelpMarker(string helpText, FontAwesomeIcon icon, Vector4? color = null)
Parameters
Type | Name | Description |
---|---|---|
System.String | helpText | The text to display on hover. |
Dalamud.Interface.FontAwesomeIcon | icon | The icon to use. |
System.Nullable<FFXIVClientStructs.FFXIV.Common.Math.Vector4> | color | The color of the icon. |
IconButton(FontAwesomeIcon)
IconButton component to use an icon as a button.
View Source
public static bool IconButton(FontAwesomeIcon icon)
Returns
System.Boolean
: Indicator if button is clicked.
Parameters
Type | Name | Description |
---|---|---|
Dalamud.Interface.FontAwesomeIcon | icon | The icon for the button. |
IconButton(FontAwesomeIcon, Vector2)
IconButton component to use an icon as a button.
View Source
public static bool IconButton(FontAwesomeIcon icon, Vector2 size)
Returns
System.Boolean
: Indicator if button is clicked.
Parameters
Type | Name | Description |
---|---|---|
Dalamud.Interface.FontAwesomeIcon | icon | The icon for the button. |
System.Numerics.Vector2 | size | Sets the size of the button. If either dimension is set to 0, that dimension will conform to the size of the icon. |
IconButton(FontAwesomeIcon, Vector4?, Vector4?, Vector4?, Vector2?)
IconButton component to use an icon as a button.