I am making a simple addon to display Arena rating as Text on screen with a tooltip that shows detail info.
The addon works nicely. But on login it generates a error on the part where i set the text to display due to addon loading before it have gotten arena team information. A normal /rl does not trigger any errors.
Is there anyway i can add a delay to text so it doesn't generate errors?
Code:
local Text = LBottom:CreateFontString(nil, "OVERLAY")
Text:SetText("Sometext")