- now using the blizzard actionbutton template for action buttons

- this means: 
-- draging of spells in combat is possible again
-- empty buttons will be really hidden
-- the lock actionbuttons option from the BT menu is currently gone, use the interface options setting to lock moving your actions
This commit is contained in:
Hendrik Leppkes
2008-06-16 15:07:46 +00:00
parent 86d433fefe
commit e072ee9e08
4 changed files with 100 additions and 368 deletions
+12 -1
View File
@@ -183,12 +183,23 @@ 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)
end
end
for i = 1, 120 do
-- 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))
SetBindingClick(key, real_button, "LeftButton")
end
end
SaveBindings(GetCurrentBindingSet())
end
-- Creates a new bar object based on the id and the specified config