Cards
This commit is contained in:
parent
01457fcb1f
commit
621bcf75cb
10 changed files with 164 additions and 0 deletions
11
cards/card.gd
Normal file
11
cards/card.gd
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
extends TextureRect
|
||||
|
||||
class_name Card
|
||||
|
||||
@export var card_resource: CardResource
|
||||
|
||||
func _ready() -> void:
|
||||
$UnitPreview.texture = card_resource.preview
|
||||
texture = card_resource.background
|
||||
$CostBubble/Cost.text = str(card_resource.cost)
|
||||
$ExperimentalBadge.visible = card_resource.experimental
|
||||
Loading…
Add table
Add a link
Reference in a new issue