WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   WoD Beta archived threads (https://www.wowinterface.com/forums/forumdisplay.php?f=151)
-   -   Provide your own keybinding category (https://www.wowinterface.com/forums/showthread.php?t=49883)

Lombra 09-13-14 07:34 AM

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.

Gello 09-13-14 08:05 AM

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.

Lombra 09-13-14 11:19 AM

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.

Phanx 09-14-14 10:08 PM

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?

Gello 09-15-14 12:04 AM

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.

Phanx 09-15-14 12:37 AM

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

Gello 09-15-14 01:21 AM

Made a post on the official enUS forums also:
http://us.battle.net/wow/en/forum/topic/14419602093


All times are GMT -6. The time now is 01:13 AM.

vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI