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...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Chapter 27 ■ API <strong>Reference</strong> 569ConfirmationCalendarContextEventRemoveDeletes an event from the calendar.CalendarContextEventRemove([monthOffset,] day, index)Arguments:monthOffset (optional)—Month containing an event relative to the calendar’scurrently displayed month (number)-1—Month preceding the calendar’s current month0—Current month (i.e. same month as CalendarGetMonth())1—Month after the calendar’s current monthnil—Use the event selected by CalendarContextSelectEvent <strong>and</strong> ignorefurther argumentsday—Day <strong>of</strong> the month containing an event (number)index—Index <strong>of</strong> an event on the given day (from 1 to CalendarGetNumDayEvents()) (number)CalendarContextEventSignUpSigns the player up <strong>for</strong> a guild event.CalendarContextEventSignUp([monthOffset,] day, index)Arguments:monthOffset (optional)—Month containing an event relative to the calendar’scurrently displayed month (number)-1—Month preceding the calendar’s current month0—Current month (i.e. same month as CalendarGetMonth())1—Month after the calendar’s current monthnil—Use the event selected by CalendarContextSelectEvent <strong>and</strong> ignorefurther argumentsday—Day <strong>of</strong> the month containing an event (number)index—Index <strong>of</strong> an event on the given day (from 1 to CalendarGetNum-DayEvents()) (number)CalendarContextGetEventIndexReturns the month, day, <strong>and</strong> index <strong>of</strong> the event selection used only <strong>for</strong>CalendarContext functions.monthOffset, day, index = CalendarContextGetEventIndex()The selection state referenced by this function is used only by otherCalendarContext functions; other calendar event functions use the selectionstate set by CalendarOpenEvent, CalendarNewEvent, CalendarNewGuildEvent,orCalendarNewGuildAnnouncement (if they use a selectionstate at all).Used in the default UI to implement the calendar’s context menu (onright-click).

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

Saved successfully!

Ooh no, something went wrong!