mirror of
https://github.com/git-learning-game/oh-my-git.git
synced 2024-11-20 16:20:18 +01:00
Quick fix for images on cards
This commit is contained in:
parent
e07f643037
commit
41a02f27e2
2 changed files with 5 additions and 5 deletions
|
@ -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( )
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue