feat: implemented interaction tooltips
This commit is contained in:
parent
34db607145
commit
2511ac69c0
7 changed files with 44 additions and 15 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue