From 29e28ac1150d790e2111d65c1c5c4297f8ea71cb Mon Sep 17 00:00:00 2001 From: Jaap Marsman Date: Sun, 7 Aug 2022 09:08:10 +0800 Subject: [PATCH] updated to godot 3.5 --- PRIVACY.md | 7 +++++++ godot/button_user_save.gd | 5 +++-- godot/program_values.gd | 19 +++++++++++++++++++ godot/project.godot | 1 + godot/start_menu.gd | 1 + godot/start_screen.tscn | 7 +++++++ 6 files changed, 38 insertions(+), 2 deletions(-) create mode 100644 PRIVACY.md create mode 100644 godot/program_values.gd diff --git a/PRIVACY.md b/PRIVACY.md new file mode 100644 index 0000000..741cbdb --- /dev/null +++ b/PRIVACY.md @@ -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. :) \ No newline at end of file diff --git a/godot/button_user_save.gd b/godot/button_user_save.gd index ef5fe3b..6967868 100644 --- a/godot/button_user_save.gd +++ b/godot/button_user_save.gd @@ -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) diff --git a/godot/program_values.gd b/godot/program_values.gd new file mode 100644 index 0000000..842892f --- /dev/null +++ b/godot/program_values.gd @@ -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 diff --git a/godot/project.godot b/godot/project.godot index bf158fb..f64e457 100644 --- a/godot/project.godot +++ b/godot/project.godot @@ -17,6 +17,7 @@ config/icon="res://icon.png" [autoload] UserValues="*res://user_values.gd" +ProgramValues="*res://program_values.gd" [gui] diff --git a/godot/start_menu.gd b/godot/start_menu.gd index 196556a..eb2cec8 100644 --- a/godot/start_menu.gd +++ b/godot/start_menu.gd @@ -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(): diff --git a/godot/start_screen.tscn b/godot/start_screen.tscn index 75755d6..fa804b6 100644 --- a/godot/start_screen.tscn +++ b/godot/start_screen.tscn @@ -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"]