parent
b3ad1ae799
commit
dc42912cbe
3 changed files with 24 additions and 1 deletions
|
@ -9,6 +9,10 @@
|
|||
* `auto disable s r v lights` setting: Automatically turn SRV lights off when
|
||||
deploying one. Default: true. (#133)
|
||||
|
||||
### Fixed
|
||||
|
||||
* `auto enter station services` option. (#142)
|
||||
|
||||
## SpashAttack 7.2.2
|
||||
|
||||
* Fixed getting current jump range from EDDI; no longer fails on the first try,
|
||||
|
|
|
@ -194,6 +194,25 @@ namespace alterNERDtive
|
|||
|
||||
private static void Context_Config_VersionMigration(dynamic vaProxy)
|
||||
{
|
||||
// =============
|
||||
// === 4.3.1 ===
|
||||
// =============
|
||||
|
||||
// EliteAttack
|
||||
foreach (string option in new string[] { "autoStationService" })
|
||||
{
|
||||
string name = $"EliteAttack.{option}s#";
|
||||
string oldName = $"EliteAttack.{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" } });
|
||||
}
|
||||
}
|
||||
|
||||
// ===========
|
||||
// === 4.2 ===
|
||||
// ===========
|
||||
|
|
|
@ -69,7 +69,7 @@ namespace alterNERDtive.util
|
|||
description: "Automatically restock after docking at a station.") },
|
||||
{ new Option<bool>("autoHangar", true, voiceTrigger: "auto move to hangar",
|
||||
description: "Automatically move the ship to the hangar after docking at a station.") },
|
||||
{ new Option<bool>("autoStationService", true, voiceTrigger: "auto enter station services",
|
||||
{ new Option<bool>("autoStationServices", true, voiceTrigger: "auto enter station services",
|
||||
description: "Automatically enter the Station Services menu after docking at a station.") },
|
||||
{ new Option<bool>("autoRetractLandingGear", true, voiceTrigger: "auto retract landing gear",
|
||||
description: "Automatically retract landing gear when lifting off a planet / undocking from a station.") },
|
||||
|
|
Loading…
Reference in a new issue