feat: add config button
This commit is contained in:
parent
b6e027113e
commit
600ad5af3d
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue