Types/PumpConnectorGraphics

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/PumpConnectorGraphics.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.


A mapping of arrays of mappings of Types/string to Types/Animations to all 4 directions of the pump connection (to a fluid wagon).

Mandatory properties

north

Type: Types/table of Types/table

Size of the table must be 6 or more. Each value of the table is a mapping of Types/string to Types/Animation. The following strings are recognized: standup_base, standup_top, standup_shadow, connector, connector_shadow.

east

Type: Types/table of Types/table

Size of the table must be 6 or more. Each value of the table is a mapping of Types/string to Types/Animation. The following strings are recognized: standup_base, standup_top, standup_shadow, connector, connector_shadow.

south

Type: Types/table of Types/table

Size of the table must be 6 or more. Each value of the table is a mapping of Types/string to Types/Animation. The following strings are recognized: standup_base, standup_top, standup_shadow, connector, connector_shadow.

west

Type: Types/table of Types/table

Size of the table must be 6 or more. Each value of the table is a mapping of Types/string to Types/Animation. The following strings are recognized: standup_base, standup_top, standup_shadow, connector, connector_shadow.

Example

load_animations =
{
west = {
  [1] = {
    standup_base = {
      filename = "__base__/graphics/entity/pump/connector/V-R-135-load-standup-base.png",
      width = 55,
      height = 63,
      line_length =1,
      frame_count =20,
      shift = util.by_pixel(-23.5, -13.5),
      hr_version = {
        filename = "__base__/graphics/entity/pump/connector/hr-V-R-135-load-standup-base.png",
        width = 110,
        height = 126,
        scale = 0.5,
        line_length = 1,
        frame_count = 20,
        shift = util.by_pixel(-23.5, -13.5)
      },
    },
    standup_shadow = {
      filename = "__base__/graphics/entity/pump/connector/V-R-1-load-standup-base-shadow.png",
      width = 79,
      height = 69,
      line_length =1,
      frame_count =20,
      shift = util.by_pixel(-8.5, 8.5),
      hr_version = {
        filename = "__base__/graphics/entity/pump/connector/hr-V-R-1-load-standup-base-shadow.png",
        width = 157,
        height = 136,
        scale = 0.5,
        line_length = 1,
        frame_count = 20,
        shift = util.by_pixel(-8.75, 8.5)
      },
    },
  },
  [2] = {
    standup_base = { ... },
    standup_shadow = { ... },
    connector_shadow = { ... },
  },
  [3] = { ... },
  [4] = { ... },
  [5] = { ... },
  [6] = { ... },
},
north = { ... },
east = { ... },
south = { ... },
}