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.

Chapter 27 ■ API <strong>Reference</strong> 913bar3—1 to show the right-side ActionBar; otherwise nil (1nil)bar4—1 to show the second right-side ActionBar; otherwise nil (1nil)alwaysShow—1 to always show ActionBar backgrounds even <strong>for</strong> empty slots;otherwise nil (1nil)SetActiveTalentGroupSwitches the player’s active talent specialization.SetActiveTalentGroup(talentGroup)Calling this function with the index <strong>of</strong> an inactive talent group does notimmediately per<strong>for</strong>m the switch: it begins casting a spell (‘‘Activate Primary/Secondary Spec’’), <strong>and</strong> only once the spellcast is complete are the player’stalents changed.Calling this function with the index <strong>of</strong> the active talent group, or with anyargument if the player has not purchased Dual Talent Specialization, doesnothing.Arguments:talentGroup—Index <strong>of</strong> the talent specialization to enable (number)SetActiveVoiceChannelSets the currently active voice channel.SetActiveVoiceChannel(index)Arguments:index—Index <strong>of</strong> a channel in the chat display window (between 1 <strong>and</strong>GetNumDisplayChannels()) (number)SetActiveVoiceChannelBySessionIDSets the currently active voice chat channel.SetActiveVoiceChannelBySessionID(session)Arguments:session—Index <strong>of</strong> a voice session (between 1 <strong>and</strong> GetNumVoiceSessions())(number)SetArenaTeamRosterSelectionSelects a member in an arena team roster.SetArenaTeamRosterSelection(team, index)Selection in the arena team roster currently has no effect beyond highlightinglist entry in the default UI.Arguments:team—Index <strong>of</strong> one <strong>of</strong> the player’s arena teams (number, arenaTeamID)index—Index <strong>of</strong> a team member to select (between 1 <strong>and</strong> GetNumArenaTeamMembers(team)) (number)SetBagPortraitTextureSets a Texture object to display the icon <strong>of</strong> one <strong>of</strong> the player’s bags.SetBagPortraitTexture(texture, container)

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

Saved successfully!

Ooh no, something went wrong!