persist camera settings

This commit is contained in:
in0finite 2019-06-23 04:00:38 +02:00
parent d96f890d02
commit e60a5295f5
3 changed files with 5 additions and 1 deletions

View file

@ -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,
};

View file

@ -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

View file

@ -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