Quantcast
Displaying text on screen... - WoWInterface
Thread Tools Display Modes
08-08-06, 12:27 PM   #1
thejoester
A Deviate Faerie Dragon
AddOn Author - Click to view addons
Join Date: Jun 2006
Posts: 10
Displaying text on screen...

I am having trouble displaying text on the screen on certain events. You know how when you Zone, or complete a quest you get colored text on the screen?

How do I do that?

I read on WoWWikki and found MessageFrame:AddMessage() but it is not working.

Here is the code I used

Code:
MessageFrame:AddMessage("Test" , 1.0, 1.0, 1.0, 1.0, 5);
and I get the error
attempt to index global MessageFrame' (a nil value)
any ideas what I am doing wrong?

Last edited by thejoester : 08-08-06 at 02:18 PM.
  Reply With Quote
08-11-06, 10:43 AM   #2
Esamynn
Featured Artist
Premium Member
Featured
Join Date: Jan 2005
Posts: 395
MessageFrame isn't an actual object in the UI, it is an object CLASS. Try DEFAULT_CHAT_FRAME:AddMessage()
  Reply With Quote
08-11-06, 11:32 AM   #3
thejoester
A Deviate Faerie Dragon
AddOn Author - Click to view addons
Join Date: Jun 2006
Posts: 10
Thanks for the info... So I need to specify a particular frame name

DEFAULT_CHAT_FRAME will add it to the chat frame window, I want to add it to the screen like when you get EXP, enter a new zone or the yellow text when you get a quest item, something like one of those.

is there a list of what frames are available for this?
  Reply With Quote
08-11-06, 11:52 AM   #4
thejoester
A Deviate Faerie Dragon
AddOn Author - Click to view addons
Join Date: Jun 2006
Posts: 10
Ok, Sorry for the double post but i found something that woked

I used UIErrorsFrame:AddMessage()

Now I would like to know if anyone knows how to modify the size and effects

I found FontString:SetFont() but anyone know how I use this?

thanks for any help!
  Reply With Quote

WoWInterface » Developer Discussions » Lua/XML Help » Displaying text on screen...

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