From 859ee30fa51b2e5c970015b5192652f3ac022b04 Mon Sep 17 00:00:00 2001 From: innominata Date: Wed, 2 Feb 2022 21:05:59 +1300 Subject: [PATCH 1/2] Update Settings.cs --- .../GalacticScale2.0/Generators/GS2Dev/Settings.cs | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) 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; } From 59dfd0bde65f9fb322bd759ff93eb5337506ddd0 Mon Sep 17 00:00:00 2001 From: DZF Date: Fri, 4 Feb 2022 00:01:31 -0500 Subject: [PATCH 2/2] example for build.props --- .gitignore | 1 + GalacticScale2/Directory.Build.props.example | 29 ++++++++++++++++++++ 2 files changed, 30 insertions(+) create mode 100644 GalacticScale2/Directory.Build.props.example diff --git a/.gitignore b/.gitignore index 7ec18cfa..7d5245e9 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,7 @@ .idea* .vs* +.vscode* **/Debug/** GalacticScale.sln.DotSettings.user DSP_Plugins.GalacticScale/Directory.Build.props diff --git a/GalacticScale2/Directory.Build.props.example b/GalacticScale2/Directory.Build.props.example new file mode 100644 index 00000000..3aacc727 --- /dev/null +++ b/GalacticScale2/Directory.Build.props.example @@ -0,0 +1,29 @@ + + + D:\PATH\R2\DysonSphereProgram\profiles\PROFILE\BepInEx\GS2Dev\GalacticScale2 + D:\PATH\Steam\SteamApps\common\Dyson Sphere Program + D:\PATH\R2\DysonSphereProgram\profiles\PROFILE\BepInEx\core + + + + + \ No newline at end of file