Allow multiline caption in gui elements
- GalactusX31
- Inserter
- Posts: 28
- Joined: Thu Jul 20, 2017 11:27 am
- Contact:
Allow multiline caption in gui elements
As the title says, it would be great to be able to use " \n " to create multiline caption for gui elements
- bobingabout
- Smart Inserter
- Posts: 7352
- Joined: Fri May 09, 2014 1:01 pm
- Contact:
Re: Allow multiline caption in gui elements
Yeah, I've tried this before, it just displays \n exactly as you typed it.
Re: Allow multiline caption in gui elements
You need to set the label style to allow multiline:GalactusX31 wrote:As the title says, it would be great to be able to use " \n " to create multiline caption for gui elements
http://lua-api.factorio.com/latest/LuaS ... ingle_line
- GalactusX31
- Inserter
- Posts: 28
- Joined: Thu Jul 20, 2017 11:27 am
- Contact:
Re: Allow multiline caption in gui elements
Thank you very much, this info solve my big headache
Does this work in the same way for the caption of the buttons?
Does this work in the same way for the caption of the buttons?
Re: Allow multiline caption in gui elements
No, buttons don't support multiline text.GalactusX31 wrote:Thank you very much, this info solve my big headache
Does this work in the same way for the caption of the buttons?
If you want to get ahold of me I'm almost always on Discord.
- GalactusX31
- Inserter
- Posts: 28
- Joined: Thu Jul 20, 2017 11:27 am
- Contact:
Re: Allow multiline caption in gui elements
Is there any chance that this property will be added to the gui buttons as well in the future?
and if you can not, is there any way to "emulate" the multiline in the caption of the buttons? I would appreciate being told how it is, thanks
and if you can not, is there any way to "emulate" the multiline in the caption of the buttons? I would appreciate being told how it is, thanks
Re: Allow multiline caption in gui elements
Most likely no. Multi-line text adds a lot of overhead to a widget when buttons never need it in the base game.GalactusX31 wrote:Is there any chance that this property will be added to the gui buttons as well in the future?
and if you can not, is there any way to "emulate" the multiline in the caption of the buttons? I would appreciate being told how it is, thanks
If you want to get ahold of me I'm almost always on Discord.