forked from liza/Deliveroo
Add command line arguments to enable/disable the turn in
This commit is contained in:
parent
ca8f30404a
commit
9889e89fc7
@ -309,5 +309,22 @@ public sealed partial class DeliverooPlugin : IDalamudPlugin
|
|||||||
_externalPluginHandler.Restore();
|
_externalPluginHandler.Restore();
|
||||||
}
|
}
|
||||||
|
|
||||||
private void ProcessCommand(string command, string arguments) => _configWindow.Toggle();
|
private void ProcessCommand(string command, string arguments)
|
||||||
|
{
|
||||||
|
switch (arguments)
|
||||||
|
{
|
||||||
|
case "e" or "enable":
|
||||||
|
if (_turnInWindow.IsOpen)
|
||||||
|
_turnInWindow.State = true;
|
||||||
|
break;
|
||||||
|
|
||||||
|
case "d" or "disable":
|
||||||
|
_turnInWindow.State = false;
|
||||||
|
break;
|
||||||
|
|
||||||
|
default:
|
||||||
|
_configWindow.Toggle();
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user