Types/MiningDrillGraphicsSet

From Official Factorio Wiki
Revision as of 10:42, 21 September 2023 by BilkaBot (talk | contribs) (Updated styling of prototype doc migration note)
Jump to navigation Jump to search

The prototype docs have moved to a new website with an improved format. This documentation page can now be found here: https://lua-api.factorio.com/latest/types/MiningDrillGraphicsSet.html

This wiki page is no longer updated and will be removed at some point in the future, so please update your browser bookmarks or other links that sent you here. If you'd like to contribute to the new docs, you can leave your feedback on the forums.


Used by Prototype/MiningDrill. This is a Types/table with the below properties.

Optional properties

animation

Type: Animation4Way

idle_animation

Type: Animation4Way

Idle animation must have the same frame count as animation.

always_draw_idle_animation

Type: bool

Default: false

Only loaded if idle_animation is present.

default_recipe_tint

Type: table of Color

Format:

default_recipe_tint = { primary = {r=1,g=1,b=1,a=1}, secondary = {r=1,g=1,b=1,a=1}, tertiary = {r=1,g=1,b=1,a=1}, quaternary = {r=1,g=1,b=1,a=1}}

Each key/value pair is optional and defaults to the above value.

working_visualisations

Type: table of WorkingVisualisation

shift_animation_waypoints

Type: table of table (array) of vector

Table with the following optional key/value pairs:

Only loaded if one of shift_animation_waypoint_stop_duration or shift_animation_transition_duration is not 0.

shift_animation_waypoint_stop_duration

Type: uint16

Default: 0

Only loaded if shift_animation_waypoints is present.

shift_animation_transition_duration

Type: uint16

Default: 0

Only loaded if shift_animation_waypoints is present.

status_colors

Type: table of Color

Table with the following optional key/value pairs:

  • idle - Color - Default: White
  • no_minable_resources - Color - Default: idle
  • full_output - Color - Default: idle
  • insufficient_input - Color - Default: idle
  • disabled - Color - Default: idle
  • no_power - Color - Default: No color
  • working - Color - Default: White
  • low_power - Color - Default: working

Used by Types/WorkingVisualisation#apply_tint.

drilling_vertical_movement_duration

Type: uint16

Default: 0

animation_progress

Type: float

Default: 1

max_animation_progress

Type: float

Default: 1000

min_animation_progress

Type: float

Default: 0

circuit_connector_layer

Type: RenderLayer or table of RenderLayer

Default: "object"

Renderlayer(s) for all directions of the circuit connectors. When this is loaded as a table, it is a table with the following optional key/value pairs:

circuit_connector_secondary_draw_order

Type: int8 or table of int8

Default: 100

Secondary draw order(s) for all directions of the circuit connectors. When this is loaded as a table, it is a table with the following optional key/value pairs: