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
|
runnable=true
|
||||||
custom_features=""
|
custom_features=""
|
||||||
export_filter="all_resources"
|
export_filter="all_resources"
|
||||||
include_filter="levels/*, scripts/*, resources/*, cards/*"
|
include_filter="levels/*, scripts/*, resources/*, cards/*
|
||||||
exclude_filter="dependencies/*, cache/*"
|
exclude_filter="dependencies/*, cache/*"
|
||||||
export_path=""
|
export_path=""
|
||||||
patch_list=PoolStringArray( )
|
patch_list=PoolStringArray( )
|
||||||
|
|
|
@ -104,10 +104,10 @@ func set_id(new_id):
|
||||||
id = new_id
|
id = new_id
|
||||||
var art_path = "res://cards/%s.svg" % new_id
|
var art_path = "res://cards/%s.svg" % new_id
|
||||||
var file = File.new()
|
var file = File.new()
|
||||||
if file.file_exists(art_path):
|
#if file.file_exists(art_path):
|
||||||
var texture = load(art_path)
|
var texture = load(art_path)
|
||||||
if texture:
|
if texture:
|
||||||
$Image.texture = texture
|
$Image.texture = texture
|
||||||
|
|
||||||
func move_back():
|
func move_back():
|
||||||
position = _home_position
|
position = _home_position
|
||||||
|
|
Loading…
Reference in a new issue