From e617d25199686721b8b19363c053d51f9dcff82f Mon Sep 17 00:00:00 2001 From: Jaap Marsman Date: Tue, 16 Aug 2022 17:37:09 +0800 Subject: [PATCH] improved some code comments for clarity for myself --- godot/program_values.gd | 10 ++++++---- godot/start_menu.gd | 2 +- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/godot/program_values.gd b/godot/program_values.gd index 3bf189e..a9a593f 100644 --- a/godot/program_values.gd +++ b/godot/program_values.gd @@ -3,13 +3,15 @@ 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 + +# The var web_release_version is pulled from GitHub +# when the update button is checked. A higher value means +# an update is available + var web_release_version = 0 -var current_version = "Version 0.1" +var current_version = "0.0.8" func check_update(): pass diff --git a/godot/start_menu.gd b/godot/start_menu.gd index b3ae151..40e2f73 100644 --- a/godot/start_menu.gd +++ b/godot/start_menu.gd @@ -6,7 +6,7 @@ onready var program_values = get_node("/root/ProgramValues") func _ready(): - $version_label.text = str(program_values.current_version) + $version_label.text = "Version " + str(program_values.current_version) $welcome_title.text = "Good morning, " + user_values.user_first_name + "!"