feat: implemented interaction tooltips

This commit is contained in:
Sara 2025-08-11 15:33:31 +02:00
parent 34db607145
commit 2511ac69c0
7 changed files with 44 additions and 15 deletions

View file

@ -6,6 +6,11 @@ radius = 0.1282442
[sub_resource type="GDScript" id="GDScript_kl827"]
script/source = "extends Interactable
func _highlight_changed(_interactor: PlayerInteractor, value: bool) -> void:
var hud := HeadsUpDisplay.get_singleton()
if hud:
hud.set_tooltip(\"Pick up Demolition Pack\" if value else \"\")
func _activated(interactor: PlayerInteractor) -> void:
interactor.pickup_demo_pack()
get_owner().queue_free()