1
0
annas-questmap/QuestMap/Commands.cs

25 lines
628 B
C#
Raw Normal View History

2021-07-21 06:11:01 +00:00
using System;
using Dalamud.Game.Command;
namespace QuestMap {
internal class Commands : IDisposable {
private Plugin Plugin { get; }
internal Commands(Plugin plugin) {
this.Plugin = plugin;
2021-08-23 17:20:39 +00:00
this.Plugin.CommandManager.AddHandler("/quests", new CommandInfo(this.OnCommand) {
2021-07-21 06:11:01 +00:00
HelpMessage = "Show Quest Map",
});
}
public void Dispose() {
2021-08-23 17:20:39 +00:00
this.Plugin.CommandManager.RemoveHandler("/quests");
2021-07-21 06:11:01 +00:00
}
private void OnCommand(string command, string args) {
this.Plugin.Ui.Show ^= true;
}
}
}