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.

678 Part IV ■ <strong>Reference</strong>GetChatWindowMessagesReturns the saved list <strong>of</strong> messages to which a chat window is subscribed.... = GetChatWindowMessages(index)Arguments:index—Index <strong>of</strong> a chat frame (between 1 <strong>and</strong> NUM_CHAT_WINDOWS)(number)Returns:...—A list <strong>of</strong> chatMsgTypes <strong>for</strong> which the chat window is subscribed (list)GetClickFrameReturns the Frame object associated with the given name.frame = GetClickFrame(“name“)Returns nil if there is no UI object with the name given, or if the named UIobject is not a Frame.Arguments:name—Name <strong>of</strong> a Frame or other UI object (string)Returns:frame—A reference to the named frame (table)GetCoinIconReturns an icon representing an amount <strong>of</strong> money.icon = GetCoinIcon(amount)Arguments:amount—Amount <strong>of</strong> money in copper (number)Returns:icon—Path to an icon texture representing the amount (string)Interface\Icons\INV_Misc_Coin_01—Small amount <strong>of</strong> GoldInterface\Icons\INV_Misc_Coin_02—Large amount <strong>of</strong> GoldInterface\Icons\INV_Misc_Coin_03—Small amount <strong>of</strong> SilverInterface\Icons\INV_Misc_Coin_04—Large amount <strong>of</strong> SilverInterface\Icons\INV_Misc_Coin_05—Small amount <strong>of</strong> CopperInterface\Icons\INV_Misc_Coin_06—Large amount <strong>of</strong> CopperGetCoinTextReturns a localized string describing an amount <strong>of</strong> money.coinText = GetCoinText(amount, “separator“)Arguments:amount—Amount <strong>of</strong> money in copper (number)separator—String to use as separator (’, ‘ is used if nil) (string)Returns:coinText—Text description <strong>of</strong> the amount using localized names <strong>for</strong> ‘Gold’,‘Silver’ <strong>and</strong> ‘Copper’ (string)

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

Saved successfully!

Ooh no, something went wrong!