Types/PumpConnectorGraphics: Difference between revisions

From Official Factorio Wiki
Jump to navigation Jump to search
m (Protected "Types/PumpConnectorGraphics": Migrated prototype doc to separate website ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite)))
(Updated styling of prototype doc migration note)
Line 1: Line 1:
'''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 https://lua-api.factorio.com/latest/types/PumpConnectorGraphics.html]
<div class="stub"><p>'''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 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 [https://forums.factorio.com/viewforum.php?f=233 on the forums].
</p><p>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 [https://forums.factorio.com/viewforum.php?f=233 on the forums].</p></div>





Revision as of 10:42, 21 September 2023

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 = { ... },
}