Page 1 of 1

[0.16.30] Electric network screen - tint not applied

Posted: Sun Mar 18, 2018 7:52 pm
by darkfrei
Hi all!
Here is a mod where I've found it: https://mods.factorio.com/mod/RITEG
Here is an entity and item with applied tint:
2018-03-18 09_52_57-Factorio 0.16.30.png
2018-03-18 09_52_57-Factorio 0.16.30.png (72.52 KiB) Viewed 673 times
2018-03-18 09_53_18-Factorio 0.16.30.png
2018-03-18 09_53_18-Factorio 0.16.30.png (81.68 KiB) Viewed 673 times
But on the electric network screen you can see that here is no tint at all:
2018-03-18 09_52_41-Factorio 0.16.30.png
2018-03-18 09_52_41-Factorio 0.16.30.png (319.47 KiB) Viewed 673 times

Re: [0.16.30] Electric network screen - tint not applied

Posted: Sun Mar 18, 2018 11:53 pm
by Rseding91
Thanks for the report. That's working correctly - the mod defined the entity icon as the pure grey icon with no tint - which is what that GUI shows.

Code: Select all

icon = "__RITEG__/graphics/icon_32.png",
When it should be:

Code: Select all

icons = 
{
  {
    icon = "__RITEG__/graphics/icon_32.png",
    tint = tint
  }
},
When I fix the prototype it renders correctly:

https://i.imgur.com/uoQdBqa.jpg