Quick fix for images on cards

This commit is contained in:
blinry 2021-01-18 14:14:08 +01:00
parent e07f643037
commit 41a02f27e2
2 changed files with 5 additions and 5 deletions
scenes

View file

@ -104,10 +104,10 @@ func set_id(new_id):
id = new_id
var art_path = "res://cards/%s.svg" % new_id
var file = File.new()
if file.file_exists(art_path):
var texture = load(art_path)
if texture:
$Image.texture = texture
#if file.file_exists(art_path):
var texture = load(art_path)
if texture:
$Image.texture = texture
func move_back():
position = _home_position