Delay part of code
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") |
Wait for the startup-events like PLAYER_ENTERING_WORLD
http://www.wowpedia.org/Handling_events#Lua-specific |
All times are GMT -6. The time now is 11:08 AM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI