diff classes/Button.lua @ 183:1696ff2c80cc

minor library rename/storage/cleanup
author Flick <flickerstreak@gmail.com>
date Fri, 22 Oct 2010 15:56:08 +0000
parents df68b5a40490
children 8ba8ab8bf6dd
line wrap: on
line diff
--- a/classes/Button.lua	Thu Oct 21 22:07:11 2010 +0000
+++ b/classes/Button.lua	Fri Oct 22 15:56:08 2010 +0000
@@ -6,13 +6,13 @@
 local addonName, addonTable = ...
 local ReAction = addonTable.ReAction
 local L = ReAction.L
+local LKB = ReAction.LKB
 local _G = _G
 local CreateFrame = CreateFrame
 local GetBindingKey = GetBindingKey
 local format = string.format
 
 -- libraries
-local KB = LibStub("LibKeyBound-1.0")
 local LBF = LibStub("LibButtonFacade",true) -- optional
 
 -- private
@@ -21,7 +21,7 @@
 local idPools = { }
 
 local function kb_onEnter( frame )
-  KB:Set(frame)
+  LKB:Set(frame)
 end
 
 -- Button class
@@ -79,7 +79,7 @@
 
   local clickBinding = format("CLICK %s:LeftButton", name)
   function f:GetHotkey()
-    return KB:ToShortKey(GetBindingKey(clickBinding))
+    return LKB:ToShortKey(GetBindingKey(clickBinding))
   end
 
   return self
@@ -205,7 +205,7 @@
   local border = self.frames.border or _G[format("%sBorder",tostring(self:GetName()))]
   if border then
     if mode then
-      border:SetVertexColor(KB:GetColorKeyBoundMode())
+      border:SetVertexColor(LKB:GetColorKeyBoundMode())
       border:Show()
     else
       border:Hide()