From f5894da86090691d7215a8e97126c7e5fd5fbe96 Mon Sep 17 00:00:00 2001 From: MidoriKami Date: Sat, 13 Jul 2024 20:16:50 -0700 Subject: [PATCH] Add DisableTeleport option closes #25 --- ZodiacBuddy/ConfigWindow.cs | 4 ++++ ZodiacBuddy/PluginConfiguration.cs | 2 ++ 2 files changed, 6 insertions(+) diff --git a/ZodiacBuddy/ConfigWindow.cs b/ZodiacBuddy/ConfigWindow.cs index ff35715..c544199 100644 --- a/ZodiacBuddy/ConfigWindow.cs +++ b/ZodiacBuddy/ConfigWindow.cs @@ -64,6 +64,10 @@ private void DrawGeneral() { } ImGui.Spacing(); + + if (ImGui.Checkbox("Disable Teleport", ref Service.Configuration.DisableTeleport)) { + Service.Configuration.Save(); + } } private void DrawInterface() { diff --git a/ZodiacBuddy/PluginConfiguration.cs b/ZodiacBuddy/PluginConfiguration.cs index fd6acf4..ee28787 100644 --- a/ZodiacBuddy/PluginConfiguration.cs +++ b/ZodiacBuddy/PluginConfiguration.cs @@ -23,5 +23,7 @@ public class PluginConfiguration : IPluginConfiguration { public InformationWindowConfiguration InformationWindow { get; } = new(); + public bool DisableTeleport = false; + public void Save() => Service.Interface.SavePluginConfig(this); } \ No newline at end of file