Re-implemented Right-Click self-casting

This commit is contained in:
Hendrik Leppkes
2008-09-28 15:02:23 +02:00
parent 8a78292d77
commit 93ad63a772
4 changed files with 13 additions and 22 deletions
-16
View File
@@ -175,22 +175,6 @@ function ActionBar:AddButtonStates(state, page)
local action = (page == 0) and button.id or (button.rid + (page - 1) * 12)
button:SetStateAction(state, action)
end
self:AddRightClickState(state)
self:AddToStateButton(state)
end
function ActionBar:AddToStateButton(state)
if not self.statebutton then self.statebutton = {} end
if not tfind(self.statebutton, state) then
table_insert(self.statebutton, state)
end
end
function ActionBar:AddRightClickState(state)
local scrc = Bartender4.db.profile.selfcastrightclick
local target = scrc and "player" or nil
self:SetAttribute("unit-S" .. state .. "Right", target)
end
function ActionBar:GetStateOption(key)