Skip to content

Commit

Permalink
update:
Browse files Browse the repository at this point in the history
- fixed HOLY_POWER height
  • Loading branch information
sinaris committed Sep 17, 2012
1 parent abffa6a commit c799f0f
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 6 deletions.
7 changes: 6 additions & 1 deletion AsphyxiaUI/Unitframes/Layouts/Asphyxia/Asphyxia.lua
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,12 @@ do
G.UnitFrames.Player.HolyPower:CreateBackdrop( "Default" )
G.UnitFrames.Player.HolyPower.backdrop:CreateShadow( "Default" )

local maxHolyPower = UnitPowerMax( "player", SPELL_POWER_HOLY_POWER )
local maxHolyPower
if( S.level == MAX_PLAYER_LEVEL ) then
maxHolypower = 5
else
maxHolyPower = 3
end

for i = 1, maxHolyPower do
G.UnitFrames.Player.HolyPower[i]:SetStatusBarColor( 228 / 255, 225 / 255, 16 / 255 )
Expand Down
7 changes: 6 additions & 1 deletion AsphyxiaUI/Unitframes/Layouts/Asphyxia/Asphyxia2.lua
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,12 @@ do
G.UnitFrames.Player.HolyPower:CreateBackdrop( "Default" )
G.UnitFrames.Player.HolyPower.backdrop:CreateShadow( "Default" )

local maxHolyPower = UnitPowerMax( "player", SPELL_POWER_HOLY_POWER )
local maxHolyPower
if( S.level == MAX_PLAYER_LEVEL ) then
maxHolypower = 5
else
maxHolyPower = 3
end

for i = 1, maxHolyPower do
G.UnitFrames.Player.HolyPower[i]:SetStatusBarColor( 228 / 255, 225 / 255, 16 / 255 )
Expand Down
7 changes: 6 additions & 1 deletion AsphyxiaUI/Unitframes/Layouts/Asphyxia/Asphyxia3.lua
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,12 @@ do
G.UnitFrames.Player.HolyPower:CreateBackdrop( "Default" )
G.UnitFrames.Player.HolyPower.backdrop:CreateShadow( "Default" )

local maxHolyPower = UnitPowerMax( "player", SPELL_POWER_HOLY_POWER )
local maxHolyPower
if( S.level == MAX_PLAYER_LEVEL ) then
maxHolypower = 5
else
maxHolyPower = 3
end

for i = 1, maxHolyPower do
G.UnitFrames.Player.HolyPower[i]:SetStatusBarColor( 228 / 255, 225 / 255, 16 / 255 )
Expand Down
7 changes: 6 additions & 1 deletion AsphyxiaUI/Unitframes/Layouts/Asphyxia/Asphyxia4.lua
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,12 @@ do
G.UnitFrames.Player.HolyPower:CreateBackdrop( "Default" )
G.UnitFrames.Player.HolyPower.backdrop:CreateShadow( "Default" )

local maxHolyPower = UnitPowerMax( "player", SPELL_POWER_HOLY_POWER )
local maxHolyPower
if( S.level == MAX_PLAYER_LEVEL ) then
maxHolypower = 5
else
maxHolyPower = 3
end

for i = 1, maxHolyPower do
G.UnitFrames.Player.HolyPower[i]:SetStatusBarColor( 228 / 255, 225 / 255, 16 / 255 )
Expand Down
8 changes: 6 additions & 2 deletions AsphyxiaUI/Unitframes/Layouts/Asphyxia/Asphyxia5.lua
Original file line number Diff line number Diff line change
Expand Up @@ -306,11 +306,15 @@ do
G.UnitFrames.Player.HolyPower:CreateBackdrop( "Default" )
G.UnitFrames.Player.HolyPower.backdrop:CreateShadow( "Default" )

local maxHolyPower = UnitPowerMax( "player", SPELL_POWER_HOLY_POWER )
local maxHolyPower
if( S.level == MAX_PLAYER_LEVEL ) then
maxHolypower = 5
else
maxHolyPower = 3
end

for i = 1, maxHolyPower do
G.UnitFrames.Player.HolyPower[i]:SetStatusBarColor( 228 / 255, 225 / 255, 16 / 255 )

if( maxHolyPower == 3 ) then
for i = 1, 3 do
G.UnitFrames.Player.HolyPower[i]:Size( S.Scale( 232 / 3 ), 2 )
Expand Down

0 comments on commit c799f0f

Please sign in to comment.