Code: Select all
local extinguisherfluid = {
type = "fluid",
name = WT.fire_ex_fluid,
icons = {
{
icon = MOD_PIX .. "fluid/fire-ex-fluid-icon-turret-bg.png",
},
{
icon = MOD_PIX .. "fluid/fire-ex-fluid-icon-turret.png",
tint = WT.extinguisher_turret_tint,
},
{
icon = MOD_PIX .. "fluid/fire-ex-fluid-icon-fluid-bg.png",
},
{
icon = MOD_PIX .. "fluid/fire-ex-fluid-icon-fluid.png",
tint = WT.fire_ex_fluid_tint,
},
},
icon_size = 64,
default_temperature = 25,
[…]
data:extend({ extinguisherfluid })
Code: Select all
local extinguisherfluid = {
type = "fluid",
name = WT.fire_ex_fluid,
icons = {
{
icon = MOD_PIX .. "fluid/fire-ex-fluid-icon-turret-bg.png",
icon_size = 64,
},
{
icon = MOD_PIX .. "fluid/fire-ex-fluid-icon-turret.png",
icon_size = 64,
tint = WT.extinguisher_turret_tint,
},
{
icon = MOD_PIX .. "fluid/fire-ex-fluid-icon-fluid-bg.png",
icon_size = 64,
},
{
icon = MOD_PIX .. "fluid/fire-ex-fluid-icon-fluid.png",
icon_size = 64,
tint = WT.fire_ex_fluid_tint,
},
default_temperature = 25,
[…]
data:extend({ extinguisherfluid })
I think the comment should be extended:icon_size
Type: Types/SpriteSizeType
Mandatory if icon_size is not specified inside all instances of Types/IconData inside icons. The size of the square icon, in pixels, e.g. 32 for a 32px by 32px icon.
Something like that, I'm not particular about the actual phrasing. But I guess the change could save many people a lot of time.Mandatory if icon_size is not specified inside all instances of Types/IconData inside icons. It must be specified inside the icons if it is used in a fluid definition. The size of the square icon, in pixels, e.g. 32 for a 32px by 32px icon.