Added Bindings.xml to allow binding of keys through the Blizzard KeyBinding menu
This commit is contained in:
@@ -36,6 +36,26 @@ function Bartender4:OnInitialize()
|
||||
if LDB then
|
||||
createLDBLauncher()
|
||||
end
|
||||
|
||||
BINDING_HEADER_Bartender4 = "Bartender4"
|
||||
BINDING_CATEGORY_Bartender4 = "Action Bars"
|
||||
for i=1,10 do
|
||||
if i > 1 then
|
||||
_G[('BINDING_CATEGORY_BT4BLANK%d'):format(i)] = "Action Bars" -- myBindings2 compat
|
||||
_G[('BINDING_HEADER_BT4BLANK%d'):format(i)] = "Bartender4 " .. L["Bar %s"]:format(i)
|
||||
end
|
||||
for k=1,12 do
|
||||
_G[("BINDING_NAME_CLICK BT4Button%dSecure:LeftButton"):format(((i-1)*12)+k)] = ("Bartender4 %s %s"):format(L["Bar %s"]:format(i), L["Button %s"]:format(k))
|
||||
end
|
||||
end
|
||||
BINDING_HEADER_BT4PET = "Bartender4 " .. L["Pet Bar"]
|
||||
BINDING_CATEGORY_BT4PET = "Action Bars"
|
||||
BINDING_HEADER_BT4STANCE = "Bartender4 " .. L["Stance Bar"]
|
||||
BINDING_CATEGORY_BT4STANCE = "Action Bars"
|
||||
for k=1,10 do
|
||||
_G[("BINDING_NAME_CLICK BT4PetButton%d:LeftButton"):format(k)] = ("Bartender4 %s %s"):format(L["Pet Bar"], L["Button %s"]:format(k))
|
||||
_G[("BINDING_NAME_CLICK BT4StanceButton%d:LeftButton"):format(k)] = ("Bartender4 %s %s"):format(L["Stance Bar"], L["Button %s"]:format(k))
|
||||
end
|
||||
end
|
||||
|
||||
function Bartender4:HideBlizzard()
|
||||
|
||||
Reference in New Issue
Block a user