Skip to content

Commit

Permalink
classicons: allow layouts to properly size and position on initial up…
Browse files Browse the repository at this point in the history
…date
  • Loading branch information
Rainrider committed Oct 6, 2012
1 parent 28b4952 commit 2703055
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions elements/classicons.lua
Expand Up @@ -157,7 +157,6 @@ do

ClassPowerEnable = function(self)
local element = self.ClassIcons
element.__max = 4

self:RegisterEvent('UNIT_DISPLAYPOWER', Update)
self:RegisterEvent('UNIT_POWER_FREQUENT', Update)
Expand All @@ -175,7 +174,6 @@ do

ClassPowerEnable = function(self)
local element = self.ClassIcons
element.__max = HOLY_POWER_FULL

self:RegisterEvent('UNIT_DISPLAYPOWER', Update)
self:RegisterEvent('UNIT_POWER', Update)
Expand All @@ -194,7 +192,6 @@ do

ClassPowerEnable = function(self)
local element = self.ClassIcons
element.__max = PRIEST_BAR_NUM_ORBS

self:RegisterEvent('UNIT_DISPLAYPOWER', Update)
self:RegisterEvent('UNIT_POWER_FREQUENT', Update)
Expand All @@ -213,7 +210,6 @@ do

ClassPowerEnable = function(self)
local element = self.ClassIcons
element.__max = 3

self:RegisterEvent('UNIT_DISPLAYPOWER', Update)
self:RegisterEvent('UNIT_POWER_FREQUENT', Update)
Expand All @@ -231,6 +227,7 @@ local Enable = function(self, unit)
if(not element) then return end

element.__owner = self
element.__max = 0
element.ForceUpdate = ForceUpdate

if(ClassPowerEnable) then
Expand Down

0 comments on commit 2703055

Please sign in to comment.