diff --git a/GalacticScale2/Scripts/GalacticScale2.0/Generators/GS2Dev/Settings.cs b/GalacticScale2/Scripts/GalacticScale2.0/Generators/GS2Dev/Settings.cs index 62e6c3e3..22eda6ad 100644 --- a/GalacticScale2/Scripts/GalacticScale2.0/Generators/GS2Dev/Settings.cs +++ b/GalacticScale2/Scripts/GalacticScale2.0/Generators/GS2Dev/Settings.cs @@ -38,20 +38,26 @@ public void Init() public void Import(GSGenPreferences importedPreferences) { + Warn("Importing Preferences"); for (var i = 0; i < importedPreferences.Count; i++) { var key = importedPreferences.Keys.ElementAt(i); + Warn($"Setting:{key} to {importedPreferences[key]}"); preferences.Set(key, importedPreferences[key]); - if (loaded && UI.ContainsKey(key)) UI[key].Set(importedPreferences[key]); + if (loaded && UI.ContainsKey(key)) { + Warn("UI Loaded, setting UI Element to match"); + UI[key].Set(importedPreferences[key]); + } } if (loaded) loaded = false; Config.DefaultStarCount = importedPreferences.GetInt("defaultStarCount"); - if (!importedPreferences.GetBool("ludicrousMode")) Config.MaxStarCount = 1024; + //if (!importedPreferences.GetBool("ludicrousMode")) Config.MaxStarCount = 1024; } public GSGenPreferences Export() { + Warn("Exporting Preferences"); return preferences; }