feat(outline): outline targets when using item and pressing shift key
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user