Label max-width text wrapping

Place to ask discuss and request the modding support of Factorio. Don't request mods here.
Post Reply
Articulating
Long Handed Inserter
Long Handed Inserter
Posts: 71
Joined: Mon Oct 17, 2016 10:33 am
Contact:

Label max-width text wrapping

Post by Articulating »

Currently it seems to me like label.style.maximal_width doesn't have an effect on labels. It would be preferable if this instead made the text wrap after the specified value, which would be very useful in a variety of circumstances involving showing text to the player. If I'm missing something obvious then I apologise, but I haven't found a way to do this even after asking in multiple places.

Rseding91
Factorio Staff
Factorio Staff
Posts: 13210
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: Label max-width text wrapping

Post by Rseding91 »

The wrapping/text layout system that the library we're using uses is just broken and barely works for what we use it for.

There are plans to rework it for 0.15 so until then it's not really possible to make the text field work nicely with multi-line or wrapping without a ton of hacks.
If you want to get ahold of me I'm almost always on Discord.

Articulating
Long Handed Inserter
Long Handed Inserter
Posts: 71
Joined: Mon Oct 17, 2016 10:33 am
Contact:

Re: Label max-width text wrappin

Post by Articulating »

Alright, good to know it will be solved at some point, until then I'll have to use horizontal scrolling :?

Post Reply

Return to “Modding interface requests”