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

14 lines
274 B
GDScript

extends HBoxContainer
signal select_pressed( slot )
signal delete_pressed( slot )
var slot = null
var creature_filename = null
func _on_select_pressed():
emit_signal( "select_pressed", self.slot )
func _on_delete_pressed():
emit_signal( "delete_pressed", self.slot )