WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   Lua/XML Help (https://www.wowinterface.com/forums/forumdisplay.php?f=16)
-   -   Displaying text on screen... (https://www.wowinterface.com/forums/showthread.php?t=5721)

thejoester 08-08-06 12:27 PM

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
Quote:

attempt to index global MessageFrame' (a nil value)
any ideas what I am doing wrong?

Esamynn 08-11-06 10:43 AM

MessageFrame isn't an actual object in the UI, it is an object CLASS. Try DEFAULT_CHAT_FRAME:AddMessage()

thejoester 08-11-06 11:32 AM

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?

thejoester 08-11-06 11:52 AM

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!


All times are GMT -6. The time now is 09:17 AM.

vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI