Add install flow

This commit is contained in:
2023-06-04 13:52:57 +02:00
parent a532b94422
commit 562e50b3c9
7 changed files with 156 additions and 17 deletions

View File

@@ -0,0 +1,13 @@
extends Button
@export var game: String
func _ready():
if FileAccess.file_exists("user://%s.pck" % game):
text = ""
else:
text = "⚠️"
func _pressed():
if !FileAccess.file_exists("user://%s.pck" % game):
get_tree().change_scene_to_file("res://installer.tscn")