mirror of
https://github.com/xivdev/Penumbra.git
synced 2025-12-12 10:17:22 +01:00
Added Enable and Disable Commands
This commit is contained in:
parent
78bef3dec0
commit
b901c9e744
2 changed files with 39 additions and 1 deletions
2
.idea/.idea.Penumbra/.idea/indexLayout.xml
generated
2
.idea/.idea.Penumbra/.idea/indexLayout.xml
generated
|
|
@ -1,6 +1,6 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<project version="4">
|
<project version="4">
|
||||||
<component name="ContentModelUserStore">
|
<component name="UserContentModel">
|
||||||
<attachedFolders />
|
<attachedFolders />
|
||||||
<explicitIncludes />
|
<explicitIncludes />
|
||||||
<explicitExcludes />
|
<explicitExcludes />
|
||||||
|
|
|
||||||
|
|
@ -180,6 +180,44 @@ namespace Penumbra
|
||||||
SettingsInterface.MakeDebugTabVisible();
|
SettingsInterface.MakeDebugTabVisible();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
case "enable":
|
||||||
|
{
|
||||||
|
if( Config.IsEnabled )
|
||||||
|
{
|
||||||
|
Dalamud.Chat.Print("Your mods are already enabled. To disable your mods, please run the following command instead: /penumbra disable");
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
Config.IsEnabled = true;
|
||||||
|
ObjectReloader.RedrawAll( RedrawType.WithSettings );
|
||||||
|
if( Config.EnablePlayerWatch )
|
||||||
|
{
|
||||||
|
Penumbra.PlayerWatcher.SetStatus( true );
|
||||||
|
}
|
||||||
|
Config.Save();
|
||||||
|
Dalamud.Chat.Print("Your mods have now been enabled.");
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
case "disable":
|
||||||
|
{
|
||||||
|
if( !Config.IsEnabled )
|
||||||
|
{
|
||||||
|
Dalamud.Chat.Print("Your mods are already disabled. To enable your mods, please run the following command instead: /penumbra enable");
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
Config.IsEnabled = false;
|
||||||
|
ObjectReloader.RedrawAll( RedrawType.WithoutSettings );
|
||||||
|
if( Config.EnablePlayerWatch )
|
||||||
|
{
|
||||||
|
Penumbra.PlayerWatcher.SetStatus( false );
|
||||||
|
}
|
||||||
|
Config.Save();
|
||||||
|
Dalamud.Chat.Print("Your mods have now been disabled.");
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return;
|
return;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue