aboutsummaryrefslogtreecommitdiffstats
path: root/Malmstone/Windows/ConfigWindow.cs
diff options
context:
space:
mode:
authorPinapelz <yukais@pinapelz.com>2024-09-02 20:34:32 -0700
committerPinapelz <yukais@pinapelz.com>2024-09-02 20:34:32 -0700
commitfcecdca25688aca015d352602b7daf2610522d97 (patch)
tree952e700ba4b76496140362dbc5bfd077ab12eeac /Malmstone/Windows/ConfigWindow.cs
parent5e12dcba54bb04586069eb38d3300ec3c395be1e (diff)
add configuration options for showing different toast types
Diffstat (limited to 'Malmstone/Windows/ConfigWindow.cs')
-rw-r--r--Malmstone/Windows/ConfigWindow.cs24
1 files changed, 23 insertions, 1 deletions
diff --git a/Malmstone/Windows/ConfigWindow.cs b/Malmstone/Windows/ConfigWindow.cs
index 494c7cc..37b9490 100644
--- a/Malmstone/Windows/ConfigWindow.cs
+++ b/Malmstone/Windows/ConfigWindow.cs
@@ -9,6 +9,7 @@ public class ConfigWindow : Window, IDisposable
{
private Configuration Configuration;
private Plugin Plugin;
+ private string[] ToastOptions = {"Normal", "Quest", "Error"};
public ConfigWindow(Plugin Plugin) : base("Malmstone Config")
{
@@ -40,6 +41,7 @@ public class ConfigWindow : Window, IDisposable
ImGui.Separator();
ImGui.Text("Show XP to next level after PVP matches");
+ ImGui.SameLine();
var showProgressionToastPostMatch = Configuration.ShowProgressionToastPostMatch;
if (ImGui.Checkbox("##ShowProgressionToastPostMatch", ref showProgressionToastPostMatch))
{
@@ -47,8 +49,28 @@ public class ConfigWindow : Window, IDisposable
Configuration.Save();
}
+ ImGui.Text("Notification Type");
+ int selectedPostMatchToastType = Configuration.PostmatchProgressionToastType;
+ if (ImGui.Combo("##MatchOptions", ref selectedPostMatchToastType, ToastOptions, ToastOptions.Length))
+ {
+ switch (selectedPostMatchToastType)
+ {
+ case 0:
+ Plugin.ToastGui.ShowNormal("[Malmstone Calculator] Normal Toast Selected");
+ break;
+ case 1:
+ Plugin.ToastGui.ShowQuest("[Malmstone Calculator] Quest Toast Selected");
+ break;
+ case 2:
+ Plugin.ToastGui.ShowError("[Malmstone Calculator] Error Toast Selected");
+ break;
+ }
+ Configuration.PostmatchProgressionToastType = selectedPostMatchToastType;
+ Configuration.Save();
+ }
+
ImGui.Separator();
- ImGui.Text("Show matches to next rank in chat postmatch");
+ ImGui.Text("Show matches until next rank in chat after");
var showCCMatchesRemainingPostGame = Configuration.ShowProgressionChatPostCC;
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage