aboutsummaryrefslogtreecommitdiffstats
path: root/Malmstone/Windows/ConfigWindow.cs
diff options
context:
space:
mode:
authorPinapelz <yukais@pinapelz.com>2024-09-08 18:36:11 -0700
committerPinapelz <yukais@pinapelz.com>2024-09-08 18:36:11 -0700
commit4b5dd85a1fdcb1039c78261cab72047eb5a3933d (patch)
tree94f8f4d1dabeceddd0558c3a5990eb401bd1b970 /Malmstone/Windows/ConfigWindow.cs
parent728d9ff38a19f0a8b72bcb004d56edabec138af8 (diff)
parentc434ed7e5b557ff82882d7ac74068169eb83de7c (diff)
Merge branch 'fl-bonus'
Diffstat (limited to 'Malmstone/Windows/ConfigWindow.cs')
-rw-r--r--Malmstone/Windows/ConfigWindow.cs30
1 files changed, 28 insertions, 2 deletions
diff --git a/Malmstone/Windows/ConfigWindow.cs b/Malmstone/Windows/ConfigWindow.cs
index 93af7b5..0dc4e11 100644
--- a/Malmstone/Windows/ConfigWindow.cs
+++ b/Malmstone/Windows/ConfigWindow.cs
@@ -151,9 +151,9 @@ public class ConfigWindow : Window, IDisposable
if (ImGui.Checkbox("##ShowFLMatchesRemainingPostGame", ref showFLMatchesRemainingPostGame))
{
Configuration.ShowProgressionChatPostFL = showFLMatchesRemainingPostGame;
- if (showFLMatchesRemainingPostGame)
+ if (showFLMatchesRemainingPostGame && !Plugin.PvPAddon.FrontlineRecordPostSetupEnabled)
Plugin.PvPAddon.EnableFrontlinePostMatch();
- else
+ else if (!showFLMatchesRemainingPostGame && !Configuration.TrackFrontlineBonus)
Plugin.PvPAddon.DisableFrontlinePostMatch();
Configuration.Save();
}
@@ -166,6 +166,32 @@ public class ConfigWindow : Window, IDisposable
ImGui.SameLine();
ImGui.Text("Frontlines");
+ ImGui.SameLine();
+ ImGui.Spacing();
+ ImGui.SameLine();
+
+ var trackFrontlineBonus = Configuration.TrackFrontlineBonus;
+ if (ImGui.Checkbox("##TrackFrontlineBonus", ref trackFrontlineBonus))
+ {
+ Configuration.TrackFrontlineBonus = trackFrontlineBonus;
+ if (trackFrontlineBonus && !Plugin.PvPAddon.FrontlineRecordPostSetupEnabled)
+ Plugin.PvPAddon.EnableFrontlinePostMatch();
+ else if(!trackFrontlineBonus && !Configuration.ShowProgressionChatPostFL)
+ Plugin.PvPAddon.DisableFrontlinePostMatch();
+ Configuration.Save();
+ }
+ if (ImGui.IsItemHovered())
+ {
+ ImGui.BeginTooltip();
+ ImGui.Text("(EXPERIMENTAL) Track the reward bonus you get for consecutive losses in Frontline" +
+ "\n3rd place = +10 percent bonus (max 50 percent)" +
+ "\n2nd place = Current bonus is kept" +
+ "\n1st Place = Bonus reset to 0\n");
+ ImGui.EndTooltip();
+ }
+ ImGui.SameLine();
+ ImGui.Text("Track Frontline Reward Bonus");
+
var showRWMatchesRemainingPostGame = Configuration.ShowProgressionChatPostRW;
if (ImGui.Checkbox("##ShowRWMatchesRemainingPostGame", ref showRWMatchesRemainingPostGame))
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage