|
|
(4 intermediate revisions by 2 users not shown) |
Line 1: |
Line 1: |
| A mapping of arrays of mappings of [[Types/string]] to [[Types/Animation]]s to all 4 directions of the pump connection (to a fluid wagon).
| | <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] |
|
| |
|
| == Mandatory properties ==
| | </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> |
| | |
| === 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: <code>standup_base</code>, <code>standup_top</code>, <code>standup_shadow</code>, <code>connector</code>, <code>connector_shadow</code>.
| |
| | |
| === 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: <code>standup_base</code>, <code>standup_top</code>, <code>standup_shadow</code>, <code>connector</code>, <code>connector_shadow</code>.
| |
| | |
| === 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: <code>standup_base</code>, <code>standup_top</code>, <code>standup_shadow</code>, <code>connector</code>, <code>connector_shadow</code>.
| |
| | |
| === 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: <code>standup_base</code>, <code>standup_top</code>, <code>standup_shadow</code>, <code>connector</code>, <code>connector_shadow</code>.
| |
| | |
| == Example ==
| |
| <!-- Yea, the description above is confusing, so I'm putting this here... -->
| |
| | |
| <syntaxhighlight lang="lua">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 = { ... },
| |
| }
| |
| </syntaxhighlight> | |
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.