LuaCustomChartTag.scale

Place to ask discuss and request the modding support of Factorio. Don't request mods here.
Post Reply
User avatar
eradicator
Smart Inserter
Smart Inserter
Posts: 5206
Joined: Tue Jul 12, 2016 9:03 am
Contact:

LuaCustomChartTag.scale

Post by eradicator »

For a custom entity I'd like to show a map icon that is exactly the same size as the entity itself on the map. The same as "Recipe Icons" map toggle does for assemblers. It'd be really nice to have a runtime-writable "scale" property where scale = 1 means that the icon will be approximately one tile in size on the map, so that I can precisely control the size of the tag without knowing the size of the icon sprite.
tagscale.png
tagscale.png (65.12 KiB) Viewed 509 times
Author of: Belt Planner, Hand Crank Generator, Screenshot Maker, /sudo and more.
Mod support languages: 日本語, Deutsch, English
My code in the post above is dedicated to the public domain under CC0.

Post Reply

Return to “Modding interface requests”