41 lines
636 B
GDScript
41 lines
636 B
GDScript
extends HBoxContainer
|
|
|
|
signal select_pressed( slot )
|
|
signal delete_pressed( slot )
|
|
signal down_pressed( slot )
|
|
signal up_pressed( slot )
|
|
|
|
var slot = null
|
|
var music_filename = null
|
|
|
|
|
|
func enable_up():
|
|
$up.disabled = false
|
|
|
|
|
|
func disable_up():
|
|
$up.disabled = true
|
|
|
|
|
|
func enable_down():
|
|
$down.disabled = false
|
|
|
|
|
|
func disable_down():
|
|
$down.disabled = true
|
|
|
|
|
|
func _on_select_pressed():
|
|
emit_signal( "select_pressed", self.slot )
|
|
|
|
|
|
func _on_delete_pressed():
|
|
emit_signal( "delete_pressed", self.slot )
|
|
|
|
|
|
func _on_down_pressed():
|
|
emit_signal( "down_pressed", self.slot )
|
|
|
|
|
|
func _on_up_pressed():
|
|
emit_signal( "up_pressed", self.slot )
|