Did't understand

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Jarle

Hi I didn’t quite get what you suggested. I will set up the code I use to populate the OptionButton as a dropdown list and this works well.

  extends OptionButton
#Called when the node enters the scene tree for the first time.
func _ready():
	var riga = []
	var csv=File.new()
	csv.open("res://Fart.csv",File.READ)
	riga=csv.get_csv_line(";")

#	var DictParms:Dictionary
	while not csv.eof_reached():
			for item in riga:
				add_item(item)
			riga=csv.get_csv_line(";")
			
pass

I’ve got 20 OptionButtons set as dropdown and only one RichTextLabel that should take the selected dropdown text in each OptionButton and merge it to the RichTextLabel.

Where is your code about the signal?
“func _on_OptionButton_item_selected(_index)”

nightrobin | 2021-02-26 23:28