Skip to content

Commit

Permalink
Add DisableTeleport option
Browse files Browse the repository at this point in the history
closes #25
  • Loading branch information
MidoriKami committed Jul 14, 2024
1 parent 1d7f946 commit f5894da
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ZodiacBuddy/ConfigWindow.cs
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,10 @@ private void DrawGeneral() {
}

ImGui.Spacing();

if (ImGui.Checkbox("Disable Teleport", ref Service.Configuration.DisableTeleport)) {
Service.Configuration.Save();
}
}

private void DrawInterface() {
Expand Down
2 changes: 2 additions & 0 deletions ZodiacBuddy/PluginConfiguration.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,7 @@ public class PluginConfiguration : IPluginConfiguration {

public InformationWindowConfiguration InformationWindow { get; } = new();

public bool DisableTeleport = false;

public void Save() => Service.Interface.SavePluginConfig(this);
}

0 comments on commit f5894da

Please sign in to comment.