added csv folder for future spreadsheets to feed into cards etc

This commit is contained in:
Jaap Marsman 2022-08-08 17:16:19 +08:00
parent b9622d0632
commit 26032953ea
3 changed files with 31 additions and 1 deletions

View File

@ -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.

View File

@ -0,0 +1,20 @@
id,category,title,description,,,,
,,,,,,,
,,,,,,,
,,,,,,,
,,,,,,,
,,,,,,,
,,,,,,,
,,,,,,,
,,,,,,,
,,,,,,,
,,,,,,,
,,,,,,,
,,,,,,,
,,,,,,,
,,,,,,,
,,,,,,,
,,,,,,,
,,,,,,,
,,,,,,,
,,,,,,,
1 id category title description
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20

View File

@ -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):