Factorio Prototype DocsVersion 2.0.77

RadiusVisualisationSpecification - Prototype Docs

RadiusVisualisationSpecification :: struct Example code

Sprite to be shown around the entity when it is selected/held in the cursor.

Properties

sprite optional :: Sprite

The sprite to show. [...]

The sprite to show. [...]

distance optional :: double

Must be greater than or equal to 0. [...]

Must be greater than or equal to 0. [...]

offset optional :: Vector

Offset of the sprite from the position of the entity. [...]

Offset of the sprite from the position of the entity. [...]

draw_in_cursor optional :: boolean
draw_on_selection optional :: boolean

Properties

distance :: double optional

offset :: Vector optional

Offset of the sprite from the position of the entity. The offset is rotated by the entity's current direction.

This offset is silently overwritten by prototypes with a custom offset: MiningDrillPrototype::resource_searching_offset.

draw_in_cursor :: boolean optional

Default: true

draw_on_selection :: boolean optional

Default: true

Example

radius_visualisation_specification =
{
  sprite =
  {
    filename = "__base__/graphics/entity/electric-mining-drill/electric-mining-drill-radius-visualization.png",
    size = 10
  },
  distance = 5,
  offset = {0, -5}
}
Fulltext search

Prototypes

Types

Defines

Fulltext search for