Mercurial > wow > reaction
comparison 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 |
comparison
equal
deleted
inserted
replaced
212:e275a8663a16 | 213:8ba8ab8bf6dd |
---|---|
9 local LKB = ReAction.LKB | 9 local LKB = ReAction.LKB |
10 local _G = _G | 10 local _G = _G |
11 local CreateFrame = CreateFrame | 11 local CreateFrame = CreateFrame |
12 local GetBindingKey = GetBindingKey | 12 local GetBindingKey = GetBindingKey |
13 local format = string.format | 13 local format = string.format |
14 | |
15 -- libraries | |
16 local LBF = LibStub("LibButtonFacade",true) -- optional | |
17 | 14 |
18 -- private | 15 -- private |
19 local trash = CreateFrame("Frame") | 16 local trash = CreateFrame("Frame") |
20 local frameList = { } | 17 local frameList = { } |
21 local idPools = { } | 18 local idPools = { } |
257 label:Hide() | 254 label:Hide() |
258 end | 255 end |
259 end | 256 end |
260 | 257 |
261 function Button:SetNormalVertexColor( r, g, b, a ) | 258 function Button:SetNormalVertexColor( r, g, b, a ) |
262 if LBF then | 259 if ReAction.LBF then |
263 LBF:SetNormalVertexColor(self:GetFrame(), r, g, b, a) | 260 ReAction.LBF:SetNormalVertexColor(self:GetFrame(), r, g, b, a) |
264 else | 261 else |
265 self:GetFrame():GetNormalTexture():SetVertexColor(r,g,b,a) | 262 self:GetFrame():GetNormalTexture():SetVertexColor(r,g,b,a) |
266 end | 263 end |
267 end | 264 end |
268 | 265 |
269 function Button:GetNormalVertexColor() | 266 function Button:GetNormalVertexColor() |
270 if LBF then | 267 if ReAction.LBF then |
271 return LBF:GetNormalVertexColor(self:GetFrame()) | 268 return ReAction.LBF:GetNormalVertexColor(self:GetFrame()) |
272 else | 269 else |
273 return self:GetFrame():GetNormalTexture():GetVertexColor() | 270 return self:GetFrame():GetNormalTexture():GetVertexColor() |
274 end | 271 end |
275 end | 272 end |
276 | 273 |