OpenTPW

UI-086: Restore map object layer colors#

Status and scope#

The first bounded implementation replaces the default fill of live placed-object cells with the original repair ramp. It retains the current category filters, geometry, clipping and later host overlays. UI-086 remains open; this is neither a full implementation of the native map nor a pixel-parity claim. The October 18 plan-only progress fragment remains historical; this maintained proposal records the new scope.

Verified default repair contract#

Runtime implementation#

ParkMapPalette.RepairFill converts the host double back to the original stored-float domain before truncation. Nonfinite or outside-supported-int stored values return no color. Bounds are compared as doubles, so int.MaxValue cannot round upward to an accidentally accepted float value. The supported integer conversion takes the low byte before the gradient clamp, including wrapping negative values. Malformed-input fallback is host robustness, not a claim to reproduce undefined x87 behavior.

ParkMapView.ObjectFill requires a writable current level, an identical current Status/level.Park economy, the exact OriginalObject binding and matching state Id and InfoId. It reads the live repair on each draw. Missing, read-only, mismatched or malformed state retains the previous exact (207,67,198,235) fill; no catalogue default or invented healthy value is substituted. Deleted/removed objects are still excluded by the existing draw enumeration. The shared LiveState helper is unchanged.

Validation and evidence limits#

Remaining UI-086 work#

Native value modes 2/3 call excitement 0x4e0860 and satisfaction 0x4e1e30 before ordinary category gating for applicable cell classes. Their controls and land modes, exact cell-class/track priority, track pass 0x5f2fd0, open-status neighbor outlines and style argument 8, item dots and original footprints (0x5f44d0) remain unresolved/incomplete. Existing independent host metric toggles do not implement that native dispatch and have not been relabeled as native behavior. Real-data captures and an original rendered comparison remain outstanding. No approximation ID is retired by this slice.

Ownership and completion gate#

The existing UI-086 proposal PR owns these map changes. Independent source review and full required CI for the exact published head must precede merge. Other active implementations are not dependencies or alternate publication lanes. Historical progress fragments must not be rewritten.

Source: docs/proposals/ui-086-restore-map-object-layer-colors.md in the project repository.