Files
ss14-wl/Content.Shared
paige404 2e7f01b99e Fix broken layer hiding on clothes with multiple equipment slots (#34080)
* Fix broken layer hiding on clothes with multiple equipment slots

* Refactor ToggleVisualLayers, HideLayerClothingComponent, and ClothingComponent to allow more
precise layer hide behavior and more CPU efficient layer toggling.

* Adjust HumanoidAppearaceSystem to track which slots are hiding a given layer (e.g. gas mask and welding mask)
Add documentation
Change gas masks to use the new HideLayerClothingComponent structure as an example of its usage

* Fix the delayed snout bug

* Misc cleanup

* Make `bool permanent` implicit from SlotFlags

any non-permanent visibility toggle with `SlotFlags.None` isn't supported with how its set up. And similarly, the slot flags argument does nothing if permanent = true. So IMO it makes more sense to infer it from a nullable arg.

* Split into separate system

Too much pasta

* Remove (hopefully unnecessary) refresh

* Fisk mask networking

AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA

* Keep old behaviour, use clearer names?

I'm just guessing at what this was meant to do

* english

* Separate slot name & flag

* dirty = true

* fix comment

* Improved SetLayerVisibility with dirtying logic suggested by @ElectroJr

* Only set mask toggled if DisableOnFold is true

* FoldableClothingSystem fixes

* fix bandana state

* Better comment

---------

Co-authored-by: ElectroJr <leonsfriedrich@gmail.com>
2025-03-21 00:30:47 +11:00
..
2024-08-18 12:22:36 -04:00
2024-07-08 00:27:52 +10:00
2024-07-01 02:20:57 +10:00
2025-01-27 11:34:20 +01:00
2025-03-12 19:48:45 +01:00
2024-08-25 22:18:42 +10:00
2025-03-09 21:50:24 +01:00
2025-03-15 09:24:23 -07:00
2024-03-24 16:33:45 +11:00
2024-07-13 16:09:19 +10:00
2024-07-29 19:48:28 -07:00
2024-08-28 10:57:12 +10:00
2025-03-19 19:15:44 -07:00
2023-09-11 18:42:38 -07:00
2024-08-16 11:43:54 +10:00
2025-02-14 16:46:25 +01:00
2023-10-10 16:41:11 -07:00
2025-01-30 14:15:01 +01:00
2024-07-22 14:07:31 -07:00
2023-11-14 19:23:40 -07:00
2025-03-13 10:09:07 -07:00
2024-08-31 10:40:28 -04:00
2025-03-07 14:51:08 +01:00
2025-03-07 14:51:08 +01:00
2023-12-28 13:11:50 +00:00
2025-02-17 01:58:40 -05:00
2025-02-27 20:11:57 +01:00
2024-08-04 13:31:45 +10:00
2024-06-09 15:18:54 -04:00
2025-03-13 01:44:05 +03:00
2024-09-07 00:05:53 +10:00
2025-01-27 11:34:20 +01:00
2024-02-15 16:26:45 -08:00
2024-11-14 11:08:35 -06:00
2024-08-25 22:18:42 +10:00
2025-01-02 19:23:28 +01:00
2024-09-01 22:33:25 -06:00
2025-03-12 19:48:45 +01:00
2024-08-25 22:18:42 +10:00
2024-06-05 10:32:58 +03:00
2025-03-07 14:51:08 +01:00
2025-02-11 18:30:24 +01:00
2024-05-12 17:07:54 +02:00
2024-08-09 09:36:15 +10:00
2024-01-27 08:51:24 -05:00
2024-08-28 10:57:12 +10:00
2024-04-28 21:38:23 -07:00
2024-08-10 11:08:56 +10:00
2025-02-18 23:27:30 +11:00
2024-08-28 10:57:12 +10:00