Larger map tag icons/text

Place to ask discuss and request the modding support of Factorio. Don't request mods here.
Honktown
Smart Inserter
Smart Inserter
Posts: 1072
Joined: Thu Oct 03, 2019 7:10 am
Contact:

Larger map tag icons/text

Post by Honktown »

I was asked to look into making map tags larger (the main icon and text) larger. The icons aren't difficult, but changing those alone makes labels tiny. The label text has no configuration and only changing the font can change the size. Changing the font inside the label text causes a mess with selectors, lists.

Here's an example of a bad result:
label_scaling.jpg
label_scaling.jpg (622.36 KiB) Viewed 171 times

The text directly being modified results in cut off names, and probably anywhere else text is used in a list, so this issue would be present in all those cases. Since my goal was only for the text to be bigger (not necessarily different), scaling value(s) in the interface would be convenient for both icon size and label text. A font setting could also work, with the selected font only used on the map, but fonts are prototype dependent. It would also mess with anyone else making custom map fonts.

I recognize these threads exist:
viewtopic.php?p=638369
viewtopic.php?p=612434

I bring this thread because I got at least partway there and it's a mix of game suggestion, but also exposing the properties, somewhere. Having a scale option for the default in settings or utility-constants, and a setting/slider in tag creation / editing would also be a useful interface. A value on the LuaCustomChartTag could expose that to modders. Train stops or other labels would be more cases, less easy to expose.

I can understand why icons were not given there full zoom capability (visible from the utility constants). Example of original size font with increased custom_tag_max_scale to match the custom_tag_scale :
original_font.jpg
original_font.jpg (20.24 KiB) Viewed 171 times

Scale while zooming out is more exaggerated.
zoomed_out.jpg
zoomed_out.jpg (45.91 KiB) Viewed 171 times
I have mods! I guess!
Link
Post Reply

Return to “Modding interface requests”