mirror of
https://github.com/Ottermandias/Glamourer.git
synced 2025-12-12 18:27:24 +01:00
Add chat command to toggle automation.
This commit is contained in:
parent
26862ba78f
commit
dc431c10a5
1 changed files with 6 additions and 0 deletions
|
|
@ -96,6 +96,12 @@ public class CommandService : IDisposable, IApiService
|
|||
_config.Ephemeral.LockMainWindow = !_config.Ephemeral.LockMainWindow;
|
||||
_config.Ephemeral.Save();
|
||||
return;
|
||||
case "automation":
|
||||
var newValue = !_config.EnableAutoDesigns;
|
||||
_config.EnableAutoDesigns = newValue;
|
||||
_autoDesignApplier.OnEnableAutoDesignsChanged(newValue);
|
||||
_config.Save();
|
||||
return;
|
||||
default:
|
||||
_chat.Print("Use without argument to toggle the main window.");
|
||||
_chat.Print(new SeStringBuilder().AddText("Use ").AddPurple("/glamour").AddText(" instead of ").AddRed("/glamourer")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue