Jump to content

Label


Dzejki

Recommended Posts

wordBreak: if set to true, the text will wrap to a new line whenever it reaches the right side of the bounding box. If false, the text will always be completely on one line.

He means that I think

Edit you can also try scripting it like this

function string.insert(value, insert, place) 
    if place == nil then 
        place = string.len(value)+1 
    end 
    return string.sub(value, 1,place-1) .. string.gsub(string.sub(value, place,place), string.sub(value, place,place), insert) .. string.sub(value, place, string.len(value)) 
end 
  
local characterFitLabel = 15 -- Example that 15 characters fit label 
local labeltext = "Example of text 123" 
  
label = guiCreateLabel(20, 20, 50, 305, labeltext, false) 
  
  
if (#labeltext >= characterFitLabel) then 
    labeltext = string.insert( labeltext, "\n", characterFitLabel ) 
    guiSetText(label, labeltext) 
end 

This is just an example, I don't know if it will work

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...