WoW:User defined functions: Difference between revisions

no edit summary
(Typo fixing using AWB)
No edit summary
Line 7: Line 7:
:[[GetSellValue]](item) - Returns an item's merchant sell price.
:[[GetSellValue]](item) - Returns an item's merchant sell price.
:[[GetMinimapShape]]() - Returns a string describing the shape of the minimap (square? round? and more)
:[[GetMinimapShape]]() - Returns a string describing the shape of the minimap (square? round? and more)
:[[allAreType]](type,...) - Returns true if all the additional parameters are of the type specified.


== Arguments & Returns ==
== Arguments & Returns ==
Line 33: Line 34:
: [[Frame:SetManyAttributes]](...) - Simple function to embed in a frame to set many atributes at once.
: [[Frame:SetManyAttributes]](...) - Simple function to embed in a frame to set many atributes at once.
: [[UnregisterEventFromAllFrames]](event) - Tell all the frames listening for '''event''' to stop listening for it.
: [[UnregisterEventFromAllFrames]](event) - Tell all the frames listening for '''event''' to stop listening for it.
: [[addDropDownMenuButton]](uid, dropdown, index, title, usable, onClick [, hint]) - Adds a new button to a drop down (right-click popup) list of your choice.
== Guild Functions ==
:[[GuildNameToIndex]](name, searchOffline) - Takes a name and converts it to their index within the guild for other guild functions.


== Item Functions ==
== Item Functions ==
Line 74: Line 80:
== Time Functions ==
== Time Functions ==
:[[GameTime:Get]]()   - Get server time including seconds and milliseconds
:[[GameTime:Get]]()   - Get server time including seconds and milliseconds
:[[wait]](delay,function [, param [,param [,...]]])   - Wait a specified amount of time before running a function with the given parameters.


== See also ==
== See also ==
Anonymous user