diff options
Diffstat (limited to 'client/global.gd')
-rw-r--r-- | client/global.gd | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/client/global.gd b/client/global.gd index 4d1139d2..38ddace9 100644 --- a/client/global.gd +++ b/client/global.gd @@ -117,6 +117,13 @@ func _init(): settings = load_dict("user://settings", default_settings) print("DONE LOADING") +func _input(event): + if Input.is_action_just_pressed("fullscreen"): + if DisplayServer.window_get_mode() != DisplayServer.WINDOW_MODE_FULLSCREEN: + DisplayServer.window_set_mode(DisplayServer.WINDOW_MODE_FULLSCREEN) + else: + DisplayServer.window_set_mode(DisplayServer.WINDOW_MODE_WINDOWED) + func save_profile(): save_dict("user://profile", profile) |