I have a grid of a lot of buttons, and I'm trying something like this
var button_array = $container.get_children()
for button in range(20):
button_array[button].connect("pressed", self, "function", [button])
func function(button : Button)
button.text = "clicked"
This is not working, and I have no idea why.