Skip to content

Commit

Permalink
fix: ignores mouse enter events for non-actionable items (i.e. non-in…
Browse files Browse the repository at this point in the history
…teractive or not active)
  • Loading branch information
BHSDuncan authored and StraToN committed Aug 24, 2022
1 parent 6c4b261 commit 210f0d2
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions addons/escoria-core/game/esc_inputs_manager.gd
Original file line number Diff line number Diff line change
Expand Up @@ -294,6 +294,14 @@ func _on_mouse_exited_inventory_item() -> void:
#
# - item: The Escoria item hovered
func _on_mouse_entered_item(item: ESCItem) -> void:
if not escoria.action_manager.is_object_actionable(item.global_id):
escoria.logger.debug(
self,
"Ignoring mouse entering item %s." % [item.global_id]
)

return

escoria.logger.info(
self,
"Item focused: %s" % item.global_id
Expand Down

0 comments on commit 210f0d2

Please sign in to comment.