khanat-client/scenes/interfaces/creatures_menu/creature_box.gd

15 lines
274 B
GDScript3
Raw Normal View History

2020-03-21 09:10:26 +00:00
extends HBoxContainer
signal select_pressed( slot )
signal delete_pressed( slot )
var slot = null
var creature_filename = null
func _on_select_pressed():
2021-01-21 21:03:44 +00:00
emit_signal( "select_pressed", self.slot )
2020-03-21 09:10:26 +00:00
func _on_delete_pressed():
2021-01-21 21:03:44 +00:00
emit_signal( "delete_pressed", self.slot )