mirror of
https://github.com/Theaninova/mhlib.git
synced 2025-12-12 20:46:20 +00:00
Add install flow
This commit is contained in:
13
godot/install_status_button.gd
Normal file
13
godot/install_status_button.gd
Normal 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")
|
||||
Reference in New Issue
Block a user