Basic globals

From Riftui Wiki

Jump to: navigation, search

List

NB: See individual pages for more info and usage.

Global Parameters passed Description Returns Date Actioned
Development.Documentation() Provides addon documentation Table listing documentation
UI.CreateContext() name Creates a parent for your frame. UIParent is not a frame. Your parent
UI.CreateFrame() type, name, parent Creates a Frame Your frame
_VERSION none Gets the current Lua version 5.1, 5.2, etc
assert() condition, message Ensures condition is met All parameters
bit.arshift() x, n Arithmetic right shift of x by n Result
bit.band() x[, n...] Bitwise AND of all arguments Result
bit.bnot() x Returns bitwise NOT of argument  !x
bit.bor() x[, n...] Bitwise OR of all arguments Result
bit.bswap() x Reverses byte order (little to big endian or back) Result
bit.bxor() x[, n...] Bitwise XOR of all arguments Result
bit.lshift() x, n Logical left shift of x by n Result
bit.rol() x, n Bitwise left rotation of x by n Result
bit.ror() x, n Bitwise right rotation of x by n Result
bit.rshift() x, n Logical right shift of x by n Result
bit.tobit() x Normalizes x to numeric range Result
bit.tohex() x [, n] Converts x to hex string of type n Result
collectgarbage()
coroutine.create()
coroutine.resume()
coroutine.running()
coroutine.status()
coroutine.wrap()
coroutine.yield()
debug.traceback()
dump()
error()
gcinfo()
getfenv()
getmetatable()
ipairs()
load()
loadstring()
math.abs() x Absolute value of x Result
math.acos() x Arc cosine of x Result
math.asin() x Arc sine of x Result
math.atan() x Arc tangent of x Result
math.atan2() x, y Arc tangent of x/y Result
math.ceil() x Round up to nearest whole integer Result
math.cos() x Cosine of x Result
math.cosh() x Hyperbolic cosine of x Result
math.deg() x Convert radians to degrees Result
math.exp() x Exponent x Result e^x
math.floor() x Round down to nearest whole integer Result
math.fmod() x, y Remainder of x/y Result
math.frexp() x x=m2^e m, e
math.huge() None Mathematical infinity Infinity
math.ldexp() m, e x=m2^e x
math.log() x Natural logarithm of x Result
math.log10() x Base-10 logarithm of x Result
math.max() x, ... Finds highest value of arguments Result
math.min() x, ... Finds lowest value of arguments Result
math.mod()
math.modf()
math.pi() None Value of PI PI
math.pow() x, y x^y Result
math.rad() x Convert degrees to radians Result
math.random() [x, y] Random between 0|x, 1|y Result
math.randomseed() x Seeds pseudo-random generator
math.sin() x Sine of x Result
math.sinh() x Hyperbolic sine of x Result
math.sqrt() x Square root of x Result
math.tan() x Tangent of x Result
math.tanh() x Hyperbolic tangent of x Result
newproxy()
next()
pairs()
pcall()
print() ... prints a message to the default chat frame none
[[print_console()]] Removed 12 July 2011
print_raw() Added 12 July 2011
rawequal()
rawget()
rawset()
select()
setfenv()
setmetatable()
string.byte()
string.char()
string.find()
string.format()
string.gfind()
string.gmatch()
string.gsub()
string.len()
string.lower()
string.match()
string.rep()
string.reverse()
string.sub()
string.upper()
table.concat()
table.foreach()
table.foreachi()
table.getn()
table.insert()
table.maxn()
table.remove()
table.sort()
tonumber() a variable Converts a a string of numbers into an actual number number
tostring() Anything, usually a number Converts the input into a string string
type()
unpack()
Utility.Serialize.Inline()
xpcall()
Personal tools
Namespaces
Variants
Actions
Menu
Wiki
Toolbox