Remove trailing whitespace and ensure newlines at end of files

This commit is contained in:
Hugo Locurcio 2019-10-25 16:38:38 +02:00
parent c08561b92b
commit f407de234b
No known key found for this signature in database
GPG key ID: 39E8F8BE30B0A49C
10 changed files with 112 additions and 115 deletions

View file

@ -15,7 +15,7 @@ func _input(event) -> void:
drag = true
elif event.is_action_released("camera_drag"):
drag = false
if Global.can_draw && Global.has_focus && Rect2(Vector2.ZERO, viewport_size).has_point(mouse_pos):
if event.is_action_pressed("zoom_in"): # Wheel Up Event
zoom_camera(-1)
@ -30,8 +30,8 @@ func zoom_camera(dir : int) -> void:
#if zoom + zoom_margin > zoom_min && zoom + zoom_margin < zoom_max:
if zoom + zoom_margin > zoom_min:
zoom += zoom_margin
if zoom > zoom_max:
zoom = zoom_max
if name == "Camera2D":
Global.zoom_level_label.text = "Zoom: x%s" % [stepify(1 / zoom.x, 0.01)]
Global.zoom_level_label.text = "Zoom: x%s" % [stepify(1 / zoom.x, 0.01)]