refactor(ui): table cards parent from TableLabel to TableCardRoot
This commit is contained in:
@@ -157,7 +157,7 @@ func _show_table_cards(cards: Array[Card]) -> void:
|
|||||||
var node := CARD_NODE_SCENE.instantiate() as CardNode
|
var node := CARD_NODE_SCENE.instantiate() as CardNode
|
||||||
if node == null:
|
if node == null:
|
||||||
continue
|
continue
|
||||||
table_label.add_child(node)
|
table_card_root.add_child(node)
|
||||||
node.setup(card)
|
node.setup(card)
|
||||||
node.position = Vector2(start_x + i * 60, 80)
|
node.position = Vector2(start_x + i * 60, 80)
|
||||||
node.custom_minimum_size = Vector2(55, 80)
|
node.custom_minimum_size = Vector2(55, 80)
|
||||||
|
|||||||
Reference in New Issue
Block a user