#Lua menu items - text can go outside of text box

1 messages · Page 1 of 1 (latest)

worthy tusk
#

This happens on the Title (as shown) and the individual menu items (the first menu item cuts off in the word pieces).

Here's the menu script

menu(heading, "Upgrade Axe (Wood Axe -> Steel Axe) - 100000 Gold Pieces", "Increase Sell Price (0 -> 0.1x)", "Increase Block Drops (0 -> 0.1x)")

Ideally, these menu item boxes should dynamically change to fit the size of the text.

full phoenix
#

I think its due to the heading, part. If you remove that it should work correctly.

worthy tusk
#

Heading is a variable defined like so

local heading = [[Upgrade shop
And extra line of text here…
And another…
]]
#

It can support multi line text, but the box of the heading cannot

full phoenix
#

Ahh i didnt know you could do multiline menus. Interesting