[0.16.1] modding GUI multiline label

Bugs that are actually features.
Post Reply
User avatar
lovely_santa
Filter Inserter
Filter Inserter
Posts: 502
Joined: Sat Feb 18, 2017 9:41 pm
Contact:

[0.16.1] modding GUI multiline label

Post 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 1249 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
You can find all my mods on the mod portal. Also helping on Arch666Angel's mods.
Image

User avatar
Klonan
Factorio Staff
Factorio Staff
Posts: 5152
Joined: Sun Jan 11, 2015 2:09 pm
Contact:

Re: [0.16.1] modding GUI multiline label

Post by Klonan »

it was moved to LuaStyle, so now you do

Code: Select all

label.style.single_line = false

User avatar
lovely_santa
Filter Inserter
Filter Inserter
Posts: 502
Joined: Sat Feb 18, 2017 9:41 pm
Contact:

Re: [0.16.1] modding GUI multiline label

Post by lovely_santa »

oh ty for quick answer
You can find all my mods on the mod portal. Also helping on Arch666Angel's mods.
Image

Post Reply

Return to “Not a bug”