User Functions
-- Returns a list of values in whatever order you specify in order and only those you specify in order. -- Mostly useful for functions that return multiple values. -- This function is horribly inefficient, I just wanted to see if it could be done. ret1, ret2, ... retN = GetReturnValues(order, functionCall) -- [talk]
<tabview> User:Egingell/Blank | [Hide] GetReturnValues | [Show GetReturnValues Page] Talk:GetReturnValues | [Show GetReturnValues Talk Page] </tabview>
-- Return how many times needle is contained in haystack. ret = CountChars(haystack, needle) -- [talk]
<tabview> User:Egingell/Blank | [Hide] CountChars | [Show CountChars Page] Talk:CountChars | [Show CountChars Talk Page] </tabview>
-- Imp strsub. Returns a string starting from start to length characters from start (identical to the PHP function of the same name). ret = substr(string, start [, length]) -- [talk]
<tabview> User:Egingell/Blank | [Hide] substr | [Show substr Page] Talk:substr | [Show substr Talk Page] </tabview>
-- Split a string into groups of "length" each ending with "endChars" (identical to the PHP function of the same name). ret = ChunkSplit(string [, length [, endChars]]) -- [talk]
<tabview> User:Egingell/Blank | [Hide] ChunkSplit | [Show ChunkSplit Page] Talk:ChunkSplit | [Show ChunkSplit Talk Page] </tabview>
-- Return the exact position the cursor is at based on scale. x, y = GetCursorScaledPosition() -- [talk]
<tabview> User:Egingell/Blank | [Hide] GetCursorScaledPosition | [Show GetCursorScaledPosition Page] Talk:GetCursorScaledPosition | [Show GetCursorScaledPosition Talk Page] </tabview>
-- Unregister an event from all applicable frames. nil = UnregisterEventFromAllFrames(string) -- [talk]
<tabview> User:Egingell/Blank | [Hide] UnregisterEventFromAllFrames | [Show UnregisterEventFromAllFrames Page] Talk:UnregisterEventFromAllFrames | [Show UnregisterEventFromAllFrames Talk Page] </tabview>
-- Tell the API to stop listen for events (...) nil = Frame:UnregisterEvents(frame, string, ...) -- [talk]
<tabview> User:Egingell/Blank | [Hide] Frame:UnregisterEvents | [Show Frame:UnregisterEvents Page] Talk:Frame:UnregisterEvents | [Show Frame:UnregisterEvents Talk Page] </tabview>
-- Tell the API to listen for events (...) nil = Frame:RegisterEvents(frame, string, ...) -- [talk]
<tabview> User:Egingell/Blank | [Hide] Frame:RegisterEvents | [Show Frame:RegisterEvents Page] Talk:Frame:RegisterEvents | [Show Frame:RegisterEvents Talk Page] </tabview>
-- Register a slash command (add all commands at the end). nil = SlashCmdList_AddSlashCommand(name, func, ...) -- [talk]
<tabview> User:Egingell/Blank | [Hide] SlashCmdList AddSlashCommand | [Show SlashCmdList AddSlashCommand Page] Talk:SlashCmdList_AddSlashCommand | [Show SlashCmdList AddSlashCommand Talk Page] </tabview>
-- Add a message to the chat frame when you gain or lose money. -- PLAYER_MONEY Event -- [talk]
<tabview> User:Egingell/Blank | [Hide] User:Egingell/PLAYER_MONEY| [Show PLAYER_MONEY Page] User_talk:Egingell/PLAYER_MONEY | [Show PLAYER_MONEY Talk Page] </tabview>
-- Make a simple context menu. -- Context Menu Maker -- [talk]
<tabview> User:Egingell/Blank | [Hide] Context Menu Maker| [Show Context Menu Maker Page] Talk:Context Menu Maker| [Show Context Menu Maker Talk Page] </tabview>
-- round input to n places number = round(input, n) -- [talk]
<tabview> User:Egingell/Blank | [Hide] round | [Show round Page] Talk:round | [Show round Talk Page] </tabview>
-- Returns the function called when using /cmd
.
slashFunction = GetSlashFunc(cmd) -- [talk]
<tabview> User:Egingell/Blank | [Hide] GetSlashFunc | [Show GetSlashFunc Page] Talk:GetSlashFunc | [Show GetSlashFunc Talk Page] </tabview>