- Edited
HI,
I need to connect my OptinoButton nodes to item_select signal, by GDScrip 4.
For Button is present the example code on official documentation:
button.pressed.connect(self._button_pressed)
In my case I neeed something like:
myoptionbuttn.??????.connect(self._on_option_button_item_selected)
func _on_option_button_item_selected(index):
print(index)
I also need to pass a custom param to my _on_option_button_item_selected
thanks for the replies.