first commit
Some checks failed
Build and Release / Build (push) Failing after 41s

This commit is contained in:
2026-01-01 13:06:22 +02:00
commit a5d3b2092d
18 changed files with 1616 additions and 0 deletions

View File

@@ -0,0 +1,24 @@
using Dalamud.Game.Command;
using System;
namespace Glamaholic {
internal class Commands : IDisposable {
private Plugin Plugin { get; }
internal Commands(Plugin plugin) {
this.Plugin = plugin;
Service.CommandManager.AddHandler("/gbrowser", new CommandInfo(this.OnCommand) {
HelpMessage = $"Toggle visibility of the {Plugin.Name} window",
});
}
public void Dispose() {
Service.CommandManager.RemoveHandler("/gbrowser");
}
private void OnCommand(string command, string arguments) {
this.Plugin.Ui.ToggleMainInterface();
}
}
}