feat(outline): outline targets when using item and pressing shift key

This commit is contained in:
2025-09-06 00:14:17 +02:00
parent 7a113bf151
commit 8fed526fd2
2 changed files with 12 additions and 7 deletions

View File

@@ -36,6 +36,12 @@ func _process(_delta: float):
func _input(event):
if event.is_action_pressed("ui_show_hints") and escoria.current_state == escoria.GAME_STATE.DEFAULT:
highlight(true)
if escoria.action_manager.action_state == escoria.action_manager.ACTION_INPUT_STATE.AWAITING_TARGET_ITEM:
var item = get_parent()
var current_tool_id = escoria.action_manager.current_tool.global_id
if item.action3_target_texts.get(current_tool_id) or item.action4_target_texts.get(current_tool_id):
highlight(true)
else:
highlight(true)
elif (event.is_action_released("ui_show_hints")):
highlight(false)