Page 1 of 1

[0.16.19] Merging icons of different sizes

Posted: Fri Jan 26, 2018 6:00 am
by Optera
Thanks for adding this, sadly it doesn't seem working.
Problem:
A Code basically reduced to this results in the 32x overlay being read for 128x128 from the atlas.

Code: Select all

icons =
{
  {
    icon = large-icon.png,
    icon_size = 128
  },
  {
    icon = small-icon.png,
    icon_size = 32
  }
}
icon_size = 32
2018-01-26-06-46-34-3995150.jpg
2018-01-26-06-46-34-3995150.jpg (18.91 KiB) Viewed 2072 times
Expected Behavior:
The 128x icon is shrunk to 32x and with overlay should look like the right icon in the screenshot.

Re: [0.16.19] Merging icons of different sizes

Posted: Sun Jan 28, 2018 1:46 am
by Rseding91
The game itself doesn't support item-icons that are > 32 fully. It's planned to fully add support at some point but right now it may or may not work depending on where it's rendered (inventory, alt-info, GUI).

Re: [0.16.19] Merging icons of different sizes

Posted: Sun Jan 28, 2018 7:25 am
by Supercheese
Rseding91 wrote:The game itself doesn't support item-icons that are > 32 fully. It's planned to fully add support at some point but right now it may or may not work depending on where it's rendered (inventory, alt-info, GUI).
Ah, that's unfortunate. I didn't know this and set many of my mods' icons to be 64x64 or even 128x128, thinking, well, it's nicer to have more resolution than less. Perhaps I should revert these changes until support for them is improved?

Re: [0.16.19] Merging icons of different sizes

Posted: Sun Jan 28, 2018 7:32 am
by Rseding91
Supercheese wrote:
Rseding91 wrote:The game itself doesn't support item-icons that are > 32 fully. It's planned to fully add support at some point but right now it may or may not work depending on where it's rendered (inventory, alt-info, GUI).
Ah, that's unfortunate. I didn't know this and set many of my mods' icons to be 64x64 or even 128x128, thinking, well, it's nicer to have more resolution than less. Perhaps I should revert these changes until support for them is improved?
If it works for you then I'd leave it. We just haven't gotten around to officially making it work everywhere so it's a dice roll if it works for what you want.