diff --git a/oUF_P3lim.lua b/oUF_P3lim.lua
index 9168f5b..6703328 100644
--- a/oUF_P3lim.lua
+++ b/oUF_P3lim.lua
@@ -134,8 +134,7 @@ local function Style(self, unit)
if(slimUnit) then
local debuffs = CreateFrame('Frame', nil, self)
- debuffs:SetHeight(19)
- debuffs:SetWidth(66)
+ debuffs:SetSize(66, 19)
debuffs.num = 3
debuffs.size = 19
debuffs.spacing = 4
@@ -178,13 +177,12 @@ local function Style(self, unit)
power.bg = powerBG
local castbar = CreateFrame('StatusBar', nil, self)
- castbar:SetWidth(petUnit and 105 or 205)
- castbar:SetHeight(16)
+ castbar:SetSize(petUnit and 105 or 205, 16)
castbar:SetStatusBarTexture(TEXTURE)
castbar:SetStatusBarColor(1/4, 1/4, 2/5)
castbar:SetBackdrop(BACKDROP)
castbar:SetBackdropColor(0, 0, 0)
- castbar.CustomTimeText = CustomCastTime
+ castbar.CustomTimeText = CustomCastText
local castbarBG = castbar:CreateTexture(nil, 'BORDER')
castbarBG:SetAllPoints(castbar)
@@ -204,8 +202,7 @@ local function Style(self, unit)
castbar.Text = castbarText
local castbarDummy = CreateFrame('Frame', nil, castbar)
- castbarDummy:SetHeight(21)
- castbarDummy:SetWidth(21)
+ castbarDummy:SetSize(21, 21)
castbarDummy:SetBackdrop(BACKDROP)
castbarDummy:SetBackdropColor(0, 0, 0)
@@ -226,12 +223,10 @@ local function Style(self, unit)
local raidicon = health:CreateTexture(nil, 'OVERLAY')
raidicon:SetPoint('TOP', self, 0, 8)
- raidicon:SetHeight(16)
- raidicon:SetWidth(16)
+ raidicon:SetSize(16, 16)
health:SetPoint('TOPRIGHT')
health:SetPoint('TOPLEFT')
- health:SetHeight(20)
self.Power = power
self.Castbar = castbar
@@ -261,8 +256,7 @@ local function Style(self, unit)
if(unit == 'player' or unit == 'target') then
local buffs = CreateFrame('Frame', nil, self)
buffs:SetPoint('TOPLEFT', self, 'TOPRIGHT', 4, 0)
- buffs:SetHeight(44)
- buffs:SetWidth(236)
+ buffs:SetSize(236, 44)
buffs.num = 20
buffs.size = 20
buffs.spacing = 4
@@ -273,8 +267,7 @@ local function Style(self, unit)
if(unit == 'target') then
local debuffs = CreateFrame('Frame', nil, self)
debuffs:SetPoint('TOPLEFT', self, 'BOTTOMLEFT', 0, -4)
- debuffs:SetHeight(19.4)
- debuffs:SetWidth(230)
+ debuffs:SetSize(230, 19.4)
debuffs.num = 20
debuffs.size = 19.4
debuffs.spacing = 4
@@ -294,13 +287,11 @@ local function Style(self, unit)
else
local leader = health:CreateTexture(nil, 'OVERLAY')
leader:SetPoint('TOPLEFT', self, 0, 8)
- leader:SetHeight(16)
- leader:SetWidth(16)
+ leader:SetSize(16, 16)
local assistant = health:CreateTexture(nil, 'OVERLAY')
assistant:SetPoint('TOPLEFT', self, 0, 8)
- assistant:SetHeight(16)
- assistant:SetWidth(16)
+ assistant:SetSize(16, 16)
local info = health:CreateFontString(nil, 'OVERLAY')
info:SetPoint('CENTER')
@@ -321,8 +312,7 @@ local function Style(self, unit)
if(petUnit) then
local auras = CreateFrame('Frame', nil, self)
auras:SetPoint('TOPRIGHT', self, 'TOPLEFT', -4, 0)
- auras:SetHeight(44)
- auras:SetWidth(256)
+ auras:SetSize(256, 44)
auras.size = 22
auras.spacing = 4
auras.initialAnchor = 'TOPRIGHT'
diff --git a/oUF_P3limTags.lua b/oUF_P3limTags.lua
index d8cc044..b332c7d 100644
--- a/oUF_P3limTags.lua
+++ b/oUF_P3limTags.lua
@@ -1,4 +1,3 @@
-local unpack = unpack
local format = string.format
local gsub = string.gsub