feat: add config button

This commit is contained in:
Anna 2021-01-16 20:33:32 -05:00
parent 39e7a3ab8b
commit 6d8449be31
1 changed files with 6 additions and 0 deletions

View File

@ -46,10 +46,16 @@ namespace BetterPartyFinder {
this.Plugin = plugin;
this.Plugin.Interface.UiBuilder.OnBuildUi += this.Draw;
this.Plugin.Interface.UiBuilder.OnOpenConfigUi += this.OnOpenConfig;
}
public void Dispose() {
this.Plugin.Interface.UiBuilder.OnBuildUi -= this.Draw;
this.Plugin.Interface.UiBuilder.OnOpenConfigUi -= this.OnOpenConfig;
}
private void OnOpenConfig(object sender, EventArgs e) {
this.Visible = !this.Visible;
}
private static bool IconButton(FontAwesomeIcon icon, string? id = null) {