change color of turret radius on map?

Place to get help with not working mods / modding interface.
User avatar
ownlyme
Filter Inserter
Filter Inserter
Posts: 445
Joined: Thu Dec 21, 2017 8:02 am
Contact:

change color of turret radius on map?

Post by ownlyme »

is it even possible?
got this request:
https://mods.factorio.com/mod/uniturret ... 000d250d04
creator of 55 mods
My api requests/suggestions: ui relative for overlay||Grenade arc||Player Modifiers||textbox::selection||Singleplayer RCON||disable car's ground sounds
posila
Former Staff
Former Staff
Posts: 5448
Joined: Thu Jun 11, 2015 1:35 pm
Contact:

Re: change color of turret radius on map?

Post by posila »

Changing the color globally is possible by changing data.raw["utility-constants"].default.chart.turret_range_color

It is not possible to set the color per turret type and I'd prefer to keep it that way, because turret ranges case humangous amount of overdraw when zoomed in, and optimizations depend on the fact they all have the same color.
User avatar
ownlyme
Filter Inserter
Filter Inserter
Posts: 445
Joined: Thu Dec 21, 2017 8:02 am
Contact:

Re: change color of turret radius on map?

Post by ownlyme »

This is very helpful.
The artillery has it's minimum range displayed as a green radius .. i think i could use that. (though i don't find it's minimum range color in utility-constants ... but green is totally fine for me)
creator of 55 mods
My api requests/suggestions: ui relative for overlay||Grenade arc||Player Modifiers||textbox::selection||Singleplayer RCON||disable car's ground sounds
Post Reply

Return to “Modding help”