1
0
mirror of https://github.com/Relintai/broken_seals.git synced 2025-01-01 01:37:12 +01:00
broken_seals/game/addons/Godoxel/MenuButtonExtended.gd

14 lines
222 B
GDScript3
Raw Normal View History

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)