Remove old code
This commit is contained in:
@@ -46,12 +46,8 @@ function Bartender4.Button:Create(id, parent)
|
|||||||
-- overwrite some scripts with out customized versions
|
-- overwrite some scripts with out customized versions
|
||||||
button:SetScript("OnEnter", onEnter)
|
button:SetScript("OnEnter", onEnter)
|
||||||
button:SetScript("OnUpdate", onUpdate)
|
button:SetScript("OnUpdate", onUpdate)
|
||||||
|
|
||||||
--[[button:SetScript("OnEvent", button.EventHandler)
|
|
||||||
button:SetScript("OnDragStart", onDragStart)
|
button:SetScript("OnDragStart", onDragStart)
|
||||||
button:SetScript("OnReceiveDrag", onReceiveDrag)
|
button:SetScript("OnReceiveDrag", onReceiveDrag)
|
||||||
button:SetScript("PostClick", button.UpdateState)
|
|
||||||
]]
|
|
||||||
|
|
||||||
button.icon = _G[("%sIcon"):format(name)]
|
button.icon = _G[("%sIcon"):format(name)]
|
||||||
button.border = _G[("%sBorder"):format(name)]
|
button.border = _G[("%sBorder"):format(name)]
|
||||||
@@ -148,10 +144,6 @@ function onEnter(self)
|
|||||||
KeyBound:Set(self)
|
KeyBound:Set(self)
|
||||||
end
|
end
|
||||||
|
|
||||||
function onLeave()
|
|
||||||
GameTooltip:Hide()
|
|
||||||
end
|
|
||||||
|
|
||||||
local oor, oorcolor, oomcolor
|
local oor, oorcolor, oomcolor
|
||||||
|
|
||||||
function onUpdate(self, elapsed)
|
function onUpdate(self, elapsed)
|
||||||
|
|||||||
Reference in New Issue
Block a user