Quantcast New Line LUA - WoWInterface
Thread Tools Display Modes
08-18-10, 05:49 PM   #1
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)


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
  Reply With Quote
08-18-10, 07:23 PM   #2
Fishing Trainer
Seerah's Avatar
WoWInterface Super Mod
Join Date: Oct 2006
Posts: 10,486
\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.

"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

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

  Reply With Quote

WoWInterface » 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