mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-12 18:27:23 +01:00
Add "unset" and "toggle" commands for combos.
This commit is contained in:
parent
16a5788695
commit
1ab43645f7
1 changed files with 21 additions and 0 deletions
|
|
@ -362,6 +362,27 @@ namespace Dalamud {
|
|||
}
|
||||
}
|
||||
break;
|
||||
case "toggle": {
|
||||
foreach (var value in Enum.GetValues(typeof(CustomComboPreset)).Cast<CustomComboPreset>()) {
|
||||
if (value.ToString().ToLower() != argumentsParts[1].ToLower())
|
||||
continue;
|
||||
|
||||
this.Configuration.ComboPresets ^= value;
|
||||
Framework.Gui.Chat.Print(argumentsParts[1] + " TOGGLE");
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
||||
case "unset": {
|
||||
foreach (var value in Enum.GetValues(typeof(CustomComboPreset)).Cast<CustomComboPreset>()) {
|
||||
if (value.ToString().ToLower() != argumentsParts[1].ToLower())
|
||||
continue;
|
||||
|
||||
this.Configuration.ComboPresets &= ~value;
|
||||
Framework.Gui.Chat.Print(argumentsParts[1] + " UNSET");
|
||||
}
|
||||
}
|
||||
break;
|
||||
case "list": {
|
||||
foreach (var value in Enum.GetValues(typeof(CustomComboPreset)).Cast<CustomComboPreset>()) {
|
||||
if (this.Configuration.ComboPresets.HasFlag(value))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue