fix(ui): use ImGui.Button for Hellion Forge Discord link
This commit is contained in:
@@ -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>
|
<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>
|
||||||
<data name="Settings_Integrations_GotAnIdea_LinkLabel" xml:space="preserve">
|
<data name="Settings_Integrations_GotAnIdea_LinkLabel" xml:space="preserve">
|
||||||
<value>discord.gg/X9V7Kcv5gR</value>
|
<value>Hellion Forge öffnen</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="ChatHeader_HonorificTitle_Tooltip" xml:space="preserve">
|
<data name="ChatHeader_HonorificTitle_Tooltip" xml:space="preserve">
|
||||||
<value>Custom-Titel von Honorific</value>
|
<value>Custom-Titel von Honorific</value>
|
||||||
|
|||||||
@@ -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>
|
<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>
|
||||||
<data name="Settings_Integrations_GotAnIdea_LinkLabel" xml:space="preserve">
|
<data name="Settings_Integrations_GotAnIdea_LinkLabel" xml:space="preserve">
|
||||||
<value>discord.gg/X9V7Kcv5gR</value>
|
<value>Open Hellion Forge</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="ChatHeader_HonorificTitle_Tooltip" xml:space="preserve">
|
<data name="ChatHeader_HonorificTitle_Tooltip" xml:space="preserve">
|
||||||
<value>Honorific custom title</value>
|
<value>Honorific custom title</value>
|
||||||
|
|||||||
@@ -174,22 +174,9 @@ internal sealed class Integrations : ISettingsTab
|
|||||||
ImGui.TextWrapped(HellionStrings.Settings_Integrations_GotAnIdea_Body);
|
ImGui.TextWrapped(HellionStrings.Settings_Integrations_GotAnIdea_Body);
|
||||||
ImGui.Spacing();
|
ImGui.Spacing();
|
||||||
|
|
||||||
var theme = Plugin.ThemeRegistry.Active;
|
if (ImGui.Button(HellionStrings.Settings_Integrations_GotAnIdea_LinkLabel))
|
||||||
using (ImRaii.PushColor(ImGuiCol.Text, ColourUtil.RgbaToAbgr(theme.Colors.Primary)))
|
|
||||||
{
|
{
|
||||||
// Selectable so the whole "→ link label" line is clickable and
|
Dalamud.Utility.Util.OpenLink(BrandingLinks.HellionForgeDiscordInvite);
|
||||||
// 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);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user