1
0
Fork 0
This repository has been archived on 2024-05-12. You can view files and clone it, but cannot push or open issues or pull requests.
GMTK-2023/Menus/MainMenu/scripts/fullscreen.gd

11 lines
228 B
GDScript3
Raw Normal View History

2024-05-12 09:49:07 +02:00
extends Node
func _ready():
pass
func _process(delta: float):
pass
func toggle_fullscreen(state: bool):
DisplayServer.window_set_mode(DisplayServer.WINDOW_MODE_FULLSCREEN if state else DisplayServer.WINDOW_MODE_WINDOWED)