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 29 ■ Widget <strong>Reference</strong> 1187SetPossessionFills the tooltip with in<strong>for</strong>mation about one <strong>of</strong> the special actions availablewhile the player possesses another unit.GameTooltip:SetPossession(index)Arguments:index—Index <strong>of</strong> a possession bar action (between 1 <strong>and</strong> NUM_POSSESS_SLOTS)(number)SetQuestItemFills the tooltip with in<strong>for</strong>mation about an item in a questgiver dialog.GameTooltip:SetQuestItem(“itemType“, index)Arguments:itemType—Token identifying one <strong>of</strong> the possible sets <strong>of</strong> items (string)choice - Items from which the player may choose a rewardrequired - Items required to complete the questreward - Items given as reward <strong>for</strong> the questindex—Index <strong>of</strong> an item in the set (between 1 <strong>and</strong> GetNumQuestChoices(), GetNumQuestItems(),orGetNumQuestRewards(), according toitemType) (number)SetQuestLogItemFills the tooltip with in<strong>for</strong>mation about an item related to the selected quest inthe quest log.GameTooltip:SetQuestLogItem(“itemType“, index)Arguments:itemType—Token identifying one <strong>of</strong> the possible sets <strong>of</strong> items (string)choice - Items from which the player may choose a rewardreward - Items always given as reward <strong>for</strong> the questindex—Index <strong>of</strong> an item in the set (between 1 <strong>and</strong> GetNumQuestLogChoices() or GetNumQuestLogRewards(), according to itemType)(number)SetQuestLogRewardSpellFills the tooltip with in<strong>for</strong>mation about the reward spell <strong>for</strong> the selected questin the quest log.GameTooltip:SetQuestLogRewardSpell()SetQuestLogSpecialItemFills the tooltip with in<strong>for</strong>mation about a usable item associated with a currentquest.GameTooltip:SetQuestLogSpecialItem(questIndex)Arguments:questIndex—Index <strong>of</strong> a quest log entry with an associated usableitem (between 1 <strong>and</strong> GetNumQuestLogEntries()) (number)

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

Saved successfully!

Ooh no, something went wrong!