What did you do?
I was modding the icon for an entity I'm making.Here's the code:
Code: Select all
--Non buggy version:
--icons =
--{
-- { icon = "__base__/graphics/icons/pumpjack.png" },
-- { icon = "__base__/graphics/icons/stone-furnace.png", scale = 0.5 }
--},
--Buggy version. The pumpjack spills outside the designated area!
icons =
{
{ icon = "__base__/graphics/icons/stone-furnace.png", scale = 0.5 },
{ icon = "__base__/graphics/icons/pumpjack.png" }
},
What happened instead?
When I used the first block of code above, the image is fine and perfectly normal.The second block of code though, is weird. The stone furnace is normal size, and the pumpjack is 2x size, spilling outside the borders of the icon frame (see the attached picture).
If I make the stone furnace scale 0.1 instead of 0.5, it's still normal size, but the pumpjack is at 10x size!
Then if I set the pumpjack scale to 1 like this:
Code: Select all
icons =
{
{ icon = "__base__/graphics/icons/stone-furnace.png", scale = 0.5 },
{ icon = "__base__/graphics/icons/pumpjack.png", scale = 1 }
},
What did you expect to happen instead?
I expected it to be drawn at half-size, and the pumpjack to be normal size.
Steps to reproduce:
1) Change the icon of any item or entity to use the code above.2) Run the game.
3) Open the crafting menu or the production statistics screen
Edit: actually, reversing the order of the items does change the draw order, but I was too blind to see it. When I put the pumpjack icon first, it shows up at the bottom (as I'd expect). So I changed the wording of this bug report. The drawing order is okay, but the fact that the pumpjack is too big is not good.