Let LuaGuiElements have text wrapping option
Posted: Fri May 19, 2017 9:22 am
I think its necessary inorder to align text in textfield.
www.factorio.com
https://forums.factorio.com/
For labels, do GuiElementLabel.single_line = falsequiloos39 wrote:I think its necessary inorder to align text.
Code: Select all
local label = game.players[1].gui.center.add{type = "label", caption = "A real long string something of which i would like to see wrap in someway instead of acting like a fool"}
label.style.maximal_width = 200
label.single_line = false
Klonan wrote:For labels, do GuiElementLabel.single_line = falsequiloos39 wrote:I think its necessary inorder to align text.
So like:Code: Select all
local label = game.players[1].gui.center.add{type = "label", caption = "A real long string something of which i would like to see wrap in someway instead of acting like a fool"} label.style.maximal_width = 200 label.single_line = false