First draft of conversion to the Blizzard template

This commit is contained in:
Hendrik Leppkes
2008-11-09 13:10:23 +01:00
parent 670913ee1a
commit 453773aebd
3 changed files with 24 additions and 306 deletions
+3 -3
View File
@@ -164,7 +164,7 @@ function BT4ActionBars:ReassignBindings()
local frame = self.actionbars[1]
ClearOverrideBindings(frame)
for i = 1,min(#frame.buttons, 12) do
local button, real_button = ("ACTIONBUTTON%d"):format(i), ("BT4Button%dSecure"):format(i)
local button, real_button = ("ACTIONBUTTON%d"):format(i), ("BT4Button%d"):format(i)
for k=1, select('#', GetBindingKey(button)) do
local key = select(k, GetBindingKey(button))
SetOverrideBindingClick(frame, false, key, real_button)
@@ -172,8 +172,8 @@ function BT4ActionBars:ReassignBindings()
end
for i = 1, 120 do
-- rename old bindings from <buttonname>Secure to only <buttonname)
local button, real_button = ("CLICK BT4Button%d:LeftButton"):format(i), ("BT4Button%dSecure"):format(i)
-- rename old bindings from <buttonname>Secure to only <buttonname>
local button, real_button = ("CLICK BT4Button%dSecure:LeftButton"):format(i), ("BT4Button%d"):format(i)
for k=1, select('#', GetBindingKey(button)) do
local key = select(k, GetBindingKey(button))