Entity icon does not changes in electric network info window

Place to get help with not working mods / modding interface.
Post Reply
Ketlambek
Manual Inserter
Manual Inserter
Posts: 4
Joined: Sat Jun 12, 2021 11:51 pm
Contact:

Entity icon does not changes in electric network info window

Post by Ketlambek »

Hi everyone!

I am creating a mod in which, in the mod settings, you can replace the usual radar graphics with graphics from the mod.

In data-updates.lua I have following code:

Code: Select all

if settings.startup["Ket-ingame-radar-graphics"].value == false then
	data.raw.item["radar"].icon = "__KetsRadars__/graphics/icons/Ket-radar-mk1.png"
	data.raw.radar["radar"].icon = "__KetsRadars__/graphics/icons/Ket-radar-mk1.png"
	data.raw.radar["radar"].pictures.layers[1].filename = "__KetsRadars__/graphics/entity/Ket-radar-mk1.png"
	data.raw.radar["radar"].pictures.layers[1].hr_version.filename = "__KetsRadars__/graphics/entity/Ket-hr-radar-mk1.png"
end
These strings change the all graphics, except for the icon in electric network info. At the same time, this does not happen with all other objects that are created in the mod, although they are created based on a copy of the radar game object.

why did this happen and how can I fix it?

Post Reply

Return to “Modding help”