feat: add config button
This commit is contained in:
parent
39e7a3ab8b
commit
6d8449be31
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue