[Feat] Recoloring / Spray Paint#81
Conversation
|
RSI Diff Bot; head commit 9e781f4 merging into f0058c1 Resources/Textures/_DEN/Objects/Tools/spray-paint.rsi
|
|
ready for review! Want lots of eyes on this one chat :) |
|
looks like the desaturated shader path is wrong/the shader is missing? |
portfiend
left a comment
There was a problem hiding this comment.
First wave of review comments
portfiend
left a comment
There was a problem hiding this comment.
Magic spray paint does not save its color
|
Other things:
|
|
okay: |
portfiend
left a comment
There was a problem hiding this comment.
sorry for doin these reviews so piecemeal
|
false test fail, can i get a rerun? |
|
all tests passed, I believe that was the hold up? can this be merged @portfiend ? |





About the PR
Added spray paint and the systems regarding it!
Why / Balance
Recoloring and painting things is fun!!! It's great for RP and mapping, and this system specifically can be used to have loads of different recoloring systems, like say, dye or loadout items being recolored!
Technical details
Adds the
RecolorSystem, and multiple components and systems relating to it.RecoloredComponentandRecolorSystemhandles recolored entities.RecolorApplierComponentandRecolorSystem.Applierhandles recolor appliers (think spray paint)RecolorRemoverComponentandRecolorSystem.Removerhandles recolor removers (think soap)Then there's a bunch of misc systems for ui and such.
The way recoloring is handled is quite simple:
Recolored component stores
RecolorData, which contains the color, shaders, etc for the entity to recolor toRecolorVisualizerSystemtakes that information and applies it to the sprite, be it equipment, inhands, or just a regular old sprite. (I had to do it in three different fucking ways because the way sprites work sucks)Do note however that removing recoloring does NOT restore original shaders or colors because sprite component is CLIENT ONLY AND I CANT GET THE DATA!!!!!!!!!
Media
https://cdn.discordapp.com/attachments/1449349771889348699/1486180856216289542/2026-03-24_21-49-47.mp4?ex=69c49148&is=69c33fc8&hm=32f459f4117dd19f895246603658a828c6c67a828666533c46d8dac2a8507478&
Requirements
Licensing
Breaking changes
N/A
Changelog
🆑 honeyed-lemons, portfiend