Rift addon using wordwrap
I am a bit confused. I am using an addon that reads from a datafile, and displays that information onto the screen. I am attempting to insert that data into columns.
Rift addons cut the text after the column length is reached by default. Is there a way to use the wordwrap command to spice the text and display it below the original text with out doing this manually for each piece of information? Or even using the wordwrap command to tell me where the text needs to be spliced? ie read x from file x is too large for display in column y by 10 characters ->use wordwrap to display the additional 10 characters on line 2 of column y all I have found is that I can use a string read command and manually read each character of the datafile - then compute that into the columns |
The Text:SetWordwrap() function is what you're looking for I think.
|
out of curiosity, what add-on are you using ?
|
Wordwrap usage
It's for Guild Crafting Helper.
I add that segment, however it does not seem to work for me. The text still truncates on the single line... Here is the code I have so far Code:
I have a feeling that I am just not calling it to set the flag correctly. |
:GetWordwrap returns the values of true or false. SetWordwrap(true) to enable, or SetWordwrap(false) to disable.
Code:
window.item1:SetText(pname) |
All times are GMT -6. The time now is 07:50 PM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2022 MMOUI