/tg/ Station 13 - Modules - Types

code/modules/asset_cache/spritesheet/batched/universal_icon.dm

/datum/universal_iconThis is intended to replace /icon, allowing rustg to generate icons much faster than DM can at scale. Construct these with the uni_icon() proc, in the same manner as BYOND's icon() proc. Additionally supports a number of transform procs (lowercase, rather than BYOND's uppercase) such as Crop, Scale, and Blend (as blend_icon/blend_color).
/proc/icon_transformer_from_listReverse operation of /datum/icon_transformer/to_list()
/proc/color_transformConstructs a transformer, with optional color multiply pre-added.
/proc/gags_to_universal_iconConverts a GAGS atom to a universal icon by generating blend operations.
/proc/get_display_icon_forGets the relevant universal icon for an atom, when displayed in TGUI. (see: icon_state_preview) Supports GAGS items and colored items.
/proc/get_flat_uni_icongetFlatIcon for /datum/universal_icons Only supports 32x32 icons facing south Tough luck if you want anything else Still fairly slow for complex appearances due to filesystem operations. Try to avoid using it