Types/PumpConnectorGraphics: Difference between revisions
(Created page with "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 == === nor...") |
m (Bilka moved page Types/ConnectorGraphics to Types/PumpConnectorGraphics without leaving a redirect: Internal name changed) |
Revision as of 12:36, 4 May 2020
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 = { ... },
}