Hi,
I am currently trying to get GetBindingKey to work with the Multi Action Bars, but I have yet to manage. The code below prints the keybinds for the Action Bar, but not the Multi Action Bars. It does run through completely since print(buttonName) prints the Multi Action Bar names as well as the Action Bar.
The problem seems to be the code: key1, key2 = GetBindingKey(buttonName)
Any help would be appreciated.
local dashingTemp = CreateFrame("Frame")
function dashingBindings()
local buttonName
local actionType, id, _, actionName
local key1, key2
local ActionBars = {"Action","MultiBarBottomLeft","MultiBarBottomRight","MultiBarLeft","MultiBarRight"}
for bar = 1, #ActionBars do
for i = 1, 12 do
buttonName = ActionBars[bar] .. "Button" .. i
actionType, id, _ = GetActionInfo(_G[buttonName].action)
actionName = GetSpellInfo(id)
print(buttonName)
key1, key2 = GetBindingKey(buttonName)
if key1 ~= nil then
print(key1)
end
if key2 ~= nil then
print(key2)
end
end
end
end
local function dashingInit(self, event, ...)
dashingBindings()
end
dashingTemp:RegisterEvent("PLAYER_LOGIN")
dashingTemp:SetScript("OnEvent", dashingInit)