Download
(23Kb)
Download
Updated: 10-28-12 03:09 PM
Updated:10-28-12 03:09 PM
Created:10-28-12 11:57 AM
Downloads:1,940
Favorites:6
MD5:
Categories:Casting Bars, Cooldowns, Action Bar Mods

qUserKey (Mists of Pandaria)

Version: 2.01
by: Takamuri [More]

qUserKey updated for Mists of Pandaria. The original author (quel) has not updated this addon in nearly 2 years. I have attempted to contact him about updating his project, but have not yet received a response.

Original project: here

Original description:
Begining with The Burning Crusade, the user interface may bind keys directly to spells, abilities, macros and usable inventory items; however, the game does not provide a gui for making such key assignments. UserKey scans you spellbook, your macros, your inventory (including your bank) and provides a gui for assigning keys to those actions/items.

Usage
UserKey adds a new entry to the main game menu called "User Key Bindings" directly below the original "Key Bindings" button. Click the button and scroll through the available items. Items from the spellbook are displayed first (with tabs/schools indicated), then macros, then usable items. Then click the item you want to bind, press the key you want (including CTRL, ALT, and/or SHFT) just like the official Key Binding interface.

If you wish to know what has changed:
1) Updated TOC to 50001
2) Changed loop (old code, line 901) to loop through the new spellbooks properly. (new code, line 897)
3) Changed references to UIPanelButtonTemplate2 to UIPanelButtonTemplate. (Blizzard removed the 2 version, and made the no number version the same as the old 2)

Optional Files (0)


Post A Reply Comment Options
Unread 10-15-14, 09:08 PM  
waylander232
A Kobold Labourer

Forum posts: 0
File comments: 1
Uploads: 0
Great addon

I love this addon. Can you please update it for 6.0/WoD.
Report comment to moderator  
Reply With Quote
Unread 11-03-14, 03:22 PM  
Rickerecke
A Kobold Labourer

Forum posts: 0
File comments: 2
Uploads: 0
I can't publish a new version for patch 6.0.3, so here are my changes for the code:

In Interface\Addons\qUserKey folder change the following files:
() = code line

qUserKey.toc
Code:
## Interface: 50001
Code:
## Interface: 60000

qUserKey.lua
(36)
Code:
UK_CHARMACRO_OFFSET = 36
Code:
UK_CHARMACRO_OFFSET = 120
(404)
Code:
if (UserKeyUnBind:IsEnabled() == 1) then
Code:
if (UserKeyUnBind:IsEnabled() == true) then
(786-788)
Uncomment those lines (remove --)

(801,822)
Code:
if (rc == 1) then
Code:
if (rc == true) then
(824)
Code:
SetBindingSpell(UserKeyBindings[i].k2, "")
Code:
SetBinding(UserKeyBindings[i].k2, "")
(903,929)
Code:
if (name ~= nil) then
Code:
if (spellName ~= nil) then
(904,930)
Code:
if (IsPassiveSpell(i, BOOKTYPE_SPELL) == nil) then
Code:
if (IsPassiveSpell(i, BOOKTYPE_SPELL) == false) then
(1310-1311)
Code:
if ( (macro_exists > 36 and UK_MACRO_TYPE == 0) or
   (macro_exists < 37 and UK_MACRO_TYPE == 1) or
Code:
if ( (macro_exists > UK_CHARMACRO_OFFSET and UK_MACRO_TYPE == 0) or
   (macro_exists < UK_CHARMACRO_OFFSET+1 and UK_MACRO_TYPE == 1) or
---
If you want to brush up the code further (not necessarily),
change the following deprecated functions in every occurring line:

Code:
getglobal('something here')
Code:
 _G['something here']


Code:
table.getn('something here')
Code:
#'something here'
Last edited by Rickerecke : 11-03-14 at 03:38 PM.
Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: