limb_marking_cache 
Shared setup for the limb marking cache tests. Abstract, so the runner never runs it on its own.
Procs | |
| count_glowing | Counts the glowing appearances of a limb icon. On these bodies only markings glow. |
|---|---|
| drawn_state | Returns the visible appearance of a limb icon that draws one icon state. |
| drawn_states | Returns the visible appearances of a limb icon that draw one of the given icon states, as their states in draw order. |
| dressed_body | Builds a body wearing the given markings and draws it the way a DNA change does. |
| shown_icon | Returns what a body shows for one limb: the cached appearances its current icon key names. |
Proc Details
count_glowing
Counts the glowing appearances of a limb icon. On these bodies only markings glow.
Arguments:
- drawn: the limb icon's appearances.
drawn_state
Returns the visible appearance of a limb icon that draws one icon state.
Arguments:
- drawn: the limb icon's appearances.
- state: the icon state to find.
Returns the first such appearance, or null.
drawn_states
Returns the visible appearances of a limb icon that draw one of the given icon states, as their states in draw order.
Arguments:
- drawn: the limb icon's appearances.
- states: the icon states to pick out.
dressed_body
Builds a body wearing the given markings and draws it the way a DNA change does.
Arguments:
- raw: the markings in the nested shape a savefile holds, zone -> (marking name -> list(color, emissive)).
Returns the new human.
shown_icon
Returns what a body shows for one limb: the cached appearances its current icon key names.
Arguments:
- body: the body to look at.
- zone: the limb's body zone.