mirror of
https://github.com/GTA-ASM/SanAndreasUnity
synced 2024-11-10 14:44:17 +00:00
Change min zoom level
This commit is contained in:
parent
0aeb523a16
commit
43599418e8
1 changed files with 2 additions and 2 deletions
|
@ -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 ();
|
||||
|
||||
|
|
Loading…
Reference in a new issue