updated to godot 3.5

This commit is contained in:
Jaap Marsman 2022-08-07 09:08:10 +08:00
parent 4d43f9fcd4
commit 29e28ac115
6 changed files with 38 additions and 2 deletions

7
PRIVACY.md Normal file
View File

@ -0,0 +1,7 @@
# Privacy Statement
- As can be seen by inspecting the source code, the app contains no tracking features or advertisement systems of ANY kind. I am not interested in your data.
- Any data entered into the app (your name, birthdate, etc) is stored locally on your device.
- The only "phone home" function that the app will do (once programmed) is to check for app updates online. If you're not online, the check fails. Simple as that.
Too often "free" apps make you their product. Or are free with a hefty subscription lurking around the corner. I get it, for some people, such apps are their livelihood. For me, it's something I wish to develop and hope other people find useful. There is no monetary gain here. Of course I'm curious to see who uses the app. That's why I offer the option to subscribe to a newsletter, which is different. It's opt-in privacy-by-design stuff. You don't want to sign up? Don't press the button. It's really that simple. :)

View File

@ -2,7 +2,8 @@ extends Button
var config = ConfigFile.new()
onready var user_name = get_node("user_details/textbox_user_name")
onready var user_name = get_node("textbox_user_name")
onready var user_info = get_node("/root/UserValues")
# Called when the node enters the scene tree for the first time.
func _ready():
@ -16,7 +17,7 @@ func _ready():
func _on_button_user_save_pressed():
# Store some values.
config.set_value("User", "player_name", "Steve")
config.set_value("User", "player_name", user_name)
config.set_value("Player1", "best_score", 10)
config.set_value("Player2", "player_name", "V3geta")
config.set_value("Player2", "best_score", 9001)

19
godot/program_values.gd Normal file
View File

@ -0,0 +1,19 @@
extends Node
# This variable lists the release number.
# This is "the number of releases".
# My aim is to check against a web file to see if
# there is a new version available and show a
# download button if there is.
var release_version = 1
func _ready():
pass # Replace with function body.
# Called every frame. 'delta' is the elapsed time since the previous frame.
#func _process(delta):
# pass

View File

@ -17,6 +17,7 @@ config/icon="res://icon.png"
[autoload]
UserValues="*res://user_values.gd"
ProgramValues="*res://program_values.gd"
[gui]

View File

@ -5,6 +5,7 @@ extends Node2D
# var a = 2
# var b = "text"
onready var user_info = get_node("/root/UserValues")
onready var program_info = get_node("/root/ProgramValues")
# Called when the node enters the scene tree for the first time.
func _ready():

View File

@ -80,6 +80,13 @@ margin_top = 205.0
margin_right = 794.0
margin_bottom = 250.0
[node name="button_birth_day" type="MenuButton" parent="user_details"]
margin_left = 311.0
margin_top = 367.0
margin_right = 376.0
margin_bottom = 404.0
text = "Day"
[connection signal="pressed" from="start_menu/button_open_github" to="start_menu/button_open_github" method="_on_button_open_github_pressed"]
[connection signal="pressed" from="start_menu/button_email_feedback" to="start_menu/button_email_feedback" method="_on_button_email_feedback_pressed"]
[connection signal="pressed" from="start_menu/button_name" to="start_menu/button_name" method="_on_button_name_pressed"]