24 lines
547 B
GDScript3
24 lines
547 B
GDScript3
|
extends HBoxContainer
|
||
|
|
||
|
|
||
|
signal del_pressed( command, control, eventInput )
|
||
|
|
||
|
var command:String
|
||
|
var eventInput
|
||
|
|
||
|
func set_param( command:String, control:String, comment:String, eventInput ):
|
||
|
self.command = command
|
||
|
$label.text = control
|
||
|
self.eventInput = eventInput
|
||
|
if comment.length() > 0:
|
||
|
$comment.text = comment
|
||
|
$empty.visible = false
|
||
|
$comment.visible = true
|
||
|
else:
|
||
|
$comment.text = ""
|
||
|
$empty.visible = true
|
||
|
$comment.visible = false
|
||
|
|
||
|
func _on_del_pressed():
|
||
|
emit_signal( "del_pressed", self.command, $label.text, self.eventInput )
|