From ba3634b3cc0bba44cb7b806d0938b7b7496fbda1 Mon Sep 17 00:00:00 2001 From: Eneko Nieto Date: Sat, 6 Sep 2025 01:37:28 +0200 Subject: [PATCH] fix(item_count): closes #122 --- .../esc_item_with_tooltip.gd | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/addons/escoria-ui-return-monkey-island/esc_item_with_tooltip.gd b/addons/escoria-ui-return-monkey-island/esc_item_with_tooltip.gd index 6bb72374..bb8109a0 100644 --- a/addons/escoria-ui-return-monkey-island/esc_item_with_tooltip.gd +++ b/addons/escoria-ui-return-monkey-island/esc_item_with_tooltip.gd @@ -51,7 +51,9 @@ func set_custom_data(data: Dictionary) -> void: ESCItemCountManager.new().updateSprite(self) func _get_inventory_texture_hovered() -> Texture2D: - if inventory_texture_hovered == null: + if custom_data.has("count"): + return inventory_texture + elif inventory_texture_hovered == null: return _get_inventory_texture() else: - return inventory_texture_hovered \ No newline at end of file + return inventory_texture_hovered