This repository has been archived on 2022-01-09. You can view files and clone it, but cannot push or open issues or pull requests.
liblast/Game/GraphicsMenu.gd
2021-06-01 23:53:32 +02:00

11 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