From a496118599102bb37ded5b1dc23490d0c2aa3e07 Mon Sep 17 00:00:00 2001 From: Adrian L Lange Date: Thu, 13 Aug 2009 19:49:36 +0200 Subject: [PATCH] Remove global names, people can use oUF.units and oUF.objects --- oUF_P3lim.lua | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/oUF_P3lim.lua b/oUF_P3lim.lua index fc10206..3827895 100644 --- a/oUF_P3lim.lua +++ b/oUF_P3lim.lua @@ -152,7 +152,7 @@ local function styleFunction(self, unit) self:SetBackdrop(backdrop) self:SetBackdropColor(0, 0, 0) - self.Health = CreateFrame('StatusBar', self:GetName()..'_health', self) + self.Health = CreateFrame('StatusBar', nil, self) self.Health:SetPoint('TOPRIGHT', self) self.Health:SetPoint('TOPLEFT', self) self.Health:SetStatusBarTexture(texture) @@ -180,7 +180,7 @@ local function styleFunction(self, unit) self.RaidIcon:SetWidth(16) if(unit ~= 'targettarget' and unit ~= 'focus') then - self.Power = CreateFrame('StatusBar', self:GetName()..'_power', self) + self.Power = CreateFrame('StatusBar', nil, self) self.Power:SetPoint('BOTTOMRIGHT', self) self.Power:SetPoint('BOTTOMLEFT', self) self.Power:SetStatusBarTexture(texture) @@ -201,7 +201,7 @@ local function styleFunction(self, unit) self.Power.colorReaction = not pet self.PostUpdatePower = updatePower - self.Castbar = CreateFrame('StatusBar', self:GetName()..'_castbar', self) + self.Castbar = CreateFrame('StatusBar', nil, self) self.Castbar:SetPoint('TOPRIGHT', self, 'BOTTOMRIGHT', 0, -100) self.Castbar:SetPoint('TOPLEFT', self, 'BOTTOMLEFT', 0, -100) self.Castbar:SetStatusBarTexture(texture) @@ -255,7 +255,7 @@ local function styleFunction(self, unit) self:Tag(power, unit == 'player' and '[ppower][( )druidpower]' or '[ppower]') if(IsAddOnLoaded('oUF_Experience')) then - self.Experience = CreateFrame('StatusBar', self:GetName()..'_experience', self) + self.Experience = CreateFrame('StatusBar', nil, self) self.Experience:SetPoint('TOP', self, 'BOTTOM', 0, -10) self.Experience:SetStatusBarTexture(texture) self.Experience:SetStatusBarColor(unpack(colors.health)) @@ -348,8 +348,8 @@ end oUF:RegisterStyle('P3lim', styleFunction) oUF:SetActiveStyle('P3lim') -oUF:Spawn('player', 'oUF_P3lim_player'):SetPoint('CENTER', UIParent, -220, -250) -oUF:Spawn('target', 'oUF_P3lim_target'):SetPoint('CENTER', UIParent, 220, -250) -oUF:Spawn('targettarget', 'oUF_P3lim_targettarget'):SetPoint('BOTTOMRIGHT', oUF_P3lim_target, 'TOPRIGHT', 0, 5) -oUF:Spawn('focus', 'oUF_P3lim_focus'):SetPoint('BOTTOMLEFT', oUF_P3lim_player, 'TOPLEFT', 0, 5) -oUF:Spawn('pet', 'oUF_P3lim_pet'):SetPoint('RIGHT', oUF_P3lim_player, 'LEFT', -25, 0) +oUF:Spawn('player'):SetPoint('CENTER', UIParent, -220, -250) +oUF:Spawn('target'):SetPoint('CENTER', UIParent, 220, -250) +oUF:Spawn('targettarget'):SetPoint('BOTTOMRIGHT', oUF.units.target, 'TOPRIGHT', 0, 5) +oUF:Spawn('focus'):SetPoint('BOTTOMLEFT', oUF.units.player, 'TOPLEFT', 0, 5) +oUF:Spawn('pet'):SetPoint('RIGHT', oUF.units.player, 'LEFT', -25, 0) -- 1.7.9.5