wellbeingapp/godot/user_values.gd

26 lines
466 B
GDScript3
Raw Normal View History

2022-08-03 01:01:10 +00:00
extends Node
2022-07-31 05:27:58 +00:00
var user_first_name = " "
var user_birth_month = 0
var user_birth_day = 0
2022-08-10 09:33:29 +00:00
# For the login-streak thing
#var user_login_streak
#var user_last_login_year
#var user_last_login_month
#var user_last_login_day
2022-07-31 05:27:58 +00:00
var config = ConfigFile.new()
var err = config.load("user://user.ini")
2022-07-31 05:27:58 +00:00
func _ready():
# Read config file if it exists
# define variables from ini file
if err == OK:
user_first_name = config.get_value("User", "user_name")
else:
pass