config button

This commit is contained in:
Anna 2022-09-13 15:56:06 -04:00
parent 65fbcf56ca
commit 5185c7c379
1 changed files with 6 additions and 0 deletions

View File

@ -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();