mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-12 10:17:22 +01:00
Re-add toggle window commands to CorePlugin
This commit is contained in:
parent
eb34eb1023
commit
abde79dbc8
1 changed files with 6 additions and 3 deletions
|
|
@ -46,6 +46,8 @@ namespace Dalamud.CorePlugin
|
||||||
#else
|
#else
|
||||||
|
|
||||||
private readonly WindowSystem windowSystem = new("Dalamud.CorePlugin");
|
private readonly WindowSystem windowSystem = new("Dalamud.CorePlugin");
|
||||||
|
private readonly PluginWindow window;
|
||||||
|
|
||||||
private Localization localization;
|
private Localization localization;
|
||||||
|
|
||||||
private IPluginLog pluginLog;
|
private IPluginLog pluginLog;
|
||||||
|
|
@ -63,7 +65,8 @@ namespace Dalamud.CorePlugin
|
||||||
this.Interface = pluginInterface;
|
this.Interface = pluginInterface;
|
||||||
this.pluginLog = log;
|
this.pluginLog = log;
|
||||||
|
|
||||||
this.windowSystem.AddWindow(new PluginWindow());
|
this.window = new PluginWindow();
|
||||||
|
this.windowSystem.AddWindow(this.window);
|
||||||
|
|
||||||
this.Interface.UiBuilder.Draw += this.OnDraw;
|
this.Interface.UiBuilder.Draw += this.OnDraw;
|
||||||
this.Interface.UiBuilder.OpenConfigUi += this.OnOpenConfigUi;
|
this.Interface.UiBuilder.OpenConfigUi += this.OnOpenConfigUi;
|
||||||
|
|
@ -136,12 +139,12 @@ namespace Dalamud.CorePlugin
|
||||||
{
|
{
|
||||||
this.pluginLog.Information("Command called!");
|
this.pluginLog.Information("Command called!");
|
||||||
|
|
||||||
// this.window.IsOpen = true;
|
this.window.IsOpen ^= true;
|
||||||
}
|
}
|
||||||
|
|
||||||
private void OnOpenConfigUi()
|
private void OnOpenConfigUi()
|
||||||
{
|
{
|
||||||
// this.window.IsOpen = true;
|
this.window.IsOpen = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
private void OnOpenMainUi()
|
private void OnOpenMainUi()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue