24 lines
565 B
GDScript3
24 lines
565 B
GDScript3
|
extends HBoxContainer
|
||
|
|
||
|
|
||
|
signal del_pressed( command, control, eventInput )
|
||
|
|
||
|
var command:String
|
||
|
var eventInput
|
||
|
|
||
|
func set_param( command:String, control:String, param_comment:String, eventInput ):
|
||
|
self.command = command
|
||
|
$Label.text = control
|
||
|
self.eventInput = eventInput
|
||
|
if param_comment.length() > 0:
|
||
|
$Comment.text = param_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 )
|