diff --git a/Dalamud/Interface/Components/ImGuiComponents.HelpMarker.cs b/Dalamud/Interface/Components/ImGuiComponents.HelpMarker.cs index f57746eca..f0ecf2f2f 100644 --- a/Dalamud/Interface/Components/ImGuiComponents.HelpMarker.cs +++ b/Dalamud/Interface/Components/ImGuiComponents.HelpMarker.cs @@ -11,11 +11,18 @@ public static partial class ImGuiComponents /// HelpMarker component to add a help icon with text on hover. /// /// The text to display on hover. - public static void HelpMarker(string helpText) + public static void HelpMarker(string helpText) => HelpMarker(helpText, FontAwesomeIcon.InfoCircle); + + /// + /// HelpMarker component to add a custom icon with text on hover. + /// + /// The text to display on hover. + /// The icon to use. + public static void HelpMarker(string helpText, FontAwesomeIcon icon) { ImGui.SameLine(); ImGui.PushFont(UiBuilder.IconFont); - ImGui.TextDisabled(FontAwesomeIcon.InfoCircle.ToIconString()); + ImGui.TextDisabled(icon.ToIconString()); ImGui.PopFont(); if (!ImGui.IsItemHovered()) return; ImGui.BeginTooltip();