diff --git a/Dalamud/Interface/Components/ImGuiComponents.IconButton.cs b/Dalamud/Interface/Components/ImGuiComponents.IconButton.cs index 7ef3f56e5..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. /// @@ -55,7 +64,19 @@ public static partial class ImGuiComponents /// The color of the button when hovered. /// Indicator if button is clicked. 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($"{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.