small tweaks

This commit is contained in:
Hendrik Leppkes
2008-05-03 15:29:32 +00:00
parent 350332af1c
commit f04d0acd08
+1 -6
View File
@@ -89,7 +89,6 @@ 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:RegisterForDrag("LeftButton", "RightButton")
button:RegisterForClicks("AnyUp")
@@ -100,9 +99,6 @@ function Bartender4.Button:Create(id, parent)
button:RegisterButtonEvents()
--button:Show()
--button:UpdateAction(true)
if LBF and parent.LBFGroup then
local group = parent.LBFGroup
button.LBFButtonData = {
@@ -345,7 +341,6 @@ function Button:UpdateUsable(force)
local isUsable, notEnoughMana = IsUsableAction(self.action)
local icon, hotkey = self.icon, self.hotkey
if force or not oor then
icon.state, hotkey.state = 1, 1
oor = Bartender4.db.profile.outofrange
oorcolor, oomcolor = Bartender4.db.profile.colors.range, Bartender4.db.profile.colors.mana
end
@@ -361,7 +356,7 @@ function Button:UpdateUsable(force)
end
if isUsable then
icon:SetVertexColor(1.0, 1.0, 1.0);
icon:SetVertexColor(1.0, 1.0, 1.0)
elseif notEnoughMana then
icon:SetVertexColor(oomcolor.r, oomcolor.g, oomcolor.b)
else