space-wizards / space-station-14

A multiplayer game about paranoia and chaos on a space station. Remake of the cult-classic Space Station 13.
https://spacestation14.io
MIT License
2.71k stars 3.42k forks source link

Togglable Clothing #6845

Open Fishfish458 opened 2 years ago

Fishfish458 commented 2 years ago

Description

Right now there's two versions of every soft hat, facing forward and backward. There should a component to be able to swap between these two states.

This also affects lab coats, birthday cake hats, surgical masks and any other clothing with different appearances

Peptide90 commented 10 months ago

To add some context now. We have ToggleableClothing which allows for attaching extra clothing to an existing clothing item when used. E.g. hardsuit helmets, hoods etc.

Breathmask component is used for masks, not sure if it toggles the sprite or not.

This leaves things like outerClothing and anything that has an additional state. Ideally we need a toggleStateOnUse component or something so we can have open lab coats, reversed hats, capes over the front or back only etc. Ready to be corrected if this exists in some form but we have new PRs being made without this functionality. See #23563

Emisse commented 10 months ago

Breathmasks toggleable state should be split out of breath mask component and made into a toggleable state for hat flipping/coat buttoning.