Change Log:
2.5.2 (31-10-10)
+ A shortcut to the guild frame is now available.
2.5.1 (30-10-10)
+ The PvP frame shortcut is now fixed.
2.5.0 (30-05-10)
+ It's now registered with WTFPL license so ... Do What The **** You Want!
2.5.0 (16-03-10)
+ Fixed a potential bug.
+ Documentation update.
API:
+ GetShortcutKey(value) - Gets the shortcut key by a given text, or index value.
+ GetShortcutIndex(value) - Gets the shortcut index by a given text, or key value.
+ GetShortcutText(value) - Gets the shortcut text by a given index, or key value.
+ GetShortcutsKeys() - Gets the shortcuts keys.
+ GetShortcutsNames() - Gets the shortcuts names.
Detailed documentation can be found inside the library file.
2.0.1 (24-02-10)
+ Fixed a minor bug that may cause tainting.
2.0 (29-01-10)
+ Overhaul of the library to make things consistent and run more efficiently.
+ Fixed some tainting issues that may arise.
+ Added the following flags 'name' and 'shorthand'.
+ Removed the 'lockInCombat' and 'sideFrame' flags.
+ The mac shortcut will only be available for mac users now.
+ The messages printed by the library now specifying the library name.
Description:
A library that defines shortcuts for the game user interface.
Detailed documentation can be found inside the library file.
Shortcuts
character (shorthand: char)
spellbook (shorthand: sb)
talents (shorthand: tal)
achievements (shorthand: achi)
calendar (shorthand: cal)
questlog (shorthand: ql)
social (shorthand: soc)
pvp
lfr
lfd
guild
time
help
video (shorthand: vid)
sound (shorthand: snd)
interface (shorthand: ui)
mac
bindings (shorthand: binds)
macro
Usage
local Shortcuts = LibStub("LibShortcuts-2.0")
Shortcuts:RunShortcut("pvp")
Shortcut Attributes
Each shortcut in the table may contain the following attributes.
name - (string) The name of the frame the shortcut handles.
text - (string) A localized name of the shortcut.
func - (function) A function to execute when the shortcut is triggered.
shorthand - (string) A shorthand for the shortcut. (if one exists.)
The following example will print the localized name for the shortcut.
print(Shortcuts:GetShortcut("pvp").text) |
|