From 14a3bd895f297bbf503cf3734b65b4957b0b4ebe Mon Sep 17 00:00:00 2001 From: Pinapelz Date: Tue, 3 Sep 2024 21:31:11 -0700 Subject: add option to automatically open malmstone calculator when viewing series malmstone --- Malmstone/Windows/ConfigWindow.cs | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) (limited to 'Malmstone/Windows/ConfigWindow.cs') diff --git a/Malmstone/Windows/ConfigWindow.cs b/Malmstone/Windows/ConfigWindow.cs index e6376b3..7d9e44e 100644 --- a/Malmstone/Windows/ConfigWindow.cs +++ b/Malmstone/Windows/ConfigWindow.cs @@ -16,7 +16,7 @@ public class ConfigWindow : Window, IDisposable Flags = ImGuiWindowFlags.NoCollapse | ImGuiWindowFlags.NoScrollbar | ImGuiWindowFlags.NoScrollWithMouse; SizeConstraints = new WindowSizeConstraints { - MinimumSize = new Vector2(350, 300), + MinimumSize = new Vector2(370, 330), MaximumSize = new Vector2(float.MaxValue, float.MaxValue) }; Configuration = Plugin.Configuration; @@ -124,6 +124,19 @@ public class ConfigWindow : Window, IDisposable ImGui.Separator(); ImGui.Spacing(); + + ImGui.Text("Show calculations when viewing Series Malmstones"); + ImGui.SameLine(); + var showMainWindowOnPVPReward = Configuration.ShowMainWindowOnPVPReward; + if(ImGui.Checkbox("##ShowMainWindowOnPVPReward", ref showMainWindowOnPVPReward)){ + if(showMainWindowOnPVPReward) + Plugin.EnablePVPRewardWindowAddon(); + else + Plugin.DisablePVPRewardWindowAddon(); + Configuration.ShowMainWindowOnPVPReward = showMainWindowOnPVPReward; + Configuration.Save(); + } + ImGui.Text("Changes saved automatically"); } -- cgit v1.2.3