diff --git a/Game/Assets/UI/GUI.gd b/Game/Assets/UI/GUI.gd index 3774142..5393b8e 100644 --- a/Game/Assets/UI/GUI.gd +++ b/Game/Assets/UI/GUI.gd @@ -7,7 +7,16 @@ func _ready(): if has_settings(): load_settings() apply_settings() - + else: # apply defaults + settings = {'Fullscreen':true, + 'Sensitivity':0.5, + 'ip':'liblast.unfa.xyz', + 'player color':Color(1, 0, 0, 1), + 'username':'nameless' + } + apply_settings() + save_settings() + func has_settings(): var filecheck = File.new() return filecheck.file_exists(settings_filename)