Create a single-line MessageFrame? (SOLVED)
Hello,
I can't figure how to create a single-line MessageFrame, is order to display a string during a certain time, and then fade out. Code:
local myMsgFrame = CreateFrame("MessageFrame", "myAddon_myMsgFrame", UIParent) I would like to use it in my scripts with: Code:
myMsgFrame:AddMessage(string, r, g, b, nil, holdTime) |
I don't see you telling it which font to use.
|
Oh, yes, I know several lines are missing. That's why I wrote a question mark, because I read some online documentations but didn't understand what commands should I use.
To precisely answer your question, Code:
"Fonts\\FRIZQT__.TTF", 11, "OUTLINE, MONOCHROME" |
You could use the existing UIErrorsFrame:AddExternalErrorMessage(message).
|
Quote:
|
OK, I just discovered API C_Timer.After, so I'm now able to erase a "standard" frame's text after duration.
|
All times are GMT -6. The time now is 02:24 AM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI