diff --git a/Dalamud/Interface/Components/ImGuiComponents.IconButton.cs b/Dalamud/Interface/Components/ImGuiComponents.IconButton.cs index cee5c5390..99e43d68c 100644 --- a/Dalamud/Interface/Components/ImGuiComponents.IconButton.cs +++ b/Dalamud/Interface/Components/ImGuiComponents.IconButton.cs @@ -26,6 +26,15 @@ public static partial class ImGuiComponents public static bool IconButton(int id, FontAwesomeIcon icon) => IconButton(id, icon, null, null, null); + /// + /// IconButton component to use an icon as a button. + /// + /// The ID of the button. + /// The icon for the button. + /// Indicator if button is clicked. + public static bool IconButton(string id, FontAwesomeIcon icon) + => IconButton(id, icon, null, null, null); + /// /// IconButton component to use an icon as a button. /// @@ -57,6 +66,18 @@ public static partial class ImGuiComponents public static bool IconButton(int id, FontAwesomeIcon icon, Vector4? defaultColor = null, Vector4? activeColor = null, Vector4? hoveredColor = null) => IconButton($"{icon.ToIconString()}##{id}", defaultColor, activeColor, hoveredColor); + /// + /// IconButton component to use an icon as a button with color options. + /// + /// The ID of the button. + /// The icon for the button. + /// The default color of the button. + /// The color of the button when active. + /// The color of the button when hovered. + /// Indicator if button is clicked. + public static bool IconButton(string id, FontAwesomeIcon icon, Vector4? defaultColor = null, Vector4? activeColor = null, Vector4? hoveredColor = null) + => IconButton($"{icon.ToIconString()}##{id}", defaultColor, activeColor, hoveredColor); + /// /// IconButton component to use an icon as a button with color options. ///