fix(ui): use ImGui.Button for Hellion Forge Discord link

This commit is contained in:
2026-05-06 20:39:41 +02:00
parent dceb028184
commit e58376bf50
3 changed files with 4 additions and 17 deletions
+1 -1
View File
@@ -870,7 +870,7 @@
<value>Idee für eine Plugin-Integration, die nicht auf der Liste steht? Komm auf den Hellion-Forge-Discord und schreib mir — Community-Input bestimmt die Roadmap.</value>
</data>
<data name="Settings_Integrations_GotAnIdea_LinkLabel" xml:space="preserve">
<value>discord.gg/X9V7Kcv5gR</value>
<value>Hellion Forge öffnen</value>
</data>
<data name="ChatHeader_HonorificTitle_Tooltip" xml:space="preserve">
<value>Custom-Titel von Honorific</value>
+1 -1
View File
@@ -870,7 +870,7 @@
<value>Got an idea for a plugin integration that's not on this list? Hop on the Hellion Forge Discord and tell me — community input drives the roadmap.</value>
</data>
<data name="Settings_Integrations_GotAnIdea_LinkLabel" xml:space="preserve">
<value>discord.gg/X9V7Kcv5gR</value>
<value>Open Hellion Forge</value>
</data>
<data name="ChatHeader_HonorificTitle_Tooltip" xml:space="preserve">
<value>Honorific custom title</value>
+2 -15
View File
@@ -174,22 +174,9 @@ internal sealed class Integrations : ISettingsTab
ImGui.TextWrapped(HellionStrings.Settings_Integrations_GotAnIdea_Body);
ImGui.Spacing();
var theme = Plugin.ThemeRegistry.Active;
using (ImRaii.PushColor(ImGuiCol.Text, ColourUtil.RgbaToAbgr(theme.Colors.Primary)))
if (ImGui.Button(HellionStrings.Settings_Integrations_GotAnIdea_LinkLabel))
{
// Selectable so the whole "→ link label" line is clickable and
// shows a hover state, matching the affordance users expect from
// hyperlinks in ImGui-driven plugins. Fully-qualified
// Dalamud.Utility.Util.OpenLink because HellionChat.Util is in
// scope here and an unqualified Util would clash.
if (ImGui.Selectable("→ " + HellionStrings.Settings_Integrations_GotAnIdea_LinkLabel))
{
Dalamud.Utility.Util.OpenLink(BrandingLinks.HellionForgeDiscordInvite);
}
}
if (ImGui.IsItemHovered())
{
ImGui.SetMouseCursor(ImGuiMouseCursor.Hand);
Dalamud.Utility.Util.OpenLink(BrandingLinks.HellionForgeDiscordInvite);
}
}