Page 1 of 1

[kovarex] [0.15.37/40][Modding] Icon size / scale

Posted: Sun Dec 03, 2017 11:15 pm
by lovely_santa
Hi,

While modding I came across this detailed (alt) view:
alt-view.png
alt-view.png (207.7 KiB) Viewed 3005 times
As you see, the icon is too big to fit the assembler (same happens when extracting with inserter, or when it's in a chest).
I have one HD image for this entity/icon/technology/recipy. So I'm using a single image for everything, and it's resizing everywhere except the icon itself on the surface (it does resize in the inventory).

As I heard the devs want to increase icon resolution... well it's not working (yet)... Only solution would be to make a 32x32 image for the icon... would be a waste in my opinion..

Conclusion: I can use a HQ image for technology, icon in inventory, entity sprite, recipy and entities, but not for the icon on the surface. I also added the prototypes (as RSeding requested already).

Greetings
lovely_santa

Code: Select all

{
    type = "item",
    name = "corpse-flare",
    icon = "__BugZilla__/graphics/entity/corpse-flare.png",
    icon_size = 200,
    flags = {"goes-to-main-inventory"},
    subgroup = "tool",
    order = "z[flare]-z[corpse-flare]",
    stack_size = 1
  },

  {
    type = "recipe",
    name = "corpse-flare",
    enabled = false,
    ingredients =
    {
      {type="item", name="electronic-circuit", amount=5},
      {type="item", name="small-lamp", amount=5},
      {type="item", name="grenade", amount=1}
    },
    energy_required = 5,
    result= "corpse-flare",
    result_count = 1
  },

Re: [kovarex] [0.15.37/40][Modding] Icon size / scale

Posted: Mon Dec 11, 2017 8:46 pm
by kovarex
Hello, you are right.
Making extra file would not only be waste, but mainly, you wouldn't get the advantage of icon in higher resolution that don't look that pixelated when you zoom in.
The size of the picture drawn has been normalized so it is always the same.

Fixed for 0.16