File Details
MidnightViewport 1.4.0.zip
- R
- Feb 3, 2026
- 1.06 MB
- 47
- 12.0.1+1
- Retail
File Name
MidnightViewport 1.4.0.zip
Supported Versions
- 12.0.1
- 12.0.0
# v1.4.0 - Texture Rotation & Enhanced UI
### Major Features
- **Texture Rotation System**:
- Individual rotation control for each viewport edge (top, bottom, left, right)
- Rotation options: 0°, 90°, 180°, 270°
- Works with all display modes (stretch, tile, center)
- Rotation settings saved per profile
- **Enhanced Options UI**:
- Three-column layout: Textures | Display Modes | Rotation
- Improved spacing and alignment throughout options panel
- Removed scroll frame for cleaner interface
- Fixed anchor points for consistent positioning
- Standardized vertical spacing (-6px) for all artwork rows
- **Advanced Pack Discovery System**:
- Auto-discovery of texture packs from addon folders
- Intelligent texture variant detection and grouping
- Support for numbered texture sets (texture1, texture2, etc.)
- Enhanced texture library with base name analysis
- `MidnightViewportRegisterPack()` function for external pack registration
### Technical Improvements
- **Rotation Implementation**:
- Proper dimension swapping for 90°/270° rotations in stretch mode
- Rotation applied to individual tiles in tile mode
- Radian conversion for accurate rotation rendering
- Profile system extended with rotation fields
- **UI Architecture**:
- Direct panel parenting (removed scroll infrastructure)
- Fixed color button anchoring at 150px offset
- Consistent dropdown spacing across all columns
- Optimized layout for 650x680 panel size
- **Texture Pack System**:
- `analyzeTextureVariants()` - Extracts base names and variant counts
- `ensureBuiltInPacks()` - Fallback for default texture sets
- Auto-loads Textures.lua manifests from texture pack addons
- Support for SunnArtPackDarkWall, SunnArtPack5, MidnightViewportExtra
### Bug Fixes
- Fixed stretch mode not adjusting dimensions when rotated 90°/270°
- Added missing rotation support to tile mode textures
- Corrected color button alignment issues
- Fixed profile management to save/load rotation settings

