diff options
Diffstat (limited to 'client/menu/popup_message.gd')
| -rw-r--r-- | client/menu/popup_message.gd | 8 | 
1 files changed, 8 insertions, 0 deletions
| diff --git a/client/menu/popup_message.gd b/client/menu/popup_message.gd index 921e3647..83edba1e 100644 --- a/client/menu/popup_message.gd +++ b/client/menu/popup_message.gd @@ -95,6 +95,8 @@ func _input(_event):  		if not Global.get_profile("has_reset"):  			reset_timer.start()  		Global.set_profile("has_rotated", true) +	if any_action_just_pressed(["zoom_in", "zoom_out"]): +		Global.set_profile("has_zoomed", true)  	if Input.is_action_just_pressed("interact"):  		Global.set_profile("has_interacted", true)  	if Input.is_action_just_pressed("reset"): @@ -116,6 +118,10 @@ func _on_reset_timeout():  	if not Global.get_profile("has_reset") and not Global.get_setting("touch_controls"):  		display_hint_msg(tr("Press %s to reset the camera view") % display_keybind("R", "Y")) +func _on_zoom_timeout(): +	if not Global.get_profile("has_zoomed") and not Global.get_setting("touch_controls"): +		display_hint_msg(tr("Use %s to zoom in/out") % display_keybind(tr("PageUp/PageDown"), "LT/RT")) +  func display_keybind(keyboard: String, joypad: String, touch = null) -> String:  	if Global.using_joypad:  		return joypad + " (Joypad)" @@ -132,3 +138,5 @@ func any_action_just_pressed(actions: Array) -> bool:  func _on_rotate_camera_timeout():  	if not Global.get_setting("has_rotated") and not Global.get_setting("touch_controls"):  		display_hint_msg(tr("Use %s to reset the camera view") % display_keybind(tr("arrow keys"), tr("right stick"))) + + | 
