fix highlight

This commit is contained in:
2023-08-27 18:02:59 +02:00
parent 9015186b5a
commit 2cc01f0326

View File

@@ -197,6 +197,9 @@ func _process_input(event: InputEvent, is_default_state: bool) -> bool:
elif event.is_action_pressed(ESC_UI_CHANGE_VERB_ACTION):
escoria.logger.error("Someone invoked ESC_UI_CHANGE_VERB_ACTION:", [event.as_text()])
return true
#elif event is InputEventAction:
# event.is_action_pressed("ui_show_hints")
# escoria.main.current_scene.get
return false
@@ -245,9 +248,9 @@ func element_focused(element_id: String) -> void:
func element_unfocused() -> void:
$tooltip_layer/tooltip.set_target("")
$tooltip_layer/tooltip.set_target_object(null)
#if(last_target != null)
last_target.highlight(false)
last_target = null
if(last_target != null):
last_target.highlight(false)
last_target = null