/tg/ Station 13 - Modules - Types — Var Details - Proc Details

strippable_item

A representation of an item that can be stripped down

Vars

keyThe STRIPPABLE_ITEM_* key
show_visible_messageShould we give feedback messages?

Procs

finish_equipThe proc that places the item on the source. This should not yield.
finish_unequipThe proc that unequips the item from the source. This should not yield.
get_alternate_action_iconsReturns an assoc list of alternate action keys to base64 icons shown in place of the action's default icon. You can also return null to keep the default icons. The item is null when the slot is empty.
get_alternate_actionsReturns a list of alternate actions that can be performed on this strippable_item. All string keys in the list must be inside tgui\packages\tgui\interfaces\StripMenu.tsx You can also return null if there are no alternate actions. The item is null when the slot is empty.
get_itemGets the item from the given source.
get_obscuringReturns a STRIPPABLE_OBSCURING_* define to report on whether or not this is obscured.
perform_alternate_actionPerforms an alternate action on this strippable_item.
should_showReturns whether or not this item should show.
start_equipStart the equipping process. This is the proc you should yield in. Returns TRUE/FALSE depending on if it is allowed.
start_unequipStart the unequipping process. This is the proc you should yield in. Returns TRUE/FALSE depending on if it is allowed.
try_equipTries to equip the item onto the given source. Returns TRUE/FALSE depending on if it is allowed. This should be used for checking if an item CAN be equipped. It should not perform the equipping itself.
try_unequipTries to unequip the item from the given source. Returns TRUE/FALSE depending on if it is allowed. This should be used for checking if it CAN be unequipped. It should not perform the unequipping itself.

Var Details

key

The STRIPPABLE_ITEM_* key

show_visible_message

Should we give feedback messages?

Proc Details

finish_equip

The proc that places the item on the source. This should not yield.

finish_unequip

The proc that unequips the item from the source. This should not yield.

get_alternate_action_icons

Returns an assoc list of alternate action keys to base64 icons shown in place of the action's default icon. You can also return null to keep the default icons. The item is null when the slot is empty.

get_alternate_actions

Returns a list of alternate actions that can be performed on this strippable_item. All string keys in the list must be inside tgui\packages\tgui\interfaces\StripMenu.tsx You can also return null if there are no alternate actions. The item is null when the slot is empty.

get_item

Gets the item from the given source.

get_obscuring

Returns a STRIPPABLE_OBSCURING_* define to report on whether or not this is obscured.

perform_alternate_action

Performs an alternate action on this strippable_item.

should_show

Returns whether or not this item should show.

start_equip

Start the equipping process. This is the proc you should yield in. Returns TRUE/FALSE depending on if it is allowed.

start_unequip

Start the unequipping process. This is the proc you should yield in. Returns TRUE/FALSE depending on if it is allowed.

try_equip

Tries to equip the item onto the given source. Returns TRUE/FALSE depending on if it is allowed. This should be used for checking if an item CAN be equipped. It should not perform the equipping itself.

try_unequip

Tries to unequip the item from the given source. Returns TRUE/FALSE depending on if it is allowed. This should be used for checking if it CAN be unequipped. It should not perform the unequipping itself.