Page 1 of 1

[0.16.25] Bigger than 32x32 item icons are tiny in alt-mode

Posted: Sat Feb 24, 2018 1:02 pm
by 321freddy
Possibly related to this: viewtopic.php?f=11&t=57683&p=342251

I have some items with icons of size 64x64 px in my Attach Notes mod. All these items also have an almost equal virtual signal with the same icon properties.
The items icon is tiny in alt mode ingame:
Image

Item entry in data.raw:

Code: Select all

["signpost-icon-danger"] = {
      flags = {
        "hidden"
      },
      icon = "__attach-notes__/graphics/signpost-icons/danger-icon.png",
      icon_size = 64,
      name = "signpost-icon-danger",
      order = "a",
      stack_size = 1,
      subgroup = "signs-red-signpost-icons",
      type = "item"
    },
And the corresponding virtual signal:

Code: Select all

["signpost-icon-danger"] = {
      icon = "__attach-notes__/graphics/signpost-icons/danger-icon.png",
      icon_size = 64,
      name = "signpost-icon-danger",
      order = "a",
      subgroup = "signs-red-signpost-icons",
      type = "virtual-signal"
    },
As you can see they have exactly the same icon properties but are drawn differently.
The icons are correctly drawn in the inventory and when dropped on the ground, but are larger than usual when used as map tag icon!

(Don't be irritated by the actual icon, this can be repoduced with any icon larger than 32x32. It has some technical reasons that I have to have both item and signal at the same time.)
log file

Re: [0.16.25] Bigger than 32x32 item icons are tiny in alt-mode

Posted: Mon Feb 26, 2018 2:17 am
by eradicator
321freddy wrote:but are larger than usual when used as map tag icon!
viewtopic.php?t=57683
Oddly my 192x192 and 64x64 item icon map tags work correctly since that fix.

Re: [0.16.25] Bigger than 32x32 item icons are tiny in alt-mode

Posted: Mon Feb 26, 2018 9:18 am
by Rseding91
Can you please upload a mod that shows the issue?

Re: [0.16.25] Bigger than 32x32 item icons are tiny in alt-mode

Posted: Mon Feb 26, 2018 9:40 am
by posila
Thanks for the report.
Fixed for 0.16.26

Re: [0.16.25] Bigger than 32x32 item icons are tiny in alt-mode

Posted: Thu Mar 01, 2018 2:12 pm
by 321freddy
Thank you! works as expected now :)