View Single Post
04/18/14, 11:13 PM   #1
katkat42
AddOn Author - Click to view addons
Join Date: Apr 2014
Posts: 155
Question Add item to the keybind bar?

You know the keybind bar, that bar at the bottom of the vanilla UI elements, that says, for example when looting, "Take [E]" "Take All [R]" "Exit [Alt]" ? Does anyone know how to add my own button to the pre-existing bar?

I know the bar is controlled by the KEYBIND_STRIP global. I know there are functions within this variable called AddKeybindButton(), AddKeybindButtonGroup(), and AddButtonToAnchors(). Does anyone know the arguments that these functions might take?

Also, when do I call the function to add the keybind to the bar? Do I call when the provisioning window opens? Sometime before or after? Do I trigger it with an event callback?

Thanks in advance!
  Reply With Quote