glass_style
Glass style singleton
Used by /datum/component/takes_reagent_appearance, and a few other places, to modify the looks of a reagent container (not /reagent_containers, any atom with reagents) when certain types of reagents are put into and become the majority reagent of the container
For example, pouring Vodka into a glass will change its icon to look like the vodka glass sprite while pouring it into a shot glass will change to the vodka shot glass sprite
A reagent type can have multiple glass styles so long as each style is linked to a different container type, this allows one reagent to style multiple things across a variety of icon files
Vars | |
desc | Optional - What the glass description is changed to |
---|---|
icon | Suggested - What icon file to use for this glass style |
icon_state | Suggested - What icon state is used for this glass style |
name | Optional - What the glass is renamed to |
required_container_type | Required - What EXACT type of atom is needed for this style to be used If not supplied, will be assumed to be an abstract type and will not be instantiated |
required_drink_type | Required - What EXACT type of reagent is needed for this style to be used If not supplied, will be assumed to be an abstract type and will not be instantiated |
Procs | |
set_all | Helper to apply the entire style to something. |
set_appearance | Sets the passed item to our icon and icon state. |
set_desc | Sets the passed item to our description. |
set_name | Sets the passed item to our name. |
Var Details
desc
Optional - What the glass description is changed to
icon
Suggested - What icon file to use for this glass style
icon_state
Suggested - What icon state is used for this glass style
name
Optional - What the glass is renamed to
required_container_type
Required - What EXACT type of atom is needed for this style to be used If not supplied, will be assumed to be an abstract type and will not be instantiated
required_drink_type
Required - What EXACT type of reagent is needed for this style to be used If not supplied, will be assumed to be an abstract type and will not be instantiated
Proc Details
set_all
Helper to apply the entire style to something.
set_appearance
Sets the passed item to our icon and icon state.
set_desc
Sets the passed item to our description.
set_name
Sets the passed item to our name.