From e60a5295f59dd236ac49202605af4baa9d40db1d Mon Sep 17 00:00:00 2001 From: in0finite Date: Sun, 23 Jun 2019 04:00:38 +0200 Subject: [PATCH] persist camera settings --- Assets/Scripts/Settings/CameraSettings.cs | 2 ++ Docs/Multiplayer.md | 2 ++ Docs/TODO.md | 2 +- 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/Assets/Scripts/Settings/CameraSettings.cs b/Assets/Scripts/Settings/CameraSettings.cs index 81a1e7ea..44312ad4 100644 --- a/Assets/Scripts/Settings/CameraSettings.cs +++ b/Assets/Scripts/Settings/CameraSettings.cs @@ -14,6 +14,7 @@ namespace SanAndreasUnity.Settings { maxValue = 5000, getValue = () => Camera.main != null ? Camera.main.farClipPlane : s_farClipPlane, setValue = (value) => { s_farClipPlane = value; if (Camera.main != null) Camera.main.farClipPlane = value; }, + persistType = OptionsWindow.InputPersistType.OnStart, }; OptionsWindow.FloatInput m_fieldOfViewInput = new OptionsWindow.FloatInput() { description = "Field of view", @@ -21,6 +22,7 @@ namespace SanAndreasUnity.Settings { maxValue = 120, getValue = () => Camera.main != null ? Camera.main.fieldOfView : s_fieldOfView, setValue = (value) => { s_fieldOfView = value; if (Camera.main != null) Camera.main.fieldOfView = value; }, + persistType = OptionsWindow.InputPersistType.OnStart, }; diff --git a/Docs/Multiplayer.md b/Docs/Multiplayer.md index 06deec20..f57b395a 100644 --- a/Docs/Multiplayer.md +++ b/Docs/Multiplayer.md @@ -22,6 +22,8 @@ - display players on minimap +- port the whole UI to multiplayer + - **vehicle is bumping on clients** - disable (or destroy) wheel colliders, and sync them - this should not be done on local player, see below - when exit vehicle anim is finished on client, it is repeated - change wrap mode diff --git a/Docs/TODO.md b/Docs/TODO.md index 71e81eb9..5f39b753 100644 --- a/Docs/TODO.md +++ b/Docs/TODO.md @@ -18,7 +18,7 @@ - Gravity setting failed to load on windows - instead of 9.81, it's loaded as 981 -- Make all settings persistent +- Camera can go through map objects - Update controls window