feat: add config button
This commit is contained in:
parent
b6e027113e
commit
600ad5af3d
|
@ -11,12 +11,18 @@ namespace NominaOcculta {
|
||||||
this.Plugin = plugin;
|
this.Plugin = plugin;
|
||||||
|
|
||||||
this.Plugin.Interface.UiBuilder.Draw += this.Draw;
|
this.Plugin.Interface.UiBuilder.Draw += this.Draw;
|
||||||
|
this.Plugin.Interface.UiBuilder.OpenConfigUi += this.OpenConfig;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void Dispose() {
|
public void Dispose() {
|
||||||
|
this.Plugin.Interface.UiBuilder.OpenConfigUi -= this.OpenConfig;
|
||||||
this.Plugin.Interface.UiBuilder.Draw -= this.Draw;
|
this.Plugin.Interface.UiBuilder.Draw -= this.Draw;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private void OpenConfig() {
|
||||||
|
this.Visible = true;
|
||||||
|
}
|
||||||
|
|
||||||
private void Draw() {
|
private void Draw() {
|
||||||
if (!this.Visible) {
|
if (!this.Visible) {
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in New Issue