Page 1 of 1

Let LuaGuiElements have text wrapping option

Posted: Fri May 19, 2017 9:22 am
by quiloos39
I think its necessary inorder to align text in textfield.

Re: Let LuaGuiElements have text wrapping option

Posted: Fri May 19, 2017 9:29 am
by Klonan
quiloos39 wrote:I think its necessary inorder to align text.
For labels, do GuiElementLabel.single_line = false

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

Re: Let LuaGuiElements have text wrapping option

Posted: Fri May 19, 2017 5:46 pm
by quiloos39
Klonan wrote:
quiloos39 wrote:I think its necessary inorder to align text.
For labels, do GuiElementLabel.single_line = false

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

I forget to mention its a not label its textfield