togglin a window bb
parent
e07d69fcce
commit
32e165bd28
|
@ -55,10 +55,7 @@ namespace CommandReference
|
||||||
|
|
||||||
_ = commandManager.AddHandler(
|
_ = commandManager.AddHandler(
|
||||||
CommandName,
|
CommandName,
|
||||||
new CommandInfo(OnCommand)
|
new CommandInfo(OnCommand) { HelpMessage = "Displays all commands" }
|
||||||
{
|
|
||||||
HelpMessage = "A useful message to display in /xlhelp"
|
|
||||||
}
|
|
||||||
);
|
);
|
||||||
|
|
||||||
pluginInterface.UiBuilder.Draw += DrawUI;
|
pluginInterface.UiBuilder.Draw += DrawUI;
|
||||||
|
@ -78,7 +75,7 @@ namespace CommandReference
|
||||||
private void OnCommand(string command, string args)
|
private void OnCommand(string command, string args)
|
||||||
{
|
{
|
||||||
// in response to the slash command, just display our main ui
|
// in response to the slash command, just display our main ui
|
||||||
MainWindow.IsOpen = true;
|
MainWindow.IsOpen = !MainWindow.IsOpen;
|
||||||
}
|
}
|
||||||
|
|
||||||
private void DrawUI()
|
private void DrawUI()
|
||||||
|
|
Loading…
Reference in New Issue