2021-06-03 01:09:49 +00:00
|
|
|
|
using System;
|
|
|
|
|
using Dalamud.Game.Command;
|
|
|
|
|
|
|
|
|
|
namespace TheGreatSeparator {
|
|
|
|
|
public class Commands : IDisposable {
|
|
|
|
|
private TheGreatSeparator Plugin { get; }
|
|
|
|
|
|
|
|
|
|
internal Commands(TheGreatSeparator plugin) {
|
|
|
|
|
this.Plugin = plugin;
|
|
|
|
|
|
2021-08-28 20:20:06 +00:00
|
|
|
|
this.Plugin.CommandManager.AddHandler("/tgs", new CommandInfo(this.OnCommand) {
|
2021-06-03 01:09:49 +00:00
|
|
|
|
HelpMessage = "Open The Great Separator",
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void Dispose() {
|
2021-08-28 20:20:06 +00:00
|
|
|
|
this.Plugin.CommandManager.RemoveHandler("/tgs");
|
2021-06-03 01:09:49 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private void OnCommand(string command, string args) {
|
|
|
|
|
this.Plugin.Ui.Toggle();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|