Originally Posted by Grimsin
... the bliz highlight as able to access the information without the calendar LOD being loaded... we how ever can not.
|
The Blizzard UI is just Lua/XML code like addons. If information is available to the Blizzard UI, it is also available to addons, though the exact same API.
See:
http://wowprogramming.com/utils/xmlb...L/GameTime.lua
The following events are relevant:
- PLAYER_ENTERING_WORLD
- CALENDAR_UPDATE_PENDING_INVITES
- CALENDAR_EVENT_ALARM
See the "GameTimeFrame_OnEvent" function to see which API functions are called to determine if there is a calendar invite pending. There's nothing magical going on there. You can even just copy/paste the code directly into your addon if you want.