mirror of
https://github.com/hobbesjaap/wellbeingapp.git
synced 2024-11-22 18:42:58 +00:00
added csv folder for future spreadsheets to feed into cards etc
This commit is contained in:
parent
b9622d0632
commit
26032953ea
@ -20,6 +20,7 @@ func _ready():
|
|||||||
func _on_button_user_save_pressed():
|
func _on_button_user_save_pressed():
|
||||||
|
|
||||||
# Store some values.
|
# Store some values.
|
||||||
|
# Maybe this one only runs if there is no ini
|
||||||
config.set_value("User", "user_name", user_name.text)
|
config.set_value("User", "user_name", user_name.text)
|
||||||
user_info.user_first_name = user_name.text
|
user_info.user_first_name = user_name.text
|
||||||
#config.set_value("Player1", "best_score", 10)
|
#config.set_value("Player1", "best_score", 10)
|
||||||
@ -27,8 +28,17 @@ func _on_button_user_save_pressed():
|
|||||||
#config.set_value("Player2", "best_score", 9001)
|
#config.set_value("Player2", "best_score", 9001)
|
||||||
|
|
||||||
# Save it to a file (overwrite if already exists).
|
# Save it to a file (overwrite if already exists).
|
||||||
|
# Need to make sure I never lose any values I add.
|
||||||
|
# This seems to be a manual thing to program.
|
||||||
|
# So per value, make sure to read it upon load.
|
||||||
|
# And write it out again as well.
|
||||||
|
|
||||||
config.save("user://user.ini")
|
config.save("user://user.ini")
|
||||||
|
|
||||||
main_screen.visible = true
|
main_screen.visible = true
|
||||||
start_menu.visible = true
|
start_menu.visible = true
|
||||||
user_menu.visible = false
|
user_menu.visible = false
|
||||||
|
|
||||||
|
# Need to do a "This thing can't be empty" code
|
||||||
|
# Most likely here. A if .text = null, then,
|
||||||
|
# don't proceed.
|
||||||
|
20
godot/data/wellbeing_cards.csv
Normal file
20
godot/data/wellbeing_cards.csv
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
id,category,title,description,,,,
|
||||||
|
,,,,,,,
|
||||||
|
,,,,,,,
|
||||||
|
,,,,,,,
|
||||||
|
,,,,,,,
|
||||||
|
,,,,,,,
|
||||||
|
,,,,,,,
|
||||||
|
,,,,,,,
|
||||||
|
,,,,,,,
|
||||||
|
,,,,,,,
|
||||||
|
,,,,,,,
|
||||||
|
,,,,,,,
|
||||||
|
,,,,,,,
|
||||||
|
,,,,,,,
|
||||||
|
,,,,,,,
|
||||||
|
,,,,,,,
|
||||||
|
,,,,,,,
|
||||||
|
,,,,,,,
|
||||||
|
,,,,,,,
|
||||||
|
,,,,,,,
|
|
@ -13,7 +13,7 @@ func _process(_delta):
|
|||||||
|
|
||||||
|
|
||||||
func _on_button_update_check_pressed():
|
func _on_button_update_check_pressed():
|
||||||
$HTTPRequest.request("https://raw.githubusercontent.com/hobbesjaap/wellbeingapp/main/version_stuff.csv")
|
$HTTPRequest.request("https://raw.githubusercontent.com/hobbesjaap/wellbeingapp/main/version_info.csv")
|
||||||
|
|
||||||
|
|
||||||
func _on_HTTPRequest_request_completed(result, response_code, headers, body):
|
func _on_HTTPRequest_request_completed(result, response_code, headers, body):
|
||||||
|
Loading…
Reference in New Issue
Block a user