Page 1 of 1

[0.16.1] modding GUI multiline label

Posted: Thu Dec 14, 2017 9:44 am
by lovely_santa
Hi,

First of all, i'm not realy sure if this is a bug.. but let's find out!

In 0.15 the GUI had the ability to create multiline labels by adding the attribute single_line = false to the label element.
In 0.16 it's not in the api (and obviously it doesn't work), so i thought, maybe it has that behaviour by default, but no:

Code: Select all

          deathsTable.add{
          type = "label",
          name = "BZ_gui_lblDeathsRank",
          caption = "Score: \n† Deaths: ",
          --single_line = false
resulting in:
multiline_label.png
multiline_label.png (10.6 KiB) Viewed 1541 times
And me (and other modders on the discord server) don't find a way to make multilines except of creating a lot of labels, whats realy not the point :roll: ...

Kind regards,
lovely_santa

Re: [0.16.1] modding GUI multiline label

Posted: Thu Dec 14, 2017 10:13 am
by Klonan
it was moved to LuaStyle, so now you do

Code: Select all

label.style.single_line = false

Re: [0.16.1] modding GUI multiline label

Posted: Thu Dec 14, 2017 10:20 am
by lovely_santa
oh ty for quick answer