Merge branch 'main' of git.fosil.eu:gymkhana/gymkhana

This commit is contained in:
2025-09-06 03:57:22 +02:00

View File

@@ -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
return inventory_texture_hovered