hello, so uh, im trying to make a dropdown menu for my game and using this video here
https://godotdevelopers.org/forum/discussion/17966/beginner-optionbutton-dropdown-interaction-gui-in-godot-engine/p1
as reference.
But it gave me an invalid call.nonexistent function error.
here's the code :
extends Control
export (NodePath) var DropDown_path
onready var DropDown = get_node(DropDown_path)
func _ready():
add_items()
#add item to drop down menu
func add_items():
DropDown.add_items("option 1")
DropDown.add_items("option 2")
DropDown.add_items("option 3")
DropDown.add_items("option 4")
from my understanding godot doesn't recognize the add_items function but it works just fine on the video,
maybe someone can give me a bit of insight ?
thank you a lot.