Mercurial > wow > reaction
comparison Bar.lua @ 54:8b81d4b3e73d
Possess bar support (actions only)
author | Flick <flickerstreak@gmail.com> |
---|---|
date | Fri, 25 Apr 2008 22:13:02 +0000 |
parents | c9df7866ff31 |
children | 54308b48123c |
comparison
equal
deleted
inserted
replaced
53:7e09c02ae620 | 54:8b81d4b3e73d |
---|---|
24 | 24 |
25 if type(config) ~= "table" then | 25 if type(config) ~= "table" then |
26 error("ReAction.Bar: config table required") | 26 error("ReAction.Bar: config table required") |
27 end | 27 end |
28 | 28 |
29 local f = CreateFrame("Frame",nil,config.parent or UIParent,"SecureStateDriverTemplate") | 29 local parent = config.parent and (ReAction:GetBar(config.parent) or _G[config.parent]) or UIParent |
30 local f = CreateFrame("Frame",nil,parent,"SecureStateDriverTemplate") | |
30 f:SetFrameStrata("MEDIUM") | 31 f:SetFrameStrata("MEDIUM") |
31 config.width = config.width or 480 | 32 config.width = config.width or 480 |
32 config.height = config.height or 40 | 33 config.height = config.height or 40 |
33 f:SetWidth(config.width) | 34 f:SetWidth(config.width) |
34 f:SetWidth(config.height) | 35 f:SetWidth(config.height) |