fixed saving & added first basic save creation menu
This commit is contained in:
@@ -1,15 +1,15 @@
|
||||
extends Node
|
||||
|
||||
var config: Config = Config.new()
|
||||
var config: Config = Config.new("config")
|
||||
|
||||
func _ready() -> void:
|
||||
Save.load(config)
|
||||
config.load()
|
||||
toggle_fullscreen()
|
||||
|
||||
func _process(_delta: float) -> void:
|
||||
if Input.is_action_just_pressed("fullscreen"):
|
||||
config.fullscreen = !config.fullscreen
|
||||
Save.save(config)
|
||||
config.save()
|
||||
toggle_fullscreen()
|
||||
|
||||
func _notification(what: int) -> void:
|
||||
|
||||
Reference in New Issue
Block a user