[Feat] Recoloring / Spray Paint#81
Open
honeyed-lemons wants to merge 13 commits intoTheDenSS14:masterfrom
Open
[Feat] Recoloring / Spray Paint#81honeyed-lemons wants to merge 13 commits intoTheDenSS14:masterfrom
honeyed-lemons wants to merge 13 commits intoTheDenSS14:masterfrom
Conversation
Contributor
|
RSI Diff Bot; head commit b0c89df merging into d3c99b9 Resources/Textures/_DEN/Objects/Tools/spray-paint.rsi
|
Contributor
Author
|
ready for review! Want lots of eyes on this one chat :) |
|
looks like the desaturated shader path is wrong/the shader is missing? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.





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