@@ -1,6 +1,9 @@
extends Node
-var fullscreen = false
+var fullscreen = ProjectSettings.get_setting("display/window/size/mode") in [
+ DisplayServer.WINDOW_MODE_EXCLUSIVE_FULLSCREEN,
+ DisplayServer.WINDOW_MODE_FULLSCREEN,
+]
func _input(event: InputEvent):
if event.is_action_pressed("toggle_fullscreen"):
@@ -8,9 +8,6 @@ func _ready():
if OS.get_name() not in ["Windows", "macOS", "Linux"]:
quit_button.visible = false
-func _process(_delta):
- print(get_viewport_rect().size)
-
func _on_new_game_pressed():
pass # Replace with function body.