Factorio.com|Forums|Wiki|Mod Portal|API Docs Prototype|Runtime|Auxiliary

# Factorio Prototype Docs Version 2.0.7

## WorkingVisualisation :: struct

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

## Properties

- default
- sorted

render_layer optional | :: RenderLayer |
fadeout optional | :: bool |
synced_fadeout optional | :: bool |
constant_speed optional | :: bool | Whether the animations are always played at the same speed, not adjusted to the machine speed.
Whether the animations are always played at the same speed, not adjusted to the machine speed.
always_draw optional | :: bool |
animated_shift optional | :: bool |
align_to_waypoint optional | :: bool |
mining_drill_scorch_mark optional | :: bool |
secondary_draw_order optional | :: int8 | Used to determine render order for sprites with the same `render_layer` in the same position. [...]
Used to determine render order for sprites with the same `render_layer` in the same position. [...]
light optional | :: LightDefinition |
effect optional | :: `"flicker"` or `"uranium-glow"` or `"none"` |
apply_recipe_tint optional | :: `"primary"` or `"secondary"` or `"tertiary"` or `"quaternary"` or `"none"` | Used by CraftingMachinePrototype. [...]
Used by CraftingMachinePrototype. [...]
apply_tint optional | :: `"resource-color"` or `"input-fluid-base-color"` or `"input-fluid-flow-color"` or `"status"` or `"none"` or `"visual-state-color"` | Used by CraftingMachinePrototype ("status" and "visual-state-color" only) and MiningDrillPrototype. [...]
Used by CraftingMachinePrototype ("status" and "visual-state-color" only) and MiningDrillPrototype. [...]
north_animation optional | :: Animation |
east_animation optional | :: Animation |
south_animation optional | :: Animation |
west_animation optional | :: Animation |
north_position optional | :: Vector |
east_position optional | :: Vector |
south_position optional | :: Vector |
west_position optional | :: Vector |
north_secondary_draw_order optional | :: int8 |
east_secondary_draw_order optional | :: int8 |
south_secondary_draw_order optional | :: int8 |
west_secondary_draw_order optional | :: int8 |
animation optional | :: Animation |
draw_in_states optional | :: array[string] | Only loaded if WorkingVisualisations::states is defined in the WorkingVisualisations that loads this.
Only loaded if WorkingVisualisations::states is defined in the WorkingVisualisations that loads this.
draw_when_state_filter_matches optional | :: bool | Only loaded if WorkingVisualisations::states is defined in the WorkingVisualisations that loads this.
Only loaded if WorkingVisualisations::states is defined in the WorkingVisualisations that loads this.
enabled_by_name optional | :: bool |
name optional | :: string |
enabled_in_animated_shift_during_waypoint_stop optional | :: bool |
enabled_in_animated_shift_during_transition optional | :: bool |
frame_based_on_shift_animation_progress optional | :: bool |
scorch_mark_fade_out_duration optional | :: uint16 | Only loaded, and mandatory if `mining_drill_scorch_mark` is `true`. [...]
Only loaded, and mandatory if `mining_drill_scorch_mark` is `true`. [...]
scorch_mark_lifetime optional | :: uint16 | Only loaded, and mandatory if `mining_drill_scorch_mark` is `true`.
Only loaded, and mandatory if `mining_drill_scorch_mark` is `true`.
scorch_mark_fade_in_frames optional | :: uint8 | Only loaded, and mandatory if `mining_drill_scorch_mark` is `true`.
Only loaded, and mandatory if `mining_drill_scorch_mark` is `true`.

align_to_waypoint optional | :: bool |
always_draw optional | :: bool |
animated_shift optional | :: bool |
animation optional | :: Animation |
apply_recipe_tint optional | :: `"primary"` or `"secondary"` or `"tertiary"` or `"quaternary"` or `"none"` | Used by CraftingMachinePrototype. [...]
Used by CraftingMachinePrototype. [...]
apply_tint optional | :: `"resource-color"` or `"input-fluid-base-color"` or `"input-fluid-flow-color"` or `"status"` or `"none"` or `"visual-state-color"` | Used by CraftingMachinePrototype ("status" and "visual-state-color" only) and MiningDrillPrototype. [...]
Used by CraftingMachinePrototype ("status" and "visual-state-color" only) and MiningDrillPrototype. [...]
constant_speed optional | :: bool | Whether the animations are always played at the same speed, not adjusted to the machine speed.
Whether the animations are always played at the same speed, not adjusted to the machine speed.
draw_in_states optional | :: array[string] | Only loaded if WorkingVisualisations::states is defined in the WorkingVisualisations that loads this.
Only loaded if WorkingVisualisations::states is defined in the WorkingVisualisations that loads this.
draw_when_state_filter_matches optional | :: bool | Only loaded if WorkingVisualisations::states is defined in the WorkingVisualisations that loads this.
Only loaded if WorkingVisualisations::states is defined in the WorkingVisualisations that loads this.
east_animation optional | :: Animation |
east_position optional | :: Vector |
east_secondary_draw_order optional | :: int8 |
effect optional | :: `"flicker"` or `"uranium-glow"` or `"none"` |
enabled_by_name optional | :: bool |
enabled_in_animated_shift_during_transition optional | :: bool |
enabled_in_animated_shift_during_waypoint_stop optional | :: bool |
fadeout optional | :: bool |
frame_based_on_shift_animation_progress optional | :: bool |
light optional | :: LightDefinition |
mining_drill_scorch_mark optional | :: bool |
name optional | :: string |
north_animation optional | :: Animation |
north_position optional | :: Vector |
north_secondary_draw_order optional | :: int8 |
render_layer optional | :: RenderLayer |
scorch_mark_fade_in_frames optional | :: uint8 | Only loaded, and mandatory if `mining_drill_scorch_mark` is `true`.
Only loaded, and mandatory if `mining_drill_scorch_mark` is `true`.
scorch_mark_fade_out_duration optional | :: uint16 | Only loaded, and mandatory if `mining_drill_scorch_mark` is `true`. [...]
Only loaded, and mandatory if `mining_drill_scorch_mark` is `true`. [...]
scorch_mark_lifetime optional | :: uint16 | Only loaded, and mandatory if `mining_drill_scorch_mark` is `true`.
Only loaded, and mandatory if `mining_drill_scorch_mark` is `true`.
secondary_draw_order optional | :: int8 | Used to determine render order for sprites with the same `render_layer` in the same position. [...]
Used to determine render order for sprites with the same `render_layer` in the same position. [...]
south_animation optional | :: Animation |
south_position optional | :: Vector |
south_secondary_draw_order optional | :: int8 |
synced_fadeout optional | :: bool |
west_animation optional | :: Animation |
west_position optional | :: Vector |
west_secondary_draw_order optional | :: int8 |

## Properties

### render_layer :: RenderLayer optional

Default: `"object"`

### fadeout :: bool optional

Default: `false`

### synced_fadeout :: bool optional

Default: `false`

### constant_speed :: bool optional

Default: `false`

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

### always_draw :: bool optional

Default: `false`

### animated_shift :: bool optional

Default: `false`

### align_to_waypoint :: bool optional

Default: `false`

### mining_drill_scorch_mark :: bool optional

Default: `false`

### secondary_draw_order :: int8 optional

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 :: LightDefinition optional

### effect :: `"flicker"` or `"uranium-glow"` or `"none"` optional

### apply_recipe_tint :: `"primary"` or `"secondary"` or `"tertiary"` or `"quaternary"` or `"none"` optional

Used by CraftingMachinePrototype. Has precedence over `apply_tint`.

### apply_tint :: `"resource-color"` or `"input-fluid-base-color"` or `"input-fluid-flow-color"` or `"status"` or `"none"` or `"visual-state-color"` optional

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 :: Animation optional

### east_animation :: Animation optional

### south_animation :: Animation optional

### west_animation :: Animation optional

### north_position :: Vector optional

### east_position :: Vector optional

### south_position :: Vector optional

### west_position :: Vector optional

### north_secondary_draw_order :: int8 optional

Default: Value of `secondary_draw_order`

### east_secondary_draw_order :: int8 optional

Default: Value of `secondary_draw_order`

### south_secondary_draw_order :: int8 optional

Default: Value of `secondary_draw_order`

### west_secondary_draw_order :: int8 optional

Default: Value of `secondary_draw_order`

### animation :: Animation optional

### draw_in_states :: array[string] optional

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

### draw_when_state_filter_matches :: bool optional

Default: `true`

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

### enabled_by_name :: bool optional

Default: `false`

### name :: string optional

Default: `""`

### enabled_in_animated_shift_during_waypoint_stop :: bool optional

Default: `true`

### enabled_in_animated_shift_during_transition :: bool optional

Default: `true`

### frame_based_on_shift_animation_progress :: bool optional

Default: `false`

### scorch_mark_fade_out_duration :: uint16 optional

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

### scorch_mark_lifetime :: uint16 optional

Only loaded, and mandatory if `mining_drill_scorch_mark` is `true`.

### scorch_mark_fade_in_frames :: uint8 optional

Only loaded, and mandatory if `mining_drill_scorch_mark` is `true`.

Type used in

- WorkingVisualisations::working_visualisations