diff --git a/FFXIVPlugin/Resources/Localization/UIStrings.Designer.cs b/FFXIVPlugin/Resources/Localization/UIStrings.Designer.cs index 8a1d01b..6816b02 100644 --- a/FFXIVPlugin/Resources/Localization/UIStrings.Designer.cs +++ b/FFXIVPlugin/Resources/Localization/UIStrings.Designer.cs @@ -725,6 +725,24 @@ internal static string SetupNag_AlreadyInstalledHelp { } } + /// + /// Looks up a localized string similar to Ignore for now. + /// + internal static string SetupNag_BypassButton { + get { + return ResourceManager.GetString("SetupNag_BypassButton", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Don't care? Hold CTRL to bypass this dialog!. + /// + internal static string SetupNag_BypassHint { + get { + return ResourceManager.GetString("SetupNag_BypassHint", resourceCulture); + } + } + /// /// Looks up a localized string similar to Current port: {0}. /// @@ -799,6 +817,15 @@ internal static string SetupNag_JoinDiscord { } } + /// + /// Looks up a localized string similar to This message will return on every game launch!. + /// + internal static string SetupNag_MessageWillReturn { + get { + return ResourceManager.GetString("SetupNag_MessageWillReturn", resourceCulture); + } + } + /// /// Looks up a localized string similar to If you need to change the port the server is hosted on, you may do so from XIVDeck's settings.. /// diff --git a/FFXIVPlugin/Resources/Localization/UIStrings.resx b/FFXIVPlugin/Resources/Localization/UIStrings.resx index c137ad4..e9790ac 100644 --- a/FFXIVPlugin/Resources/Localization/UIStrings.resx +++ b/FFXIVPlugin/Resources/Localization/UIStrings.resx @@ -348,4 +348,13 @@ This will not re-enable the plugin. Multiboxing has been detected. XIVDeck might not work properly! + + This message will return on every game launch! + + + Ignore for now + + + Don't care? Hold CTRL to bypass this dialog! + \ No newline at end of file diff --git a/FFXIVPlugin/UI/Windows/Nags/SetupNag.cs b/FFXIVPlugin/UI/Windows/Nags/SetupNag.cs index 1db28f6..0e4e248 100644 --- a/FFXIVPlugin/UI/Windows/Nags/SetupNag.cs +++ b/FFXIVPlugin/UI/Windows/Nags/SetupNag.cs @@ -1,8 +1,10 @@ using Dalamud.Interface; using Dalamud.Interface.Colors; using Dalamud.Interface.Components; +using Dalamud.Interface.Utility; using ImGuiNET; using XIVDeck.FFXIVPlugin.Resources.Localization; +using XIVDeck.FFXIVPlugin.Resources.Localization; using XIVDeck.FFXIVPlugin.Utils; namespace XIVDeck.FFXIVPlugin.UI.Windows.Nags; @@ -68,11 +70,22 @@ protected override void _internalDraw() { ImGui.Spacing(); ImGui.TextColored(ImGuiColors.DalamudGrey, UIStrings.SetupNag_DismissHelp); + + ImGui.AlignTextToFramePadding(); ImGui.TextColored(ImGuiColors.DalamudGrey, UIStrings.ForcedUpdateNag_SupportInfo); ImGui.SameLine(); if (ImGuiComponents.IconButton(FontAwesomeIcon.Headset)) { Dalamud.Utility.Util.OpenLink(Constants.GoatPlaceDiscord); } if (ImGui.IsItemHovered()) ImGui.SetTooltip(UIStrings.SetupNag_JoinDiscord); + + if (ImGui.GetIO().KeyCtrl) { + if (ImGui.Button(UIStrings.SetupNag_BypassButton)) { + Hide(); + } + ImGuiComponents.HelpMarker(UIStrings.SetupNag_MessageWillReturn); + } else { + ImGui.TextColored(ImGuiColors.DalamudGrey2, UIStrings.SetupNag_BypassHint); + } } } \ No newline at end of file