What EVENT fires when UI elements are ready?
Code:
TimeManagerClockButton:SetScript("OnClick", function (self, button) The following works, but is PLAYER_ENTERING_WORLD really the proper event to use? Code:
local startupFrame = CreateFrame("Frame") |
Blizzard_TimeManager.toc sets the time manager as LoadOnDemand, so it is not loaded initially.
UIParent attempts to load it twice, early if an alarm is enabled, then a second time at PLAYER_LOGIN: Lua Code:
If it still somehow didn't load, TimeManager_LoadUI() is called when /stopwatch is used. Since it should load at PLAYER_LOGIN, I suggest watching ADDON_LOADED like the Stopwatch does: Lua Code:
Or just force it with TimeManager_LoadUI() a frame before your code. |
Cool, thanks!
ADDON_LOADED with Blizzard_TimeManager works perfectly! |
All times are GMT -6. The time now is 02:08 AM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI