Reply
Thread Tools Display Modes
Unread 08-18-10, 05:49 PM   #1
Porsha
A Black Drake
Join Date: Apr 2008
Posts: 88
New Line LUA

Hi again all

I'm trying to get Lynlocation to set the coords and Location on different lines..

Coords below the Location instead of beside it

I tried \n (saw that somewhere for "new line") but when I put it in either of these places (in Bold) -

text:SetText(zone..\n coords)

or

coords = " "..format("%.2d.%.2d" \n,x*100,y*100)

it throws errors...

Any idea how I can achieve this? I thought I could grab a text string layout but it isnt as simple as I imagined.

Thank you again
Porsha is offline   Reply With Quote
Unread 08-18-10, 07:23 PM   #2
Seerah
Fishing Trainer
 
Seerah's Avatar
WoWInterface Super Mod
Featured
Join Date: Oct 2006
Posts: 9,586
\n isn't a Lua command that tells a fontstring to create a new line. It is something placed within the string that then gets parsed when the string is read and put on display.

Code:
text:SetText(zone.."\n"..coords)
__________________
"You'd be surprised how many people violate this simple principle every day of their lives and try to fit square pegs into round holes, ignoring the clear reality that Things Are As They Are." -Benjamin Hoff, The Tao of Pooh

Seerah is offline   Reply With Quote
Unread 08-18-10, 08:34 PM   #3
Porsha
A Black Drake
Join Date: Apr 2008
Posts: 88
Thank you SO much!!

worked!
Porsha is offline   Reply With Quote
Reply

Go BackWoWInterface » Developer Discussions » Lua/XML Help » New Line LUA

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off