[1.6.0] - 2025-09-08
Added
- Handheld Tank Display: Show tank information for tools held in your main hand (#4)
- Dual Tank View: Display both chest armor and handheld item tanks simultaneously
- Smart Positioning: Automatic layout adjustment to prevent screen clipping in all overlay positions
- Enhanced Tooltips: Separate sections for chest and handheld items with improved visual hierarchy
- Position-Aware Rendering: Tool tank renders on left for RIGHT positions, items render above tanks for BOTTOM positions
- Configurable Padding: 16-pixel padding for right-side positions to prevent clipping
- New TankDataManager Methods: Added
isHoldingFuelCapableItem()
andisHoldingWaterCapableItem()
for handheld item detection
Changed
- Tooltip System: Enhanced with multi-item support and color-coded sections
- Overlay Positioning: Removed CENTER position option, focusing on corner positions for better UX
- Default Opacity: Increased from 75% to 80% for better visibility
- Default Position: Changed from CENTER to TOP_LEFT for consistency
- Sprite Rendering: Improved dual tank rendering system with independent fuel/water level calculations
Improved
- Visual Layout: Better spacing and organization in tooltip display
- Performance: Optimized rendering pipeline for dual tank displays
- Code Organization: Refactored rendering logic into separate methods for maintainability
- User Experience: Smart detection prevents unnecessary HUD elements when items aren't tank-capable
Technical
- Backward Compatibility: All existing chest-only functionality maintained
- Scale Awareness: Padding calculations respect sprite scale factor
- Memory Efficiency: Optimized sprite rendering with reduced redundant calculations
NEW
- 'Simple' version of information read out represented as a tank
- tank displays individual levels respective to fuel and water
- README file actually explaining the mod
- MIT License added
- New config for changing simple/detailed views for fuel and water levels
- New logo!
FIXED/OPTMISATIONS
- Enable/disable bound to 'O' but can be changed in config