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

View file

@ -5,7 +5,7 @@ platform="Linux/X11"
runnable=true
custom_features=""
export_filter="all_resources"
include_filter="levels/*, scripts/*, resources/*, cards/*"
include_filter="levels/*, scripts/*, resources/*, cards/*
exclude_filter="dependencies/*, cache/*"
export_path=""
patch_list=PoolStringArray( )

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