config button
This commit is contained in:
parent
53fcde6a13
commit
91e8d1d722
|
@ -20,12 +20,18 @@ public class PluginUi : IDisposable {
|
||||||
this.ViewerButton = new ViewerButton(this.Plugin);
|
this.ViewerButton = new ViewerButton(this.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.MainWindow.Visible = true;
|
||||||
|
}
|
||||||
|
|
||||||
private void Draw() {
|
private void Draw() {
|
||||||
this.MainWindow.Draw();
|
this.MainWindow.Draw();
|
||||||
this.ViewerButton.Draw();
|
this.ViewerButton.Draw();
|
||||||
|
|
Loading…
Reference in New Issue