mirror of
https://github.com/Relintai/pandemonium_engine.git
synced 2024-12-25 05:07:12 +01:00
14 lines
222 B
GDScript3
14 lines
222 B
GDScript3
|
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), id)
|
||
|
|
||
|
|