From e6c5dbb82e1fa286d5b9db7c3bfcb776f56a09b8 Mon Sep 17 00:00:00 2001 From: Pinapelz Date: Fri, 6 Sep 2024 12:27:44 -0700 Subject: add tooltips for config options --- Malmstone/Malmstone.csproj | 2 +- Malmstone/Malmstone.json | 2 +- Malmstone/Windows/ConfigWindow.cs | 31 +++++++++++++++++++++++++++++++ Malmstone/Windows/MainWindow.cs | 2 +- 4 files changed, 34 insertions(+), 3 deletions(-) diff --git a/Malmstone/Malmstone.csproj b/Malmstone/Malmstone.csproj index 8aa6086..c80d795 100644 --- a/Malmstone/Malmstone.csproj +++ b/Malmstone/Malmstone.csproj @@ -3,7 +3,7 @@ - 1.0.5.0 + 1.0.5.5 A PVP Series Malmstones Level Calculator https://github.com/goatcorp/Malmstone AGPL-3.0-or-later diff --git a/Malmstone/Malmstone.json b/Malmstone/Malmstone.json index 09a881e..1bd6504 100644 --- a/Malmstone/Malmstone.json +++ b/Malmstone/Malmstone.json @@ -2,7 +2,7 @@ "Author": "pinapelz", "Name": "Malmstone Calculator", "Punchline": "Keep tabs on how much more PVP you have to play before unlocking your next Series Malmstone reward!", - "Description": "Calculate the number of wins/losses required in different modes of PVP before reaching your target Series Level.\nUse /pmalm to get started", + "Description": "Calculate the number of wins/losses needed in different modes of PVP before achieving your target Series Level.\nUse /pmalm to get started", "ApplicableVersion": "any", "Tags": [ "pvp", diff --git a/Malmstone/Windows/ConfigWindow.cs b/Malmstone/Windows/ConfigWindow.cs index 7d9e44e..05e75a1 100644 --- a/Malmstone/Windows/ConfigWindow.cs +++ b/Malmstone/Windows/ConfigWindow.cs @@ -56,6 +56,13 @@ public class ConfigWindow : Window, IDisposable Configuration.Save(); } + if (ImGui.IsItemHovered()) + { + ImGui.BeginTooltip(); + ImGui.Text("Shows a notification with current series level EXP progression after ALL PVP matches"); + ImGui.EndTooltip(); + } + ImGui.Text("Notification Type"); int selectedPostMatchToastType = Configuration.PostmatchProgressionToastType; if (ImGui.Combo("##MatchOptions", ref selectedPostMatchToastType, ToastOptions, ToastOptions.Length)) @@ -90,6 +97,12 @@ public class ConfigWindow : Window, IDisposable Plugin.PvPAddon.DisableCrystallineConflictPostMatch(); Configuration.Save(); } + if (ImGui.IsItemHovered()) + { + ImGui.BeginTooltip(); + ImGui.Text("Show Wins/Losses needed until next Series Level in chat after Crystalline Conflict matches"); + ImGui.EndTooltip(); + } ImGui.SameLine(); ImGui.Text("Crystalline Conflict"); @@ -104,6 +117,12 @@ public class ConfigWindow : Window, IDisposable Plugin.PvPAddon.DisableFrontlinePostMatch(); Configuration.Save(); } + if (ImGui.IsItemHovered()) + { + ImGui.BeginTooltip(); + ImGui.Text("Show placements needed until next Series Level in chat after Frontline matches\nRoulettes shown in parentheses"); + ImGui.EndTooltip(); + } ImGui.SameLine(); ImGui.Text("Frontlines"); @@ -118,6 +137,12 @@ public class ConfigWindow : Window, IDisposable Plugin.PvPAddon.DisableRivalWingsPostMatch(); Configuration.Save(); } + if (ImGui.IsItemHovered()) + { + ImGui.BeginTooltip(); + ImGui.Text("Show Wins/Losses needed until next Series Level in chat after Rival Wings matches"); + ImGui.EndTooltip(); + } ImGui.SameLine(); ImGui.Text("Rival Wings"); @@ -136,6 +161,12 @@ public class ConfigWindow : Window, IDisposable Configuration.ShowMainWindowOnPVPReward = showMainWindowOnPVPReward; Configuration.Save(); } + if (ImGui.IsItemHovered()) + { + ImGui.BeginTooltip(); + ImGui.Text("Automatically open the calculator window when viewing Series Malmstone rewards"); + ImGui.EndTooltip(); + } ImGui.Text("Changes saved automatically"); diff --git a/Malmstone/Windows/MainWindow.cs b/Malmstone/Windows/MainWindow.cs index 4d4ca4c..0e91c4d 100644 --- a/Malmstone/Windows/MainWindow.cs +++ b/Malmstone/Windows/MainWindow.cs @@ -44,7 +44,7 @@ namespace Malmstone.Windows if (pvpInfo != null) { ImGui.Text($"Current Series Level: {pvpInfo.CurrentSeriesRank}"); - ImGui.Text($"Current Level Experience Progress: {pvpInfo.SeriesExperience} XP"); + ImGui.Text($"Current Level Experience Progress: {pvpInfo.SeriesExperience} EXP"); ImGui.Spacing(); ImGui.Text("Target Series Level:"); -- cgit v1.2.3