/tg/ Station 13 - Modules - TypesVar Details - Proc Details

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_typeBase reskin type to pull options from - all subtypes except those blacklisted are valid options
blacklisted_subtypesList of subtypes of /datum/atom_skin that are not allowed to be used for this item
current_skinCurrently applied skin preview_name
infinite_reskinIf 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_menuChecks if we are allowed to interact with a radial menu for reskins
on_click_alt_reskinCalled when alt clicked and the item has unique reskin options
reskin_objReskins 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:

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: