diff options
| author | tpart <tpart120@proton.me> | 2024-07-12 01:31:32 +0200 |
|---|---|---|
| committer | tpart <tpart120@proton.me> | 2024-07-12 01:31:32 +0200 |
| commit | 60e825cbbaa56493d3a216efbda0e4e987fe17e8 (patch) | |
| tree | 0cfc848982dd505ce676735ffa9c223afa29707a /client/menu/popup_message.gd | |
| parent | 0f0c7713218dc9fc8beafdbe14785c11a0f61ea8 (diff) | |
| download | hurrycurry-60e825cbbaa56493d3a216efbda0e4e987fe17e8.tar hurrycurry-60e825cbbaa56493d3a216efbda0e4e987fe17e8.tar.bz2 hurrycurry-60e825cbbaa56493d3a216efbda0e4e987fe17e8.tar.zst | |
Add rotate camera hint
Diffstat (limited to 'client/menu/popup_message.gd')
| -rw-r--r-- | client/menu/popup_message.gd | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/client/menu/popup_message.gd b/client/menu/popup_message.gd index e70e1fef..d37343c3 100644 --- a/client/menu/popup_message.gd +++ b/client/menu/popup_message.gd @@ -84,9 +84,11 @@ 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 display_keybind(keyboard: String, joypad: String) -> String: +func display_keybind(keyboard: String, joypad: String, touch = null) -> String: if Global.using_joypad: return joypad + " (Joypad)" + if touch != null: + return touch return keyboard func any_action_just_pressed(actions: Array) -> bool: @@ -95,3 +97,6 @@ func any_action_just_pressed(actions: Array) -> bool: return true return false +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"))) |