feat: add config button

This commit is contained in:
Anna 2021-09-24 14:35:40 -04:00
parent b6e027113e
commit 600ad5af3d
1 changed files with 6 additions and 0 deletions

View File

@ -11,12 +11,18 @@ namespace NominaOcculta {
this.Plugin = 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.Visible = true;
}
private void Draw() {
if (!this.Visible) {
return;