diff --git a/OWML.Launcher/OWML.Manifest.json b/OWML.Launcher/OWML.Manifest.json index ad5482f97..c5ddf7d78 100644 --- a/OWML.Launcher/OWML.Manifest.json +++ b/OWML.Launcher/OWML.Manifest.json @@ -2,7 +2,7 @@ "author": "Alek", "name": "OWML", "uniqueName": "Alek.OWML", - "version": "0.7.0", + "version": "0.7.1", "description": "The mod loader and mod framework for Outer Wilds", "minGameVersion": "1.0.7.0", "maxGameVersion": "1.0.7.481" diff --git a/OWML.ModHelper.Menus/ModSliderInput.cs b/OWML.ModHelper.Menus/ModSliderInput.cs index 9b5132cbf..4d1453ac0 100644 --- a/OWML.ModHelper.Menus/ModSliderInput.cs +++ b/OWML.ModHelper.Menus/ModSliderInput.cs @@ -71,12 +71,12 @@ private void UpdateValueText() private float ToRealNumber(float fakeNumber) { - return fakeNumber * (Max - Min) / 10; + return 0.1f * (fakeNumber * (Max - Min)) + Min; } private float ToFakeNumber(float realNumber) { - return realNumber * 10 / (Max - Min); + return 10 * (realNumber - Min) / (Max - Min); } } } diff --git a/OWML.SampleMods/OWML.EnableDebugMode/manifest.json b/OWML.SampleMods/OWML.EnableDebugMode/manifest.json index f817ea211..675d9925b 100644 --- a/OWML.SampleMods/OWML.EnableDebugMode/manifest.json +++ b/OWML.SampleMods/OWML.EnableDebugMode/manifest.json @@ -4,7 +4,7 @@ "name": "EnableDebugMode", "uniqueName": "Alek.EnableDebugMode", "version": "0.2", - "owmlVersion": "0.7.0", + "owmlVersion": "0.7.1", "description": "Enables the debug mode in Outer Wilds", "requireVR": false } diff --git a/OWML.SampleMods/OWML.LoadCustomAssets/default-config.json b/OWML.SampleMods/OWML.LoadCustomAssets/default-config.json index 2f97c7d08..63d6de7dc 100644 --- a/OWML.SampleMods/OWML.LoadCustomAssets/default-config.json +++ b/OWML.SampleMods/OWML.LoadCustomAssets/default-config.json @@ -18,6 +18,18 @@ "min": 0, "max": 20 }, + "negativeMin": { + "type": "slider", + "value": -2, + "min": -10, + "max": 20 + }, + "negativeMax": { + "type": "slider", + "value": -2, + "min": -50, + "max": -20 + }, "decimals": { "type": "slider", "value": 10.54545, diff --git a/OWML.SampleMods/OWML.LoadCustomAssets/manifest.json b/OWML.SampleMods/OWML.LoadCustomAssets/manifest.json index 9716a6307..1f6345752 100644 --- a/OWML.SampleMods/OWML.LoadCustomAssets/manifest.json +++ b/OWML.SampleMods/OWML.LoadCustomAssets/manifest.json @@ -4,7 +4,7 @@ "name": "LoadCustomAssets", "uniqueName": "Alek.LoadCustomAssets", "version": "0.6", - "owmlVersion": "0.7.0", + "owmlVersion": "0.7.1", "description": "A mod for testing loading of custom assets", "requireVR": false }