Display text in the ORIGIN_FRAME_TOP_MSG

Status
Not open for further replies.
Level 24
Joined
Jun 26, 2020
Messages
1,928
Hello, I wanna display text in the top msg frame (where appears the upkeep warnings), something like this (is simplyfied):
Lua:
TopMsg = BlzGetOriginFrame(ORIGIN_FRAME_TOP_MSG, 0)
BlzFrameSetVisible(TopMsg, true)
BlzFrameSetText(TopMsg, "Message")
But doesn't work, the message is not appearing, what's wrong? (I didn't updated to 1.33 if you ask).
 
I would say ORIGIN_FRAME_TOP_MSG itself does not display the text, probably a child does. I think it is a SimpleFrame hence the child natives will not find the String-Frame displaying the text.

Guess you need to either Create a custom Frame. Or you use the prebuilt Food limit levels to have upto 10 static messages.
 
Level 24
Joined
Jun 26, 2020
Messages
1,928
I would say ORIGIN_FRAME_TOP_MSG itself does not display the text, probably a child does. I think it is a SimpleFrame hence the child natives will not find the String-Frame displaying the text.

Guess you need to either Create a custom Frame. Or you use the prebuilt Food limit levels to have upto 10 static messages.
It seems my option is create the frame, because I need more than 10 messages.
 
Status
Not open for further replies.
Top