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