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