bind new inputs

This commit is contained in:
2026-07-01 19:09:56 +02:00
parent 7be800398d
commit 238dd4a124
4 changed files with 140 additions and 119 deletions

View File

@@ -64,6 +64,18 @@ func _input(event: InputEvent) -> void:
Input.set_mouse_mode(Input.MOUSE_MODE_VISIBLE)
show_ui()
func _unhandled_input(event: InputEvent) -> void:
if event.is_action_pressed("toggle_options"):
if photo_mode_texture_panel.visible:
return
if game_menu_panel.visible:
_on_resume_button_pressed()
else:
_open_game_menu_on_page(2)
elif event.is_action_pressed("hide_ui"):
if not game_menu_panel.visible:
_on_hide_ui_button_pressed()
func _on_photo_icon_button_pressed() -> void:
GameState.on_enable_photo_mode_request.emit()