reskinable_item 
Reskinnable atoms
Simple component which lets an atom be alt-clicked to open a radial menu to choose a new skin to apply.
Vars | |
| base_reskin_type | Base reskin type to pull options from - all subtypes except those blacklisted are valid options |
|---|---|
| blacklisted_subtypes | List of subtypes of /datum/atom_skin that are not allowed to be used for this item |
| current_skin | Currently applied skin preview_name |
| infinite_reskin | If TRUE, the reskin option is infinite-use. If FALSE, the component is deleted on use (so you're stuck with that skin). |
Procs | |
| check_reskin_menu | Checks if we are allowed to interact with a radial menu for reskins |
| on_click_alt_reskin | Called when alt clicked and the item has unique reskin options |
| reskin_obj | Reskins object based on a user's choice |
Var Details
base_reskin_type 
Base reskin type to pull options from - all subtypes except those blacklisted are valid options
blacklisted_subtypes 
List of subtypes of /datum/atom_skin that are not allowed to be used for this item
current_skin 
Currently applied skin preview_name
infinite_reskin 
If TRUE, the reskin option is infinite-use. If FALSE, the component is deleted on use (so you're stuck with that skin).
Proc Details
check_reskin_menu
Checks if we are allowed to interact with a radial menu for reskins
Arguments:
- user The mob interacting with the menu
on_click_alt_reskin
Called when alt clicked and the item has unique reskin options
reskin_obj
Reskins object based on a user's choice
Arguments:
- user The mob choosing a reskin option