Change min zoom level

This commit is contained in:
in0finite 2019-04-17 00:16:35 +02:00
parent 0aeb523a16
commit 43599418e8

View file

@ -289,7 +289,7 @@ namespace SanAndreasUnity.UI {
else if(Input.mouseScrollDelta.y < 0)
zoomLevel /= 1.1f;
zoomLevel = Mathf.Clamp (zoomLevel, 0.05f, 10f);
zoomLevel = Mathf.Clamp (zoomLevel, 0.25f, 10f);
if (oldZoomLevel != this.zoomLevel) {
// this.AdjustVisibleMapRectAfterZooming ();
@ -553,7 +553,7 @@ namespace SanAndreasUnity.UI {
GUILayout.EndHorizontal ();
GUILayout.Space (5);
GUILayout.Label ("Controls: arrows/WASD - move, +/- - zoom, right click - place waypoint");
GUILayout.Label ("Controls: arrows/WASD - move, +/-/scroll - zoom, right click - place waypoint");
GUILayout.EndScrollView ();