mirror of
https://github.com/Relintai/GraphicsEditor.git
synced 2025-02-19 15:54:23 +01:00
12 lines
216 B
GDScript
12 lines
216 B
GDScript
tool
|
|
extends MenuButton
|
|
|
|
var popup = get_popup()
|
|
signal item_pressed
|
|
|
|
func _ready():
|
|
popup.connect("id_pressed", self, "id_pressed")
|
|
|
|
func id_pressed(id):
|
|
emit_signal("item_pressed", name, popup.get_item_text(id))
|