From f04d0acd08348db38d0030f8d16a42686ca0d6fb Mon Sep 17 00:00:00 2001 From: Hendrik Leppkes Date: Sat, 3 May 2008 15:29:32 +0000 Subject: [PATCH] small tweaks --- Button.lua | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/Button.lua b/Button.lua index 7416e24..f26ad3e 100644 --- a/Button.lua +++ b/Button.lua @@ -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