giants-godot/ui/menus/video_settings.gd

15 lines
275 B
GDScript

extends BaseUI
func _ready():
$VBoxContainer/GridContainer/CheckBox.pressed = OS.window_fullscreen
func _on_Save_pressed():
close()
func _on_CheckBox_toggled(button_pressed):
if OS.window_fullscreen:
OS.window_fullscreen = false
else:
OS.window_fullscreen = true