Skip to content

feat(lights, sirens): add universal color_off support for sirens, lights, and materials - #345

Open
CanerKaraca23 wants to merge 1 commit into
user-grinch:mainfrom
CanerKaraca23:feat/lights-universal-color-off
Open

CanerKaraca23 wants to merge 1 commit into
user-grinch:mainfrom
CanerKaraca23:feat/lights-universal-color-off

Conversation

@CanerKaraca23

Copy link
Copy Markdown
Collaborator

Summary

Extends the per-vehicle color_off material and JSON configuration capability across all siren lights, vehicle lights, and material types.

Key Changes

  • Siren Lights color_off: Allows siren points and dummy definitions in vehicle JSON configs to specify custom color_off values (hex #RRGGBB or RGB array/object).
  • Universal Off-State Color Resolution: Updates LightManager::GetMaterialColor (src/features/lights/manager.cpp) and Sirens (src/features/sirens.cpp) to resolve custom off-colors for sirens, taillights, brakelights, indicators, fog lights, spotlights, and strobes.
  • Graceful Fallback: Preserves default unlit material color when no explicit color_off is configured.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant