SpanshAttack: migrated to new config
This commit is contained in:
parent
f6a4861a06
commit
e179fef0d1
3 changed files with 35 additions and 1 deletions
|
@ -103,6 +103,33 @@ namespace alterNERDtive
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// SpanshAttack
|
||||||
|
prefix = "SpanshAttack";
|
||||||
|
foreach (string option in new string[] { "announceWaypoints", "autoJumpAfterScooping", "autoPlot", "clearOnShutdown", "copyWaypointToClipboard", "defaultToLadenRange", "timeTrip" })
|
||||||
|
{
|
||||||
|
string name = $"{prefix}.{option}";
|
||||||
|
Commands.Run("alterNERDtive-base.loadVariableFromProfile", wait: true, parameters: new dynamic[] { new string[] { $"{name}", "boolean" } });
|
||||||
|
bool? value = VA!.GetBoolean(name);
|
||||||
|
if (value != null)
|
||||||
|
{
|
||||||
|
Log.Info($"Migrating option {name} …");
|
||||||
|
Commands.Run("alterNERDtive-base.saveVariableToProfile", wait: true, parameters: new dynamic[] { new string[] { $"{name}#" }, new bool[] { (bool)value } });
|
||||||
|
Commands.Run("alterNERDtive-base.unsetVariableFromProfile", wait: true, parameters: new dynamic[] { new string[] { $"{name}", "boolean" } });
|
||||||
|
}
|
||||||
|
}
|
||||||
|
foreach (string option in new string[] { "announceJumpsLeft" })
|
||||||
|
{
|
||||||
|
string name = $"{prefix}.{option}";
|
||||||
|
Commands.Run("alterNERDtive-base.loadVariableFromProfile", wait: true, parameters: new dynamic[] { new string[] { $"{name}", "text" } });
|
||||||
|
string value = VA!.GetText(name);
|
||||||
|
if (!string.IsNullOrEmpty(value))
|
||||||
|
{
|
||||||
|
Log.Info($"Migrating option {name} …");
|
||||||
|
Commands.Run("alterNERDtive-base.saveVariableToProfile", wait: true, parameters: new dynamic[] { new string[] { $"{name}#", value } });
|
||||||
|
Commands.Run("alterNERDtive-base.unsetVariableFromProfile", wait: true, parameters: new dynamic[] { new string[] { $"{name}", "text" } });
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// StreamAttack
|
// StreamAttack
|
||||||
prefix = "StreamAttack";
|
prefix = "StreamAttack";
|
||||||
foreach (string option in new string[] { "outputDir" })
|
foreach (string option in new string[] { "outputDir" })
|
||||||
|
|
|
@ -46,7 +46,14 @@ namespace alterNERDtive.util
|
||||||
{
|
{
|
||||||
"SpanshAttack",
|
"SpanshAttack",
|
||||||
new OptDict<string, Option>{
|
new OptDict<string, Option>{
|
||||||
|
{ new Option("announceJumpsLeft", ";1;3;5;10;15;20;30;50;75;100;", voiceTrigger: "announce jumps left") },
|
||||||
|
{ new Option("announceWaypoints", true, voiceTrigger: "announce waypoints") },
|
||||||
|
{ new Option("autoJumpAfterScooping", true, voiceTrigger: "auto jump after scooping") },
|
||||||
|
{ new Option("autoPlot", true, voiceTrigger: "auto plot") },
|
||||||
|
{ new Option("clearOnShutdown", true, voiceTrigger: "clear on shutdown") },
|
||||||
|
{ new Option("copyWaypointToClipboard", false, voiceTrigger: "copy waypoint to clipboard") },
|
||||||
|
{ new Option("defaultToLadenRange", false, voiceTrigger: "default to laden range") },
|
||||||
|
{ new Option("timeTrip", false, voiceTrigger: "time trip") },
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
Binary file not shown.
Loading…
Reference in a new issue