diff --git a/plugins/VoiceAttack-base/base.cs b/plugins/VoiceAttack-base/base.cs index 728da08..8a2c09f 100644 --- a/plugins/VoiceAttack-base/base.cs +++ b/plugins/VoiceAttack-base/base.cs @@ -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 prefix = "StreamAttack"; foreach (string option in new string[] { "outputDir" }) diff --git a/plugins/VoiceAttack-base/util.cs b/plugins/VoiceAttack-base/util.cs index 43b8f25..55be5ef 100644 --- a/plugins/VoiceAttack-base/util.cs +++ b/plugins/VoiceAttack-base/util.cs @@ -46,7 +46,14 @@ namespace alterNERDtive.util { "SpanshAttack", new OptDict{ - + { 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") }, } }, { diff --git a/profiles/SpanshAttack-Profile.vap b/profiles/SpanshAttack-Profile.vap index aee9dea..f9342ba 100755 Binary files a/profiles/SpanshAttack-Profile.vap and b/profiles/SpanshAttack-Profile.vap differ