mirror of
https://github.com/Ottermandias/Glamourer.git
synced 2025-12-12 18:27:24 +01:00
.
This commit is contained in:
parent
7710cfadfa
commit
2d6fd6015d
88 changed files with 2304 additions and 383 deletions
|
|
@ -1,6 +1,7 @@
|
|||
using System;
|
||||
using Dalamud.Game.Command;
|
||||
using Glamourer.Gui;
|
||||
using Glamourer.Gui.Tabs;
|
||||
|
||||
namespace Glamourer.Services;
|
||||
|
||||
|
|
@ -11,12 +12,12 @@ public class CommandService : IDisposable
|
|||
private const string ApplyCommandString = "/glamour";
|
||||
|
||||
private readonly CommandManager _commands;
|
||||
private readonly Interface _interface;
|
||||
private readonly MainWindow _mainWindow;
|
||||
|
||||
public CommandService(CommandManager commands, Interface ui)
|
||||
public CommandService(CommandManager commands, MainWindow mainWindow)
|
||||
{
|
||||
_commands = commands;
|
||||
_interface = ui;
|
||||
_commands = commands;
|
||||
_mainWindow = mainWindow;
|
||||
|
||||
_commands.AddHandler(MainCommandString, new CommandInfo(OnGlamourer) { HelpMessage = "Open or close the Glamourer window." });
|
||||
_commands.AddHandler(ApplyCommandString, new CommandInfo(OnGlamour) { HelpMessage = $"Use Glamourer Functions: {HelpString}" });
|
||||
|
|
@ -29,7 +30,7 @@ public class CommandService : IDisposable
|
|||
}
|
||||
|
||||
private void OnGlamourer(string command, string arguments)
|
||||
=> _interface.Toggle();
|
||||
=> _mainWindow.Toggle();
|
||||
|
||||
private void OnGlamour(string command, string arguments)
|
||||
{ }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue