Quantcast Provide your own keybinding category - WoWInterface
 
Thread Tools Display Modes
09-13-14, 07:34 AM   #1
Lombra
A Molten Giant
 
Lombra's Avatar
AddOn Author - Click to view addons
Join Date: Nov 2006
Posts: 554
Provide your own keybinding category

Don't know if this has been "documented" somewhere or is just widely known anyway, but here goes.

The new keybinding UI has nicely separated categories, and you may have your own for your addon's bindings. Just specify the category attribute on each binding to be included in the category. It will load a global or a string, like some other XML string attributes. Custom categories are placed at the bottom, above "Other".
Code:
<Bindings>
	<Binding name="MYADDON_COMMAND" category="My addon">
		ToggleFrame(MyAddonFrame)
	</Binding>
</Bindings>
You may also combine it with the existing header attribute.

Personally I hope people won't use their own categories if they only have like a coupla bindings, though.
__________________
Grab your sword and fight the Horde!
 
09-13-14, 08:05 AM   #2
Gello
A Firelord
AddOn Author - Click to view addons
Join Date: Jan 2005
Posts: 488
That's a neat find.

I think they should renamed "Others" to "Addons" personally. Will there ever be Blizzard bindings in that category? If not, it'd make more sense to name it "Addons" so a user knows that's where to go to set addon bindings.
 
09-13-14, 11:19 AM   #3
Lombra
A Molten Giant
 
Lombra's Avatar
AddOn Author - Click to view addons
Join Date: Nov 2006
Posts: 554
Yes, maybe. Everything that doesn't have a category will go there. I guess they're not gonna put anything there. Especially as they already have a "Misc" category.
__________________
Grab your sword and fight the Horde!
 
09-14-14, 10:08 PM   #4
Phanx
Cat.
 
Phanx's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2006
Posts: 5,617
Oh, this is nice. Before anything gets established, I'd like to propose that everyone put your addon's bindings in the "ADDONS" category (yes, all-caps, it's a Blizzard global string that contains the translated word for "AddOns" in the user's language) unless you have a large number of bindings (eg. Bartender4) in which case they should go in their own category. Thoughts?
__________________
Author/maintainer of Grid, PhanxChat, oUF_Phanx, and many more.
Troubleshoot an addonTurn any code into an addonMore addon resources
Need help with your code? Post all of your actual code! Attach or paste your files.
Please don’t PM me about addon bugs or code questions. Post a comment or forum thread instead!
 
09-15-14, 12:04 AM   #5
Gello
A Firelord
AddOn Author - Click to view addons
Join Date: Jan 2005
Posts: 488
Yeah that would work nicely. If there was enough addons doing it, it would be expected of addons to put stuff in the AddOns category.

I'll be sure to add category="ADDONS" to my addons' bindings.
 
09-15-14, 12:37 AM   #6
Phanx
Cat.
 
Phanx's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2006
Posts: 5,617
Also posted this over on WowAce to spread the word, though those forums are basically dead these days:
http://forums.wowace.com/showthread.php?t=21715
__________________
Author/maintainer of Grid, PhanxChat, oUF_Phanx, and many more.
Troubleshoot an addonTurn any code into an addonMore addon resources
Need help with your code? Post all of your actual code! Attach or paste your files.
Please don’t PM me about addon bugs or code questions. Post a comment or forum thread instead!
 
09-15-14, 01:21 AM   #7
Gello
A Firelord
AddOn Author - Click to view addons
Join Date: Jan 2005
Posts: 488
Made a post on the official enUS forums also:
http://us.battle.net/wow/en/forum/topic/14419602093
 
 

WoWInterface » Site Forums » Archived Beta Forums » WoD Beta archived threads » Provide your own keybinding category

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off