fix fullscreen buggy :3

This commit is contained in:
Haze Weathers 2023-03-08 18:21:15 -05:00
parent 7020914046
commit e85c09a6a4
4 changed files with 15 additions and 17 deletions

View file

@ -27,6 +27,10 @@ func _ready():
defaults = duplicate()
load_options()
func _unhandled_input(event):
if event.is_action_pressed("fullscreen"):
_set_fullscreen(!fullscreen)
func load_options():
var file = ConfigFile.new()
file.load("user://options.pr")