add highlight indicator to token

not yet scripted
This commit is contained in:
Jack Case
2025-08-23 09:17:24 -04:00
parent ffb837132b
commit c9c6629132
3 changed files with 28 additions and 13 deletions

View File

@@ -21,7 +21,7 @@ func _ready():
var token_node: Token = token.instantiate()
add_child(token_node)
token_node.position = Vector2(offset*column, offset*row)
token_node.set_type(randi_range(0,3 ))
token_node.set_type(randi_range(0,3) as Token.token_type)
token_node.set_debug_label(str(row) + "," + str(column))
token_node.token_clicked.connect(_on_token_clicked.bind([row,column]))
grid[row].append(token_node)
@@ -33,6 +33,9 @@ func _process(_delta: float) -> void:
func _on_token_clicked(token_coord):
print(str(token_coord) + ", " + str(get_group_of_token(token_coord)))
func highlight_group(group: Array):
pass
func populate_grid():
pass