If you just want to show text on screen, you can really just use a regular frame.
Really just, local f = CreateFrame("frame"), then f.text = f:CreateFontString(nil, "OVERLAY")
And you set the text via f.text:SetText("text")
with f.text:SetPoint("CENTER", f)
Then you've got to write the relevant code to have the frame show on screen where you want it and when you want it to, of course, but I think you've already got that part figured out (otherwise I can go in more detail and write actual code, rather than just giving pointers.)
Just off the top of my head, but that should be right.
GameFontHighlightLarge isn't a font, it's a template. You want to use f.text:SetFont(fontname, fontsize, fontflags)
Last edited by Ammako : 02-08-18 at 02:57 PM.
|