From ae00f6bbf39de2ab7404800357608ff64f1e0ea1 Mon Sep 17 00:00:00 2001 From: Ricardo Lopes Date: Mon, 3 Aug 2020 23:18:39 +0200 Subject: [PATCH 1/2] Fix slider value calculation --- OWML.ModHelper.Menus/ModSliderInput.cs | 4 ++-- .../OWML.LoadCustomAssets/default-config.json | 12 ++++++++++++ 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/OWML.ModHelper.Menus/ModSliderInput.cs b/OWML.ModHelper.Menus/ModSliderInput.cs index 9b5132cb..4d1453ac 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.LoadCustomAssets/default-config.json b/OWML.SampleMods/OWML.LoadCustomAssets/default-config.json index 2f97c7d0..63d6de7d 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, From 5e27fab02ae964967585a60b0cd0c7fece50fb46 Mon Sep 17 00:00:00 2001 From: Aleksander Waage Date: Tue, 4 Aug 2020 07:01:57 +0200 Subject: [PATCH 2/2] 0.7.1 --- OWML.Launcher/OWML.Manifest.json | 2 +- OWML.SampleMods/OWML.EnableDebugMode/manifest.json | 2 +- OWML.SampleMods/OWML.LoadCustomAssets/manifest.json | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/OWML.Launcher/OWML.Manifest.json b/OWML.Launcher/OWML.Manifest.json index ad5482f9..c5ddf7d7 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.SampleMods/OWML.EnableDebugMode/manifest.json b/OWML.SampleMods/OWML.EnableDebugMode/manifest.json index f817ea21..675d9925 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/manifest.json b/OWML.SampleMods/OWML.LoadCustomAssets/manifest.json index 9716a630..1f634575 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 }