diff --git a/client/PluginUi.cs b/client/PluginUi.cs index 312e295..941fa52 100644 --- a/client/PluginUi.cs +++ b/client/PluginUi.cs @@ -20,12 +20,18 @@ public class PluginUi : IDisposable { this.ViewerButton = new ViewerButton(this.Plugin); this.Plugin.Interface.UiBuilder.Draw += this.Draw; + this.Plugin.Interface.UiBuilder.OpenConfigUi += this.OpenConfig; } public void Dispose() { + this.Plugin.Interface.UiBuilder.OpenConfigUi -= this.OpenConfig; this.Plugin.Interface.UiBuilder.Draw -= this.Draw; } + private void OpenConfig() { + this.MainWindow.Visible = true; + } + private void Draw() { this.MainWindow.Draw(); this.ViewerButton.Draw();