diff classes/Button.lua @ 213:8ba8ab8bf6dd

Demodularize LBF
author Flick <flickerstreak@gmail.com>
date Thu, 18 Nov 2010 20:07:48 -0800
parents 1696ff2c80cc
children e63aefb8a555
line wrap: on
line diff
--- a/classes/Button.lua	Thu Nov 18 13:12:16 2010 -0800
+++ b/classes/Button.lua	Thu Nov 18 20:07:48 2010 -0800
@@ -12,9 +12,6 @@
 local GetBindingKey = GetBindingKey
 local format = string.format
 
--- libraries
-local LBF = LibStub("LibButtonFacade",true) -- optional
-
 -- private
 local trash = CreateFrame("Frame")
 local frameList = { }
@@ -259,16 +256,16 @@
 end
 
 function Button:SetNormalVertexColor( r, g, b, a )
-  if LBF then
-    LBF:SetNormalVertexColor(self:GetFrame(), r, g, b, a)
+  if ReAction.LBF then
+    ReAction.LBF:SetNormalVertexColor(self:GetFrame(), r, g, b, a)
   else
     self:GetFrame():GetNormalTexture():SetVertexColor(r,g,b,a)
   end
 end
 
 function Button:GetNormalVertexColor()
-  if LBF then
-    return LBF:GetNormalVertexColor(self:GetFrame())
+  if ReAction.LBF then
+    return ReAction.LBF:GetNormalVertexColor(self:GetFrame())
   else
     return self:GetFrame():GetNormalTexture():GetVertexColor()
   end