View Single Post
11-12-22, 05:55 PM   #1
Walkerbo
A Cobalt Mageweaver
 
Walkerbo's Avatar
AddOn Author - Click to view addons
Join Date: Oct 2010
Posts: 233
Navigating to a keybinding category

Hi all

After the changes brought about by 10 the keybindings menu is now available in the game options.
I had a button that opened my keybinding list.
Previously I used;
Lua Code:
  1. SwarmKeybindingButton:SetScript(
  2.     "OnClick",
  3.     function()
  4.         GameMenuButtonKeybindings:Click("RightButton")
  5.         InterfaceOptionsFrame:Hide()
  6.         KeyBindingFrame:Show()
  7.         for _, v in pairs(KeyBindingFrame.categoryList.buttons) do
  8.             if v:GetText() == "Walkerbo's Addons" or v:GetText() == "WALKERBO'S ADDONS" then
  9.                 v:Click()
  10.             end
  11.         end
  12.     end
  13. )

I know that the keybindings header tags are not working yet, so I won't be able to jump directly to an individual keybindings header; but how do I now open directly to my category of keybinds?
__________________
"As someone once told me, frames are just special types of tables, and tables are special types of pointers."
Fizzlemizz
  Reply With Quote