EliteAttack: migrated to new config
Also changed names `EliteDangerous` -> `EliteAttack`
This commit is contained in:
parent
4bb10e28f5
commit
d15fae9197
4 changed files with 29 additions and 3 deletions
|
@ -76,8 +76,25 @@ namespace alterNERDtive
|
|||
// === 4.0 ===
|
||||
// ===========
|
||||
|
||||
// EliteAttack
|
||||
string prefix = "EliteAttack";
|
||||
string oldPrefix = "EliteDangerous";
|
||||
foreach (string option in new string[] { "announceEdsmSystemStatus", "announceMappingCandidates", "announceOutdatedStationData", "announceR2RMappingCandidates", "autoRestock", "flightAssistOff", "hyperspaceDethrottle" })
|
||||
{
|
||||
string name = $"{prefix}.{option}";
|
||||
string oldName = $"{oldPrefix}.{option}";
|
||||
Commands.Run("alterNERDtive-base.loadVariableFromProfile", wait: true, parameters: new dynamic[] { new string[] { $"{oldName}", "boolean" } });
|
||||
bool? value = VA!.GetBoolean(oldName);
|
||||
if (value != null)
|
||||
{
|
||||
Log.Info($"Migrating option {oldName} …");
|
||||
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[] { $"{oldName}", "boolean" } });
|
||||
}
|
||||
}
|
||||
|
||||
// RatAttack
|
||||
string prefix = "RatAttack";
|
||||
prefix = "RatAttack";
|
||||
foreach (string option in new string[] { "autoCloseCase", "announceNearestCMDR", "announcePlatform", "confirmCalls", "onDuty" })
|
||||
{
|
||||
string name = $"{prefix}.{option}";
|
||||
|
|
|
@ -22,13 +22,22 @@ namespace alterNERDtive.util
|
|||
new OptDict<string, Option>{
|
||||
{ new Option("eddi.quietMode", true, voiceTrigger: "eddi quiet mode", description: "Whether or not to make EDDI shut up.") },
|
||||
{ new Option("keyPressDuration", (decimal)0.01, voiceTrigger: "key press duration", description: "The time keys will be held down for.") },
|
||||
{ new Option("delays.quitToDesktop", (decimal)10.0, voiceTrigger: "quit to desktop delay") },
|
||||
{ new Option("elite.pasteKey", "v", voiceTrigger: "elite paste key", description: "The key used to paste in conjunction with CTRL. The key that would be 'V' on QWERTY.") }
|
||||
}
|
||||
},
|
||||
{
|
||||
"EliteAttack",
|
||||
new OptDict<string, Option>{
|
||||
|
||||
{ new Option("announceEdsmSystemStatus", true, voiceTrigger: "announce edsm system status") },
|
||||
{ new Option("announceMappingCandidates", true, voiceTrigger: "announce mapping candidates") },
|
||||
{ new Option("announceOutdatedStationData", true, voiceTrigger: "announce outdated station data") },
|
||||
{ new Option("announceR2RMappingCandidates", true, voiceTrigger: "announce road to riches mapping candidates") },
|
||||
{ new Option("autoRestock", true, voiceTrigger: "auto restock") },
|
||||
//{ new Option("enableAutoUpdateCheck", true, voiceTrigger: "auto update check") },
|
||||
{ new Option("flightAssistOff", false, voiceTrigger: "flight assist off") },
|
||||
{ new Option("hyperspaceDethrottle", true, voiceTrigger: "hyper space dethrottle") },
|
||||
{ new Option("outdatedStationThreshold", (int)365, voiceTrigger: "outdated station threshold") },
|
||||
}
|
||||
},
|
||||
{
|
||||
|
@ -53,7 +62,7 @@ namespace alterNERDtive.util
|
|||
{ 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") },
|
||||
{ new Option("timeTrip", false, voiceTrigger: "time trip") }
|
||||
}
|
||||
},
|
||||
{
|
||||
|
|
Binary file not shown.
Binary file not shown.
Loading…
Reference in a new issue