WoW:User defined functions: Difference between revisions

rename "callback" to "arguments & returns". move "GetReturnValues" there.
m (Added GetReturnValues)
(rename "callback" to "arguments & returns". move "GetReturnValues" there.)
Line 5: Line 5:
Please use [[Boilerplate: User Defined Function]] when submitting new functions.
Please use [[Boilerplate: User Defined Function]] when submitting new functions.


== Callbacks ==
== Arguments & Returns ==
: [[setArgs]](myTable, "name", ...) - remember list of arguments to use for a callback
: [[setArgs]](myTable, "name", ...) - remember list of arguments to use for a callback
: [[getArgs]](myTable, "name", ...) - retreive stored list of arguments, plus optional extras
: [[getArgs]](myTable, "name", ...) - retreive stored list of arguments, plus optional extras
: [[GetReturnValues|GetReturnValues]](order, functionCall) - Get the return values from ''functionCall'' in any ''order'' you want.


== Color Functions ==
== Color Functions ==
Line 28: Line 29:
: [[Memorizing table]] - A special table that calculates values as needed and saves them into itself
: [[Memorizing table]] - A special table that calculates values as needed and saves them into itself


== Return Value Functions ==
: [[GetReturnValues|GetReturnValues]](order, functionCall) - Get the return values from ''functionCall'' in any ''order'' you want.


== String Functions ==
== String Functions ==
Anonymous user