From 221292269ce33e7991d2c6bb48c538a2ab27bbab Mon Sep 17 00:00:00 2001 From: metamuffin Date: Tue, 23 Sep 2025 21:50:36 +0200 Subject: Add toggle first person keybind --- client/gui/menus/game.gd | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'client/gui') diff --git a/client/gui/menus/game.gd b/client/gui/menus/game.gd index fef9c721..a730e385 100644 --- a/client/gui/menus/game.gd +++ b/client/gui/menus/game.gd @@ -38,12 +38,16 @@ func _input(_event): if Input.is_action_just_pressed("screenshot"): get_viewport().get_texture().get_image().save_png(get_shot_path("screenshot-%s.png")) + if Input.is_action_just_pressed("sceneshot"): var doc := GLTFDocument.new() var state := GLTFState.new() doc.append_from_scene(game, state) doc.write_to_filesystem(state, get_shot_path("sceneshot-%s.glb")) + if Input.is_action_just_pressed("toggle_first_person"): + Settings.write("gameplay.first_person", not Settings.read("gameplay.first_person")) + func get_shot_path(template: String) -> String: var path = Settings.read("gameplay.screenshot_path") if path == "": path = "user://" -- cgit v1.2.3-70-g09d2