12.07.2015 Views

Wiley-World.of.Warcraft.Programming.A.Guide.and.Reference.for.Creating.WoW.Addons

Wiley-World.of.Warcraft.Programming.A.Guide.and.Reference.for.Creating.WoW.Addons

Wiley-World.of.Warcraft.Programming.A.Guide.and.Reference.for.Creating.WoW.Addons

SHOW MORE
SHOW LESS
  • No tags were found...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

586 Part IV ■ <strong>Reference</strong>pendingInvite—1 if the player has been invited to this event <strong>and</strong> has not yetresponded; otherwise nil (1nil)inviteStatus—The player’s status regarding the event (number)1—Invited2—Accepted3—Declined4—Confirmed5—Out6—St<strong>and</strong>by7—Signed up8—Not signed upinviteType—Invitation/announcement type <strong>for</strong> the event (number)1—Player has been explicitly invited to the event <strong>and</strong> can accept or decline2—Event is visible to the player’s entire guild; player can sign up if desiredcalendarType—Token identifying the type <strong>of</strong> event (string)GUILD_ANNOUNCEMENT—Guild announcement (does not allow players to signup)GUILD_EVENT—Guild event (allows players to sign up)PLAYER—Player-created event or invitationSYSTEM—Other server-provided eventCalendarGetFirstPendingInviteReturns the index <strong>of</strong> the first invitation on a given day to which the player hasnot responded.index = CalendarGetFirstPendingInvite(monthOffset, day)Arguments:monthOffset—Month to query relative to the calendar’s currently displayedmonth (i.e. 0 <strong>for</strong> current month, 1 <strong>for</strong> next month, -1 <strong>for</strong> previous month)(number)day—Day <strong>of</strong> the month to query (number)Returns:index—Index <strong>of</strong> the event on the given day (from 1 to CalendarGetNum-DayEvents()) (number)CalendarGetHolidayInfoReturns additional in<strong>for</strong>mation about a holiday event.name, description, texture = iCalendarGetHolidayInfo(monthOffset, day, index)In<strong>for</strong>mation can only be retrieved <strong>for</strong> events which might be visible in thecalendar’s current month—i.e. those in the current month as well as those in(roughly) the last week <strong>of</strong> the previous month <strong>and</strong> (roughly) the first twoweeks <strong>of</strong> the following month. To reliably retrieve in<strong>for</strong>mation <strong>for</strong> eventsoutside the calendar’s current month, first change the calendar’s month withCalendarSetMonth.Arguments:monthOffset—Month to query relative to the calendar’s currently displayedmonth (i.e. 0 <strong>for</strong> current month, 1 <strong>for</strong> next month, -1 <strong>for</strong> previous month)(number)

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!