PLAYER_ENTERING_WORLD
Fired when the player logs in, /reloads the UI, or zones between map instances, basically whenever the loading screen appears.
PLAYER_ENTERING_WORLD: isInitialLogin, isReloadingUi
Payload
- isInitialLogin
- boolean
- isReloadingUi
- boolean
Example
local function OnEvent(self, event, isLogin, isReload)
if isLogin or isReload then
print("loaded the UI")
else
print("zoned between map instances")
end
end
local f = CreateFrame("Frame")
f:RegisterEvent("PLAYER_ENTERING_WORLD")
f:SetScript("OnEvent", OnEvent)
See also
External links
GitHub FrameXML, Gethe
Globe "wut?" Tool, Townlong-Yak
Blizzard API Docs, Townlong-Yak
Offline /api addon, MrBuds