Mercurial > wow > reaction
comparison classes/Bar.lua @ 146:86564b5cbbff
Added bag button support
author | Flick <flickerstreak@gmail.com> |
---|---|
date | Thu, 30 Apr 2009 16:51:43 +0000 |
parents | 729232aeeb5e |
children | 901c91dc1bf2 |
comparison
equal
deleted
inserted
replaced
145:42cade25d40d | 146:86564b5cbbff |
---|---|
35 local parent = config.parent and (ReAction:GetBar(config.parent) or _G[config.parent]) or UIParent | 35 local parent = config.parent and (ReAction:GetBar(config.parent) or _G[config.parent]) or UIParent |
36 local f = CreateFrame("Button", name and format("ReAction-%s",name), parent, | 36 local f = CreateFrame("Button", name and format("ReAction-%s",name), parent, |
37 "SecureHandlerStateTemplate, SecureHandlerClickTemplate") | 37 "SecureHandlerStateTemplate, SecureHandlerClickTemplate") |
38 f:SetFrameStrata("MEDIUM") | 38 f:SetFrameStrata("MEDIUM") |
39 f:SetWidth(self.width) | 39 f:SetWidth(self.width) |
40 f:SetWidth(self.height) | 40 f:SetHeight(self.height) |
41 f:SetAlpha(config.alpha or 1.0) | 41 f:SetAlpha(config.alpha or 1.0) |
42 f:Show() | 42 f:Show() |
43 f:EnableMouse(false) | 43 f:EnableMouse(false) |
44 f:SetClampedToScreen(true) | 44 f:SetClampedToScreen(true) |
45 | 45 |