Thread Tools Display Modes
06-27-11, 04:26 PM   #1
Bleckpan
A Fallenroot Satyr
 
Bleckpan's Avatar
AddOn Author - Click to view addons
Join Date: Jun 2010
Posts: 22
Full text not showing?

Hello everyone!
I seem to have created a mistake in my code once again. I have a font string fully set up (to my knowledge), and I have it attempting to display the current exp and the maximum exp for the level. I wanted it to display: "Current Exp / Maximum Exp" But, it is displaying only the current xp, with no slash or additional number. I am able to type in the chat box "/run print(XPCurr,"/",XPMax)" and have it print out "43878 / 154000" without a problem.

http://pastebin.com/0RsvVaWk
  Reply With Quote
06-27-11, 04:30 PM   #2
Nibelheim
local roygbi-
 
Nibelheim's Avatar
AddOn Author - Click to view addons
Join Date: Jan 2010
Posts: 1,600
XPAmount:SetText(XPCurr,"/",XPMax)

should be

XPAmount:SetText(XPCurr.." / "..XPMax)
  Reply With Quote
06-27-11, 04:33 PM   #3
Bleckpan
A Fallenroot Satyr
 
Bleckpan's Avatar
AddOn Author - Click to view addons
Join Date: Jun 2010
Posts: 22
Originally Posted by Nibelheim View Post
XPAmount:SetText(XPCurr,"/",XPMax)

should be

XPAmount:SetText(XPCurr.." / "..XPMax)
Thanks, I automatically thought it would be reasonable for something that worked with print to work with SetText.
  Reply With Quote
06-27-11, 04:45 PM   #4
Nibelheim
local roygbi-
 
Nibelheim's Avatar
AddOn Author - Click to view addons
Join Date: Jan 2010
Posts: 1,600
Originally Posted by Bleckpan View Post
Thanks, I automatically thought it would be reasonable for something that worked with print to work with SetText.
Yeah, Print is a different concept entirely. You can hand it as many arguments as you want and it will join them, very useful for printing tables.
  Reply With Quote

WoWInterface » Developer Discussions » Lua/XML Help » Full text not showing?


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