Home

WorkingVisualisation

Used by crafting machines to display different graphics when the machine is running.

Type

struct

Properties

render_layer

fadeout

synced_fadeout

constant_speed

Whether the animations are always played at the same speed, not adjusted to the machine speed.

always_draw

animated_shift

align_to_waypoint

mining_drill_scorch_mark

secondary_draw_order

Used to determine render order for sprites with the same render_layer in the same position. Sprites with a higher secondary_draw_order are drawn on top.

light

effect

apply_recipe_tint

Used by CraftingMachinePrototype. Has precedence over apply_tint.

apply_tint

Used by CraftingMachinePrototype ("status" and "visual-state-color" only) and MiningDrillPrototype.

For "status" on CraftingMachine and MiningDrill, the colors are specified via WorkingVisualisations::status_colors. For "resource-color", the colors are specified via ResourceEntityPrototype::mining_visualisation_tint.

north_animation

east_animation

south_animation

west_animation

north_position

east_position

south_position

west_position

north_secondary_draw_order

east_secondary_draw_order

south_secondary_draw_order

west_secondary_draw_order

north_fog_mask

If defined, animation in this visualisation layer will be used only as mask for fog effect and will not render in world.

east_fog_mask

If defined, animation in this visualisation layer will be used only as mask for fog effect and will not render in world.

south_fog_mask

If defined, animation in this visualisation layer will be used only as mask for fog effect and will not render in world.

west_fog_mask

If defined, animation in this visualisation layer will be used only as mask for fog effect and will not render in world.

fog_mask

Loaded only if at least one of north_fog_mask, east_fog_mask, south_fog_mask, west_fog_mask is not specified.

If defined, animation in this visualisation layer will be used only as mask for fog effect and will not render in world.

animation

draw_in_states

Only loaded if WorkingVisualisations::states is defined in the WorkingVisualisations that loads this.

draw_when_state_filter_matches

Only loaded if WorkingVisualisations::states is defined in the WorkingVisualisations that loads this.

enabled_by_name

name

enabled_in_animated_shift_during_waypoint_stop

enabled_in_animated_shift_during_transition

frame_based_on_shift_animation_progress

scorch_mark_fade_out_duration

Only loaded, and mandatory if mining_drill_scorch_mark is true. Cannot be larger than scorch_mark_lifetime.

scorch_mark_lifetime

Only loaded, and mandatory if mining_drill_scorch_mark is true.

scorch_mark_fade_in_frames

Only loaded, and mandatory if mining_drill_scorch_mark is true.