12 lines
273 B
GDScript
12 lines
273 B
GDScript
class_name HintRow
|
|
extends HBoxContainer
|
|
|
|
@onready var icon : TextureRect = %Icon
|
|
@onready var label : Label = %Label
|
|
|
|
func setup(hint : Hint) -> void:
|
|
var tex := ControllerIconTexture.new()
|
|
tex.path = String(hint.action)
|
|
icon.texture = tex
|
|
label.text = tr(hint.label)
|