forked from unfa/liblast
Added default settings
parent
49dde63076
commit
cca26a5e05
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue