A library that defines shortcuts for the game user interface.
Shortcuts
character
spellbook
talents
achievements
calendar
questlog
social
pvp
lfr
lfd
time
help
video
sound
interface
mac
bindings
macro
Usage:
local Shortcuts = LibStub("LibShortcuts-1.2")
Shortcuts:RunShortcut("pvp")
API
RunShortcut(name) - Execute a shortcut.
Arguments.
name - (string) The name of the shortcut to execute.
GetShortcut(name) - Gets a table that contains the given shortcut.
Arguments.
name - (string) The name of the shortcut to retrieve.
Returns.
shortcut - (table) The shortcut.
NumOfShortcuts() - Gets the number of shortcuts available.
Returns.
num - (number) The number of shortcuts available.
IterateShortcuts() - Traverse through the shortcuts table.
Arguments.
mode - (string) The mode of which the function may operate to return the values in an alphabetical order.
* keys - Returns a key, value pairs.
* index - Returns an index, value pairs.
* all - Returns an index, key and value.
Returns.
iterator - (function) An iterator to traverse through the shortcuts table.
* index - (number) The position of the key.
* key - (string) The name of the shortcut.
* value - (table) The shortcut. |
|