set debug label in grid update

This commit is contained in:
Jack Case
2025-08-23 19:43:43 -04:00
parent 0a860c7a5d
commit 3ac0ad8bbb

View File

@@ -34,7 +34,6 @@ func _ready():
var token_node: Token = token.instantiate()
add_child(token_node)
token_node.set_type(randi_range(0,3) as Token.token_type)
token_node.set_debug_label(str(row) + "," + str(column))
#token_node.token_hovered.connect(_on_token_hovered.bind([row,column]))
grid[row].append(token_node)
@@ -110,6 +109,8 @@ func redraw_grid():
if current_token == null:
continue
current_token.set_debug_label(str(row) + "," + str(column))
current_token.position = Vector2(offset*column, offset*row)