mirror of
https://github.com/git-learning-game/oh-my-git.git
synced 2025-05-05 05:02:02 +02: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
scenes
|
@ -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…
Add table
Add a link
Reference in a new issue