aboutsummaryrefslogtreecommitdiff
path: root/client/gui
diff options
context:
space:
mode:
Diffstat (limited to 'client/gui')
-rw-r--r--client/gui/menus/game.gd4
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://"