icon | :: FileName |
Path to the icon file. |
Path to the icon file. |
||
icon_size | :: SpriteSizeType |
The size of the square icon, in pixels, e.g. |
The size of the square icon, in pixels, e.g. |
||
tint optional | :: Color |
The tint to apply to the icon. |
The tint to apply to the icon. |
||
shift optional | :: Vector |
Used to offset the icon "layer" from the overall icon. |
Used to offset the icon "layer" from the overall icon. |
||
scale optional | :: double |
Defaults to |
Defaults to |
||
icon_mipmaps optional | :: IconMipMapType |
Icons of reduced size will be used at decreased scale. |
Icons of reduced size will be used at decreased scale. |
-- one icon layer
{
icon = "__base__/graphics/icons/fluid/heavy-oil.png",
icon_size = 64,
scale = 0.5,
shift = {4, -8}
}
-- Layered icon, with size defined outside of layers
icon_size = 32,
icons = {
{
icon = "__base__/graphics/icons/fluid/barreling/empty-barrel.png"
},
{
icon = "__base__/graphics/icons/fluid/barreling/barrel-side-mask.png",
tint = { a = 0.75, b = 0, g = 0, r = 0 }
},
{
icon = "__base__/graphics/icons/fluid/barreling/barrel-hoop-top-mask.png",
tint = { a = 0.75, b = 0.5, g = 0.5, r = 0.5 }
}
}
-- Layered icon, with size defined per layer
icons = {
{
icon = "__base__/graphics/icons/fluid/barreling/barrel-empty.png",
icon_size = 32
},
{
icon = "__base__/graphics/icons/fluid/barreling/barrel-empty-side-mask.png",
icon_size = 32,
tint = { a = 0.75, b = 0, g = 0, r = 0 }
},
{
icon = "__base__/graphics/icons/fluid/barreling/barrel-empty-top-mask.png",
icon_size = 32,
tint = { a = 0.75, b = 0.5, g = 0.5, r = 0.5 }
},
{
icon = "__base__/graphics/icons/fluid/crude-oil.png",
icon_size = 32,
scale = 0.5,
shift = {7, 8 }
}
}