Releases: NilaierMusic/EnhancedIcons
Releases · NilaierMusic/EnhancedIcons
Enhanced Icons 1.0.2
- Added support for custom item icons in the inventory:
- The mod now attempts to load custom icons for items based on their item name.
- Custom icons are loaded from embedded resources within the mod assembly.
- The resource path for custom icons follows the format "EnhancedIcons.image.{itemName}.png".
- If a custom icon is found, it replaces the default item icon in the inventory.
- Implemented caching mechanism for loaded custom icons:
- Custom icons are cached using a ConcurrentDictionary to improve performance.
- Subsequent requests for the same item icon will retrieve it from the cache instead of loading it again.
- Added fallback to the original icon if a custom icon is not found:
- If a custom icon is not found for an item, the mod now falls back to using the original icon.
- This ensures that the inventory always displays an icon for each item, even if a custom icon is missing.
- Improved error handling and logging:
- Added more detailed error logging when loading custom icons.
- If a custom icon is not found, an error message is logged with the item name.
- If an exception occurs during icon loading, the exception details are logged for easier debugging.
- Removed unnecessary console spam:
- Removed the console error message that was logged when a custom icon was not found for an item.
- This reduces console spam and improves clarity in the logs.
- Added custom icons for "Beehive" and "Player Body" items:
- Included custom icons for the "Beehive" and "Player Body" items.
- These icons are embedded as resources within the mod assembly.
- Resized icons to have a more consistent size:
- Adjusted the size of the custom icons to maintain a more consistent appearance in the inventory.
Enhanced Icons 1.0.0
Update README.md