Hi, so I have some code that will select some buttons in a group and when that button is pressed stuff happen, but the hting is, I have a dictionary that the keys have the names of the buttons. So when I try to edit the dictionary with the button using the code from before, it doesn't get the name it gets the id of the button
here is my code
func _ready():
for button in get_tree().get_nodes_in_group("Wheats"):
button.connect("pressed", self, "_some_button_pressed", [button])
func _some_button_pressed(button):
#the "button" is the id of the said button, not the name
print(Main.WheatDict)
Main.WheatDict[button] = true
yield(get_tree(). create_timer(Main.WheatTimer), "timeout")
button.disabled = false
Main.WheatDict[button] = false