mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2025-12-09 07:46:20 +00:00
## About The Pull Request ``transparent_protection`` is a set of cover flags which are supposed to be used for things that can be seen, but cannot be accessed. Replaced the argument in ``check_obscured_slots`` with a separate ``check_covered_slots`` proc for clarity. Closes #90827 Also went a bit down a rabbit hole and fixed some UI issues with the strip menu, as I found out that covered slots also counted as obscured. Covered, but not obscured slots are now semi-transparent, images are pixel-perfect, and action buttons no longer are offset. Also slots with items in them don't have the background, akin to how inventory slots function in-game.
35 lines
1.2 KiB
Plaintext
35 lines
1.2 KiB
Plaintext
// All of these must be matched in StripMenu.js.
|
|
#define STRIPPABLE_ITEM_HEAD "head"
|
|
#define STRIPPABLE_ITEM_BACK "back"
|
|
#define STRIPPABLE_ITEM_MASK "mask"
|
|
#define STRIPPABLE_ITEM_NECK "neck"
|
|
#define STRIPPABLE_ITEM_EYES "eyes"
|
|
#define STRIPPABLE_ITEM_EARS "ears"
|
|
#define STRIPPABLE_ITEM_JUMPSUIT "jumpsuit"
|
|
#define STRIPPABLE_ITEM_SUIT "suit"
|
|
#define STRIPPABLE_ITEM_GLOVES "gloves"
|
|
#define STRIPPABLE_ITEM_FEET "shoes"
|
|
#define STRIPPABLE_ITEM_SUIT_STORAGE "suit_storage"
|
|
#define STRIPPABLE_ITEM_ID "id"
|
|
#define STRIPPABLE_ITEM_BELT "belt"
|
|
#define STRIPPABLE_ITEM_LPOCKET "left_pocket"
|
|
#define STRIPPABLE_ITEM_RPOCKET "right_pocket"
|
|
#define STRIPPABLE_ITEM_LHAND "left_hand"
|
|
#define STRIPPABLE_ITEM_RHAND "right_hand"
|
|
#define STRIPPABLE_ITEM_HANDCUFFS "handcuffs"
|
|
#define STRIPPABLE_ITEM_LEGCUFFS "legcuffs"
|
|
#define STRIPPABLE_ITEM_PET_COLLAR "pet_collar"
|
|
#define STRIPPABLE_ITEM_PARROT_HEADSET "parrot_headset"
|
|
|
|
/// This slot is not obscured.
|
|
#define STRIPPABLE_OBSCURING_NONE 0
|
|
|
|
/// This slot is completely obscured, and cannot be accessed.
|
|
#define STRIPPABLE_OBSCURING_COMPLETELY 1
|
|
|
|
/// This slot can't be seen, but can be accessed.
|
|
#define STRIPPABLE_OBSCURING_HIDDEN 2
|
|
|
|
/// This slot can be seen, but cannot be accessed
|
|
#define STRIPPABLE_OBSCURING_INACCESSIBLE 3
|