OrangeGuidanceTomestone/client/Commands.cs

22 lines
521 B
C#
Raw Normal View History

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) {
this.Plugin.Ui.WriterVisible ^= true;
}
}