Talk:API GetBinding

From Wowpedia
Jump to: navigation, search

I was having trouble with this function and decided to do a full-pull of the data.

The output does not line up with the interface description.

Either the original author made a bad mistake or the interface has changed since this page was written.

Instead of this: command, key1, key2, ... = GetBinding(index)

It appears to be this: command, <undocumented string>, key1, key2, ..., keyn = GetBinding(index)

The range of values for the undocumented string for my run (on my toon, with my add-ons - this is nowhere near being definitive) is: ADDONS, BINDING_HEADER_ACTIONBAR, BINDING_HEADER_CAMERA, BINDING_HEADER_CHAT, BINDING_HEADER_ELVUI, BINDING_HEADER_INTERFACE, BINDING_HEADER_MISC, BINDING_HEADER_MOVEMENT, BINDING_HEADER_MULTIACTIONBAR, BINDING_HEADER_RAID_TARGET, BINDING_HEADER_TARGETING, BINDING_HEADER_VEHICLE, and nil (granted, at least the BINDING_HEADER_ELVUI is from one of the add-ons that I have installed, I can't see the entire interface of this function being off because I use ElvUI).

Corrections to this page need to include (but are not limited to) explaining what those undocumented strings refer to, explaining that add-ons can affect the values in those strings, adjusting both the summary and detailed interface descriptions to include the undocumented string, and coming up with an agreed-upon name for the undocumented string.

I'm more than willing to take this on, but I do not want to impose my ideas and patterns here on a page that needs so much rewrite.

Mltco78dhs (talk) 20:27, 30 July 2017 (UTC)

As the page is over 10 years old, it's likely that the parameters have changed since then. Unfortunately I'm not very well versed in these matters, so I don't have much else to add. Maybe this bump will lure some editors with more insight than me to this page :) PeterWind (talk) 21:36, 30 July 2017 (UTC)

Kenhiatt (talk) Looking at the source of ElvUI and other addons that do bindings via XML, it looks like the 'undocumented string' is the category. Unless someone objects here I'll make the change to the page (or someone reading this can do so...I'll probably check back for objections in the next day or two).