do some changes with XLib and started working on main menu

This commit is contained in:
2026-06-04 23:51:28 -05:00
parent f320e6bd80
commit 04f8bb7c2d
17 changed files with 143 additions and 13 deletions

20
SaveManager/Config.gd Normal file
View File

@@ -0,0 +1,20 @@
extends Node
const ConfigPath = "user://config.tres"
func saveConfigs():
var NewConfig = Config.new()
NewConfig.username = MainGame.username
NewConfig.language = MainGame.loadedLanguage
var sc = ResourceSaver.save(NewConfig, ConfigPath)
func loadConfig() -> Config:
if ResourceLoader.exists(ConfigPath):
var LoadedConfig = load(ConfigPath)
if LoadedConfig:
return LoadedConfig
return Config.new()