|
|
@ -16,6 +16,7 @@ func _init() -> void: |
|
|
|
|
|
|
|
@onready var name_label: Label = $PanelContainer/MarginContainer/VBoxContainer/Name |
|
|
|
@onready var description_label: Label = $PanelContainer/MarginContainer/VBoxContainer/Description |
|
|
|
@onready var position_label: Label = $PanelContainer/MarginContainer/VBoxContainer/Position |
|
|
|
|
|
|
|
var _target: Block |
|
|
|
|
|
|
@ -33,6 +34,7 @@ func hook_target(id: String) -> void: |
|
|
|
var item: ItemResource = DBItems.ref.data[id] |
|
|
|
name_label.text = item.name + " (" + id + ")" |
|
|
|
description_label.text = item.description |
|
|
|
position_label.text = str(_target.position) |
|
|
|
|
|
|
|
visible = true |
|
|
|
|
|
|
|