From bbf9742334ae91db763ea702b415ee534152247f Mon Sep 17 00:00:00 2001 From: Jaap Marsman Date: Sun, 6 Nov 2022 16:22:55 +0800 Subject: [PATCH] fixed addon plugin not loading - began drafting an update checker function --- godot/Results.gd | 2 +- .../HTML5FileExchange/HTML5FileExchange.gd | 0 godot/{Addons => addons}/HTML5FileExchange/plugin.cfg | 0 godot/{Addons => addons}/HTML5FileExchange/plugin.gd | 0 godot/main_screen.gd | 8 ++++++++ 5 files changed, 9 insertions(+), 1 deletion(-) rename godot/{Addons => addons}/HTML5FileExchange/HTML5FileExchange.gd (100%) rename godot/{Addons => addons}/HTML5FileExchange/plugin.cfg (100%) rename godot/{Addons => addons}/HTML5FileExchange/plugin.gd (100%) diff --git a/godot/Results.gd b/godot/Results.gd index 31714c3..e73196e 100644 --- a/godot/Results.gd +++ b/godot/Results.gd @@ -7,7 +7,7 @@ onready var global_ints = $"/root/GlobalInts" func _ready(): pass -func _process(delta): +func _process(_delta): # $"%SaveReport".visible = true # $"%BackMainMenu".visible = true pass diff --git a/godot/Addons/HTML5FileExchange/HTML5FileExchange.gd b/godot/addons/HTML5FileExchange/HTML5FileExchange.gd similarity index 100% rename from godot/Addons/HTML5FileExchange/HTML5FileExchange.gd rename to godot/addons/HTML5FileExchange/HTML5FileExchange.gd diff --git a/godot/Addons/HTML5FileExchange/plugin.cfg b/godot/addons/HTML5FileExchange/plugin.cfg similarity index 100% rename from godot/Addons/HTML5FileExchange/plugin.cfg rename to godot/addons/HTML5FileExchange/plugin.cfg diff --git a/godot/Addons/HTML5FileExchange/plugin.gd b/godot/addons/HTML5FileExchange/plugin.gd similarity index 100% rename from godot/Addons/HTML5FileExchange/plugin.gd rename to godot/addons/HTML5FileExchange/plugin.gd diff --git a/godot/main_screen.gd b/godot/main_screen.gd index 0b934ef..ce6e1f4 100644 --- a/godot/main_screen.gd +++ b/godot/main_screen.gd @@ -11,6 +11,13 @@ onready var date_time_display = $"%CurrentTime" onready var global_ints = $"/root/GlobalInts" onready var minute_label = $"StartScreen/InstructionPanel/MinuteBox/MinuteLabel" +func check_for_updates(): + var os_check : String + os_check = OS.get_name() + print(os_check) + if os_check == "X11" and "Windows" and "Mac": + print("We're on desktop. So let's check for updates!") + func refresh_descriptors(): $"%1Acronym".text = global_ints.one_acronym $"%1AcronymE".text = $"%1Acronym".text @@ -58,6 +65,7 @@ func _ready(): global_ints.date = OS.get_date() global_ints.ddmmyyyy = str(global_ints.date.day, "-", global_ints.date.month, "-", global_ints.date.year) + check_for_updates() func _process(_delta): check_time_var += 1