-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tgui strip panel + strippable element (#57889)
Completely removes show_inv and replaces it with /datum/element/strippable. It takes a list of instantiated /datum/strippable_item which communicate which slots are available and how to interact with them. This element has been added to humans, alien humanoids, parrots, and corgis. Co-authored-by: Aleksej Komarov <stylemistake@gmail.com>
- Loading branch information
1 parent
247c62f
commit f71b3a0
Showing
45 changed files
with
1,684 additions
and
536 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
// 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_CORGI_COLLAR "corgi_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 file contains 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
Oops, something went wrong.