Skip to content

Commit

Permalink
update:
Browse files Browse the repository at this point in the history
- fixed #27
  • Loading branch information
sinaris committed Sep 18, 2012
1 parent 7eddd47 commit f94a51e
Show file tree
Hide file tree
Showing 5 changed files with 80 additions and 60 deletions.
28 changes: 16 additions & 12 deletions AsphyxiaUI/Unitframes/Layouts/Asphyxia/Asphyxia.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1657,21 +1657,25 @@ FramePositions:SetScript( "OnEvent", function( self, event, addon )
G.UnitFrames.Focus:SetPoint( "TOP", UIParent, "BOTTOM", -450, 600 )
G.UnitFrames.FocusTarget:SetPoint( "TOP", G.UnitFrames.Focus, "BOTTOM", 0 , -43 )

for i = 1, MAX_BOSS_FRAMES do
G.UnitFrames["Boss" .. i]:ClearAllPoints()
if( i == 1 ) then
G.UnitFrames["Boss" .. i]:SetPoint( "TOP", UIParent, "BOTTOM", 450, 600 )
else
G.UnitFrames["Boss" .. i]:SetPoint( "TOP", G.UnitFrames["Boss" .. i - 1], "BOTTOM", 0, -43 )
if( C["unitframes"]["showboss"] == true ) then
for i = 1, MAX_BOSS_FRAMES do
G.UnitFrames["Boss" .. i]:ClearAllPoints()
if( i == 1 ) then
G.UnitFrames["Boss" .. i]:SetPoint( "TOP", UIParent, "BOTTOM", 450, 600 )
else
G.UnitFrames["Boss" .. i]:SetPoint( "TOP", G.UnitFrames["Boss" .. i - 1], "BOTTOM", 0, -43 )
end
end
end

for i = 1, 5 do
G.UnitFrames["Arena" .. i]:ClearAllPoints()
if( i == 1 ) then
G.UnitFrames["Arena" .. i]:SetPoint( "TOP", UIParent, "BOTTOM", 450, 600 )
else
G.UnitFrames["Arena" .. i]:SetPoint( "TOP", G.UnitFrames["Arena" .. i - 1], "BOTTOM", 0, -43 )
if( C["unitframes"]["arena"] == true ) then
for i = 1, 5 do
G.UnitFrames["Arena" .. i]:ClearAllPoints()
if( i == 1 ) then
G.UnitFrames["Arena" .. i]:SetPoint( "TOP", UIParent, "BOTTOM", 450, 600 )
else
G.UnitFrames["Arena" .. i]:SetPoint( "TOP", G.UnitFrames["Arena" .. i - 1], "BOTTOM", 0, -43 )
end
end
end
end )
28 changes: 16 additions & 12 deletions AsphyxiaUI/Unitframes/Layouts/Asphyxia/Asphyxia2.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1731,21 +1731,25 @@ FramePositions:SetScript( "OnEvent", function( self, event, addon )
G.UnitFrames.Focus:SetPoint( "TOP", UIParent, "BOTTOM", -450, 600 )
G.UnitFrames.FocusTarget:SetPoint( "TOP", G.UnitFrames.Focus, "BOTTOM", 0 , -43 )

for i = 1, MAX_BOSS_FRAMES do
G.UnitFrames["Boss" .. i]:ClearAllPoints()
if( i == 1 ) then
G.UnitFrames["Boss" .. i]:SetPoint( "TOP", UIParent, "BOTTOM", 450, 600 )
else
G.UnitFrames["Boss" .. i]:SetPoint( "TOP", G.UnitFrames["Boss" .. i - 1], "BOTTOM", 0, -43 )
if( C["unitframes"]["showboss"] == true ) then
for i = 1, MAX_BOSS_FRAMES do
G.UnitFrames["Boss" .. i]:ClearAllPoints()
if( i == 1 ) then
G.UnitFrames["Boss" .. i]:SetPoint( "TOP", UIParent, "BOTTOM", 450, 600 )
else
G.UnitFrames["Boss" .. i]:SetPoint( "TOP", G.UnitFrames["Boss" .. i - 1], "BOTTOM", 0, -43 )
end
end
end

for i = 1, 5 do
G.UnitFrames["Arena" .. i]:ClearAllPoints()
if( i == 1 ) then
G.UnitFrames["Arena" .. i]:SetPoint( "TOP", UIParent, "BOTTOM", 450, 600 )
else
G.UnitFrames["Arena" .. i]:SetPoint( "TOP", G.UnitFrames["Arena" .. i - 1], "BOTTOM", 0, -43 )
if( C["unitframes"]["arena"] == true ) then
for i = 1, 5 do
G.UnitFrames["Arena" .. i]:ClearAllPoints()
if( i == 1 ) then
G.UnitFrames["Arena" .. i]:SetPoint( "TOP", UIParent, "BOTTOM", 450, 600 )
else
G.UnitFrames["Arena" .. i]:SetPoint( "TOP", G.UnitFrames["Arena" .. i - 1], "BOTTOM", 0, -43 )
end
end
end
end )
28 changes: 16 additions & 12 deletions AsphyxiaUI/Unitframes/Layouts/Asphyxia/Asphyxia3.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1665,21 +1665,25 @@ FramePositions:SetScript( "OnEvent", function( self, event, addon )
G.UnitFrames.Focus:SetPoint( "TOP", UIParent, "BOTTOM", -450, 600 )
G.UnitFrames.FocusTarget:SetPoint( "TOP", G.UnitFrames.Focus, "BOTTOM", 0 , -43 )

for i = 1, MAX_BOSS_FRAMES do
G.UnitFrames["Boss" .. i]:ClearAllPoints()
if( i == 1 ) then
G.UnitFrames["Boss" .. i]:SetPoint( "TOP", UIParent, "BOTTOM", 450, 600 )
else
G.UnitFrames["Boss" .. i]:SetPoint( "TOP", G.UnitFrames["Boss" .. i - 1], "BOTTOM", 0, -43 )
if( C["unitframes"]["showboss"] == true ) then
for i = 1, MAX_BOSS_FRAMES do
G.UnitFrames["Boss" .. i]:ClearAllPoints()
if( i == 1 ) then
G.UnitFrames["Boss" .. i]:SetPoint( "TOP", UIParent, "BOTTOM", 450, 600 )
else
G.UnitFrames["Boss" .. i]:SetPoint( "TOP", G.UnitFrames["Boss" .. i - 1], "BOTTOM", 0, -43 )
end
end
end

for i = 1, 5 do
G.UnitFrames["Arena" .. i]:ClearAllPoints()
if( i == 1 ) then
G.UnitFrames["Arena" .. i]:SetPoint( "TOP", UIParent, "BOTTOM", 450, 600 )
else
G.UnitFrames["Arena" .. i]:SetPoint( "TOP", G.UnitFrames["Arena" .. i - 1], "BOTTOM", 0, -43 )
if( C["unitframes"]["arena"] == true ) then
for i = 1, 5 do
G.UnitFrames["Arena" .. i]:ClearAllPoints()
if( i == 1 ) then
G.UnitFrames["Arena" .. i]:SetPoint( "TOP", UIParent, "BOTTOM", 450, 600 )
else
G.UnitFrames["Arena" .. i]:SetPoint( "TOP", G.UnitFrames["Arena" .. i - 1], "BOTTOM", 0, -43 )
end
end
end
end )
28 changes: 16 additions & 12 deletions AsphyxiaUI/Unitframes/Layouts/Asphyxia/Asphyxia4.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1654,21 +1654,25 @@ FramePositions:SetScript( "OnEvent", function( self, event, addon )
G.UnitFrames.Focus:SetPoint( "TOP", UIParent, "BOTTOM", -450, 600 )
G.UnitFrames.FocusTarget:SetPoint( "TOP", G.UnitFrames.Focus, "BOTTOM", 0 , -43 )

for i = 1, MAX_BOSS_FRAMES do
G.UnitFrames["Boss" .. i]:ClearAllPoints()
if( i == 1 ) then
G.UnitFrames["Boss" .. i]:SetPoint( "TOP", UIParent, "BOTTOM", 450, 600 )
else
G.UnitFrames["Boss" .. i]:SetPoint( "TOP", G.UnitFrames["Boss" .. i - 1], "BOTTOM", 0, -43 )
if( C["unitframes"]["showboss"] == true ) then
for i = 1, MAX_BOSS_FRAMES do
G.UnitFrames["Boss" .. i]:ClearAllPoints()
if( i == 1 ) then
G.UnitFrames["Boss" .. i]:SetPoint( "TOP", UIParent, "BOTTOM", 450, 600 )
else
G.UnitFrames["Boss" .. i]:SetPoint( "TOP", G.UnitFrames["Boss" .. i - 1], "BOTTOM", 0, -43 )
end
end
end

for i = 1, 5 do
G.UnitFrames["Arena" .. i]:ClearAllPoints()
if( i == 1 ) then
G.UnitFrames["Arena" .. i]:SetPoint( "TOP", UIParent, "BOTTOM", 450, 600 )
else
G.UnitFrames["Arena" .. i]:SetPoint( "TOP", G.UnitFrames["Arena" .. i - 1], "BOTTOM", 0, -43 )
if( C["unitframes"]["arena"] == true ) then
for i = 1, 5 do
G.UnitFrames["Arena" .. i]:ClearAllPoints()
if( i == 1 ) then
G.UnitFrames["Arena" .. i]:SetPoint( "TOP", UIParent, "BOTTOM", 450, 600 )
else
G.UnitFrames["Arena" .. i]:SetPoint( "TOP", G.UnitFrames["Arena" .. i - 1], "BOTTOM", 0, -43 )
end
end
end
end )
28 changes: 16 additions & 12 deletions AsphyxiaUI/Unitframes/Layouts/Asphyxia/Asphyxia5.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1727,21 +1727,25 @@ FramePositions:SetScript( "OnEvent", function( self, event, addon )
G.UnitFrames.Focus:SetPoint( "TOP", UIParent, "BOTTOM", -450, 600 )
G.UnitFrames.FocusTarget:SetPoint( "TOP", G.UnitFrames.Focus, "BOTTOM", 0 , -43 )

for i = 1, MAX_BOSS_FRAMES do
G.UnitFrames["Boss" .. i]:ClearAllPoints()
if( i == 1 ) then
G.UnitFrames["Boss" .. i]:SetPoint( "TOP", UIParent, "BOTTOM", 450, 600 )
else
G.UnitFrames["Boss" .. i]:SetPoint( "TOP", G.UnitFrames["Boss" .. i - 1], "BOTTOM", 0, -43 )
if( C["unitframes"]["showboss"] == true ) then
for i = 1, MAX_BOSS_FRAMES do
G.UnitFrames["Boss" .. i]:ClearAllPoints()
if( i == 1 ) then
G.UnitFrames["Boss" .. i]:SetPoint( "TOP", UIParent, "BOTTOM", 450, 600 )
else
G.UnitFrames["Boss" .. i]:SetPoint( "TOP", G.UnitFrames["Boss" .. i - 1], "BOTTOM", 0, -43 )
end
end
end

for i = 1, 5 do
G.UnitFrames["Arena" .. i]:ClearAllPoints()
if( i == 1 ) then
G.UnitFrames["Arena" .. i]:SetPoint( "TOP", UIParent, "BOTTOM", 450, 600 )
else
G.UnitFrames["Arena" .. i]:SetPoint( "TOP", G.UnitFrames["Arena" .. i - 1], "BOTTOM", 0, -43 )
if( C["unitframes"]["arena"] == true ) then
for i = 1, 5 do
G.UnitFrames["Arena" .. i]:ClearAllPoints()
if( i == 1 ) then
G.UnitFrames["Arena" .. i]:SetPoint( "TOP", UIParent, "BOTTOM", 450, 600 )
else
G.UnitFrames["Arena" .. i]:SetPoint( "TOP", G.UnitFrames["Arena" .. i - 1], "BOTTOM", 0, -43 )
end
end
end
end )

0 comments on commit f94a51e

Please sign in to comment.