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