Explorar o código

Add 'local' arg to command to toggle local hunt window

Lilith Song %!s(int64=3) %!d(string=hai) anos
pai
achega
81b69ec5bc
Modificáronse 1 ficheiros con 6 adicións e 1 borrados
  1. 6 1
      HuntBuddy/Plugin.cs

+ 6 - 1
HuntBuddy/Plugin.cs

@@ -144,7 +144,7 @@ namespace HuntBuddy
 		}
 
 		[Command("/phb")]
-		[HelpMessage("Toggles UI\nArguments:\nreload - Reloads data")]
+		[HelpMessage("Toggles UI\nArguments:\nreload - Reloads data\nlocal - Toggles the local hunt marks window")]
 		public void PluginCommand(string command, string args)
 		{
 			if (args == "reload")
@@ -152,6 +152,11 @@ namespace HuntBuddy
 				this.MobHuntEntriesReady = false;
 				Task.Run(this.ReloadData);
 			}
+			else if (args == "local")
+			{
+				this.Configuration.ShowLocalHunts = !this.Configuration.ShowLocalHunts;
+				this.Configuration.Save();
+			}
 			else
 			{
 				this.OpenConfigUi();