This repository has been archived on 2022-01-09. You can view files and clone it, but cannot push or open issues/pull-requests.
liblast/Game/Assets/UI/GraphicsMenu.gd

12 lines
285 B
GDScript

extends "res://Menu.gd"
# Called when the node enters the scene tree for the first time.
func _ready():
pass
func toggle_fullscreen(button_pressed):
if button_pressed:
get_tree().get_root().mode = Window.MODE_FULLSCREEN
else:
get_tree().get_root().mode = Window.MODE_WINDOWED