Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
Blockyheadman authored Feb 14, 2023
1 parent e763cb7 commit bf2aa93
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 4 deletions.
8 changes: 6 additions & 2 deletions scenes/Home.tscn
Original file line number Diff line number Diff line change
Expand Up @@ -310,9 +310,13 @@ margin_bottom = -5.80002

[node name="Label" type="Label" parent="Changelog/ScrollContainer"]
margin_right = 310.0
margin_bottom = 1053.0
margin_bottom = 1149.0
size_flags_horizontal = 3
text = "Version 0.4.2:
text = "Version 0.4.3:
* Changed Firebase keys.
* Minimal Increased performance.
Version 0.4.2:
* Fixed version checker update bug.
Version 0.4.1:
Expand Down
2 changes: 1 addition & 1 deletion scripts/GLOBAL.gd
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ extends Node

var verMajor = 0
var verMinor = 4
var verRev = 2
var verRev = 3
var gameVersion = str(verMajor) + "." + str(verMinor) + "." + str(verRev)
var onlineGameVersion
var onlineVerMajor
Expand Down
6 changes: 5 additions & 1 deletion scripts/Home.gd
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ extends Control
var disableClikcerButton = false

func _ready():
$Leaderboards.queue_free()
$LeaderboardsButton.queue_free()
if Global.seenUpdateWarning == false:
check_for_updates()

Expand Down Expand Up @@ -134,7 +136,8 @@ func _on_RefreshScores_pressed():

func check_for_updates():
var http_request = HTTPRequest.new()
add_child(http_request)
add_child(http_request, true)
http_request.name = "UpdateChecker"
http_request.connect("request_completed", self, "_http_request_completed")

http_request.request("https://raw.githubusercontent.com/Blockyheadman/Clikcer/main/game-version.json")
Expand Down Expand Up @@ -168,6 +171,7 @@ func _http_request_completed(result, response_code, headers, body):
else:
if OS.has_feature("debug"):
OS.alert("Response Code " + str(response_code) + "\nCannot find.")
get_node("UpdateChecker").queue_free()

func _on_Upgrades_pressed():
$ClikcerSFX.play(0)
Expand Down

0 comments on commit bf2aa93

Please sign in to comment.