2022-09-04 03:23:19 +00:00
|
|
|
using Dalamud.Game.Command;
|
|
|
|
|
|
|
|
namespace OrangeGuidanceTomestone;
|
|
|
|
|
|
|
|
internal class Commands : IDisposable {
|
|
|
|
private Plugin Plugin { get; }
|
|
|
|
|
|
|
|
internal Commands(Plugin plugin) {
|
|
|
|
this.Plugin = plugin;
|
|
|
|
|
|
|
|
this.Plugin.CommandManager.AddHandler("/ogt", new CommandInfo(this.OnCommand));
|
|
|
|
}
|
|
|
|
|
|
|
|
public void Dispose() {
|
|
|
|
this.Plugin.CommandManager.RemoveHandler("/ogt");
|
|
|
|
}
|
|
|
|
|
|
|
|
private void OnCommand(string command, string arguments) {
|
2022-09-04 05:03:59 +00:00
|
|
|
this.Plugin.Ui.MainWindow.Visible ^= true;
|
2022-09-04 03:23:19 +00:00
|
|
|
}
|
|
|
|
}
|