Alternative Alt Mode


Replaces the standard Alt-Mode by providing more information for more objects. This information is shown only for entities around the player cursor, so the graphics of other objects can be enjoyed without always having an information overlay on top of them.

Utilities
25 days ago
2.0
693

g IconDrawSpecification

10 months ago

Hi!
Please tell me how to add a supported entity correctly so that the icon is smaller?
I understand that you use the "IconDrawSpecification" parameter, but I can't apply it, and the icon does not change.
For example, if you use the entity change code:

data.raw["storage-tank"]["network-tank"].icon_draw_specification = { scale = 0.5, scale_for_many = 0.5, render_layer = "entity-info-icon" }

It doesn't work, what am I specifying incorrectly?

25 days ago

Hi, apologies for the late reply.
The network tank used the regular storage tank specifications.

As of base version 2.0.66 it is now possible to directly read the icon draw specification from the prototypes at run time
(https://forums.factorio.com/viewtopic.php?f=28&t=125562&p=658621). So I've updated the mod to use those instead of guessing.

Available in version 0.4.0

New response