View Single Post
02-08-17, 03:58 PM   #7
Seerah
Fishing Trainer
 
Seerah's Avatar
WoWInterface Super Mod
Featured
Join Date: Oct 2006
Posts: 10,860
Ah, getting info from the calendar. That's helpful to know.

In my Bear in Mind addon, I have the Blizzard_Calendar listed as a dependency. I then looked through the UI source code and found how they update and gather calendar info.

You can look in BiM.lua if you like to see how I gather the day's events (just don't straight up copy it ). The relevant code is at the end of the BiM.PlayerLogin function, which then also calls the CheckForCalendarEvents function above that.
__________________
"You'd be surprised how many people violate this simple principle every day of their lives and try to fit square pegs into round holes, ignoring the clear reality that Things Are As They Are." -Benjamin Hoff, The Tao of Pooh

  Reply With Quote