/// <summary> /// Initializes a new instance of the <see cref="SomethingNeedDoingPlugin"/> class. /// </summary> /// <param name="pluginInterface">Dalamud plugin interface.</param> public SomethingNeedDoingPlugin(DalamudPluginInterface pluginInterface) { pluginInterface.Create <Service>(); ClickLib.Click.Initialize(); Service.Plugin = this; Service.Configuration = SomethingNeedDoingConfiguration.Load(pluginInterface.ConfigDirectory); Service.ChatManager = new ChatManager(); Service.GameEventManager = new GameEventManager(); Service.MacroManager = new MacroManager(); this.macroWindow = new(); this.helpWindow = new(); this.windowSystem = new("SomethingNeedDoing"); this.windowSystem.AddWindow(this.macroWindow); this.windowSystem.AddWindow(this.helpWindow); Service.Interface.UiBuilder.Draw += this.windowSystem.Draw; Service.Interface.UiBuilder.OpenConfigUi += this.OnOpenConfigUi; Service.CommandManager.AddHandler(Command, new CommandInfo(this.OnChatCommand) { HelpMessage = "Open a window to edit various settings.", ShowInHelp = true, }); }
public PlayMacroCommand(MacroWindow window) { this.window = window; }