Entity icon does not changes in electric network info window
Posted: Mon Aug 16, 2021 6:46 pm
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:
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?
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
why did this happen and how can I fix it?