mirror of
https://github.com/git-learning-game/oh-my-git.git
synced 2024-11-20 16:20:18 +01:00
Repair zooming! _unhandled_input is magic!
This commit is contained in:
parent
a7495ce054
commit
8df293b4f5
1 changed files with 5 additions and 6 deletions
|
@ -40,12 +40,11 @@ func _process(_delta):
|
||||||
if path:
|
if path:
|
||||||
apply_forces()
|
apply_forces()
|
||||||
|
|
||||||
#func _input(event):
|
func _unhandled_input(event):
|
||||||
# if mouse_inside:
|
if event.is_action_pressed("zoom_out") and nodes.rect_scale.x > 0.3:
|
||||||
# if event.is_action_pressed("zoom_out") and nodes.rect_scale.x > 0.3:
|
nodes.rect_scale -= Vector2(0.05, 0.05)
|
||||||
# nodes.rect_scale -= Vector2(0.05, 0.05)
|
if event.is_action_pressed("zoom_in") and nodes.rect_scale.x < 2:
|
||||||
# if event.is_action_pressed("zoom_in") and nodes.rect_scale.x < 2:
|
nodes.rect_scale += Vector2(0.05, 0.05)
|
||||||
# nodes.rect_scale += Vector2(0.05, 0.05)
|
|
||||||
|
|
||||||
func there_is_a_git():
|
func there_is_a_git():
|
||||||
return shell.run("test -d .git && echo yes || echo no") == "yes\n"
|
return shell.run("test -d .git && echo yes || echo no") == "yes\n"
|
||||||
|
|
Loading…
Reference in a new issue