Bartender4:

- options to configure self-casting
- implement right-click self-cast
This commit is contained in:
Hendrik Leppkes
2008-05-03 12:55:33 +00:00
parent 39f941fdc8
commit 968613450a
6 changed files with 43 additions and 12 deletions
+3 -4
View File
@@ -89,7 +89,7 @@ function Bartender4.Button:Create(id, parent)
button:SetAttribute("useparent-unit", true)
button:SetAttribute("useparent-statebutton", true)
button:SetAttribute("hidestates", "-1")
button:SetAttribute("checkselfcast", true)
--button:SetAttribute("checkselfcast", true)
button:RegisterForDrag("LeftButton", "RightButton")
button:RegisterForClicks("AnyUp")
@@ -182,9 +182,8 @@ function onUpdate(self, elapsed)
end
function Button:SetStateAction(state, action)
for i=1,2 do
self:SetAttribute(("*action-S%d%d"):format(state, i), action)
end
self:SetAttribute(("*action-S%d"):format(state), action)
self:SetAttribute(("*action-S%dRight"):format(state), action)
end
function Button:CalculateAction()