mirror of
https://github.com/Theaninova/mhlib.git
synced 2025-12-11 03:56:18 +00:00
14 lines
278 B
GDScript
14 lines
278 B
GDScript
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")
|