mirror of
https://github.com/goatcorp/Dalamud.git
synced 2026-02-19 06:17:43 +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();
|
this.isImguiDrawChangelogWindow = this.changelogWindow != null && this.changelogWindow.Draw();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
internal void OpenPluginInstaller() {
|
internal void OpenPluginInstaller(bool toggle = false) {
|
||||||
this.pluginWindow = new PluginInstallerWindow(this, this.StartInfo.GameVersion);
|
if (!toggle)
|
||||||
this.isImguiDrawPluginWindow = true;
|
{
|
||||||
|
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() {
|
internal void OpenChangelog() {
|
||||||
|
|
@ -718,7 +729,14 @@ namespace Dalamud {
|
||||||
}
|
}
|
||||||
|
|
||||||
private void OnOpenInstallerCommand(string command, string arguments) {
|
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)
|
private void OnOpenCreditsCommand(string command, string arguments)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue