aboutsummaryrefslogtreecommitdiff
path: root/game/src/GameSession/MapView.gd
diff options
context:
space:
mode:
author George L. Albany <Megacake1234@gmail.com>2023-04-24 05:55:40 +0200
committer GitHub <noreply@github.com>2023-04-24 05:55:40 +0200
commit639f86febf39184cccde9f898fc328375048233f (patch)
treef81561fbcb292709c7a4cd99f463c2e0723e3468 /game/src/GameSession/MapView.gd
parent40b981ec11818a245603885bddcf5fd1503abf63 (diff)
parent2c2ee99cf2d304ec28eed8560860267e95ee9017 (diff)
Merge pull request #93 from Spartan322/some-refurbishing
Diffstat (limited to 'game/src/GameSession/MapView.gd')
-rw-r--r--game/src/GameSession/MapView.gd8
1 files changed, 4 insertions, 4 deletions
diff --git a/game/src/GameSession/MapView.gd b/game/src/GameSession/MapView.gd
index ac060e1..510d70a 100644
--- a/game/src/GameSession/MapView.gd
+++ b/game/src/GameSession/MapView.gd
@@ -7,8 +7,8 @@ const _action_north : StringName = &"map_north"
const _action_east : StringName = &"map_east"
const _action_south : StringName = &"map_south"
const _action_west : StringName = &"map_west"
-const _action_zoomin : StringName = &"map_zoomin"
-const _action_zoomout : StringName = &"map_zoomout"
+const _action_zoom_in : StringName = &"map_zoom_in"
+const _action_zoom_out : StringName = &"map_zoom_out"
const _action_drag : StringName = &"map_drag"
const _action_click : StringName = &"map_click"
@@ -165,9 +165,9 @@ func _unhandled_input(event : InputEvent):
if not _drag_active:
push_warning("Drag being deactivated while already not active!")
_drag_active = false
- elif event.is_action_pressed(_action_zoomin, true):
+ elif event.is_action_pressed(_action_zoom_in, true):
zoom_in()
- elif event.is_action_pressed(_action_zoomout, true):
+ elif event.is_action_pressed(_action_zoom_out, true):
zoom_out()
func _physics_process(delta : float):