togglin a window bb
This commit is contained in:
parent
e07d69fcce
commit
32e165bd28
1 changed files with 2 additions and 5 deletions
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue