From 32e165bd28ef1d8ddafeaf8f64474660f9486130 Mon Sep 17 00:00:00 2001 From: Zynh0722 Date: Wed, 7 Feb 2024 23:45:09 -0800 Subject: [PATCH] togglin a window bb --- CommandReference/Plugin.cs | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/CommandReference/Plugin.cs b/CommandReference/Plugin.cs index 1c61365..039b14d 100644 --- a/CommandReference/Plugin.cs +++ b/CommandReference/Plugin.cs @@ -55,10 +55,7 @@ namespace CommandReference _ = commandManager.AddHandler( CommandName, - new CommandInfo(OnCommand) - { - HelpMessage = "A useful message to display in /xlhelp" - } + new CommandInfo(OnCommand) { HelpMessage = "Displays all commands" } ); pluginInterface.UiBuilder.Draw += DrawUI; @@ -78,7 +75,7 @@ namespace CommandReference private void OnCommand(string command, string args) { // in response to the slash command, just display our main ui - MainWindow.IsOpen = true; + MainWindow.IsOpen = !MainWindow.IsOpen; } private void DrawUI()