mirror of
https://github.com/goatcorp/Dalamud.git
synced 2026-01-02 13:53:40 +01:00
Add toggle option for /xlplugins command
This commit is contained in:
parent
3c3fd538c6
commit
160dcc37ef
1 changed files with 22 additions and 4 deletions
|
|
@ -469,9 +469,20 @@ namespace Dalamud {
|
|||
this.isImguiDrawChangelogWindow = this.changelogWindow != null && this.changelogWindow.Draw();
|
||||
}
|
||||
}
|
||||
internal void OpenPluginInstaller() {
|
||||
this.pluginWindow = new PluginInstallerWindow(this, this.StartInfo.GameVersion);
|
||||
this.isImguiDrawPluginWindow = true;
|
||||
internal void OpenPluginInstaller(bool toggle = false) {
|
||||
if (!toggle)
|
||||
{
|
||||
this.pluginWindow = new PluginInstallerWindow(this, this.StartInfo.GameVersion);
|
||||
this.isImguiDrawPluginWindow = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
if (this.pluginWindow == null)
|
||||
{
|
||||
this.pluginWindow = new PluginInstallerWindow(this, this.StartInfo.GameVersion);
|
||||
}
|
||||
this.isImguiDrawPluginWindow ^= true;
|
||||
}
|
||||
}
|
||||
|
||||
internal void OpenChangelog() {
|
||||
|
|
@ -718,7 +729,14 @@ namespace Dalamud {
|
|||
}
|
||||
|
||||
private void OnOpenInstallerCommand(string command, string arguments) {
|
||||
OpenPluginInstaller();
|
||||
if (arguments == "toggle" || arguments == "t")
|
||||
{
|
||||
OpenPluginInstaller(toggle: true);
|
||||
}
|
||||
else
|
||||
{
|
||||
OpenPluginInstaller();
|
||||
}
|
||||
}
|
||||
|
||||
private void OnOpenCreditsCommand(string command, string arguments)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue