diff options
author | metamuffin <metamuffin@disroot.org> | 2025-09-23 21:50:36 +0200 |
---|---|---|
committer | metamuffin <metamuffin@disroot.org> | 2025-09-23 21:50:36 +0200 |
commit | 221292269ce33e7991d2c6bb48c538a2ab27bbab (patch) | |
tree | 8fcab4bf7eba233ffe723fc7d721267d0b318a32 /client/gui/menus | |
parent | fed8a4f8cd2adc9191211f74f284f93eb8f1ac53 (diff) | |
download | hurrycurry-221292269ce33e7991d2c6bb48c538a2ab27bbab.tar hurrycurry-221292269ce33e7991d2c6bb48c538a2ab27bbab.tar.bz2 hurrycurry-221292269ce33e7991d2c6bb48c538a2ab27bbab.tar.zst |
Add toggle first person keybind
Diffstat (limited to 'client/gui/menus')
-rw-r--r-- | client/gui/menus/game.gd | 4 |
1 files changed, 4 insertions, 0 deletions
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://" |