Fix: discard non interactive items from hovering when they are hidden

Change: set default debug level to DEBUG (was TRACE previously)
This commit is contained in:
Julian Murgia
2022-11-23 00:41:10 +01:00
committed by Duncan Brown
parent 79997eaed2
commit 29371ef936

View File

@@ -185,9 +185,14 @@ func unset_hovered_node(item: ESCItem):
if _hovered_element == item: if _hovered_element == item:
_hovered_element.mouse_exited() _hovered_element.mouse_exited()
_hovered_element = null _hovered_element = null
if hover_stack.back():
set_hovered_node(hover_stack.pop_back())
else:
hotspot_focused = "" hotspot_focused = ""
# Sets the hovered node and calls its mouse_entered() method if it was the top # Sets the hovered node and calls its mouse_entered() method if it was the top
# most item in hover_stack. # most item in hover_stack.
# #
@@ -607,6 +612,7 @@ func hover_stack_add_item(item):
# - items: the items list (array) to add to the hover stack # - items: the items list (array) to add to the hover stack
func hover_stack_add_items(items: Array): func hover_stack_add_items(items: Array):
for item in items: for item in items:
if escoria.action_manager.is_object_actionable(item.global_id):
hover_stack_add_item(item) hover_stack_add_item(item)