sinaris / AsphyxiaUI---v6

Other
13 stars 8 forks source link

still holypower bugg #36

Open Raecius opened 11 years ago

Raecius commented 11 years ago

hi,

i am still having the typo holypower bugg (2holypower outside the unitframe). I did around 10 complete fresh installs already, and have the latest tukui and asphyxia version. Any idea on what could be wrong?

This is how the code looks in asphyxia.lua

if( S.myclass == "PALADIN" ) then if( C["unitframes"]["classbar"] == true ) then G.UnitFrames.Player.HolyPower:ClearAllPoints() G.UnitFrames.Player.HolyPower:SetPoint( "BOTTOMLEFT", G.UnitFrames.Player, "TOPLEFT", 0, 7 ) G.UnitFrames.Player.HolyPower:Size( 233, 2 ) G.UnitFrames.Player.HolyPower:CreateBackdrop( "Default" ) G.UnitFrames.Player.HolyPower.backdrop:CreateShadow( "Default" )

            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 )
                    end
                elseif( maxHolyPower == 5 ) then
                    if( i == 5 ) then
                        G.UnitFrames.Player.HolyPower[i]:Size( S.Scale( 232 / 5 ) - 1, 2 )
                    else
                        G.UnitFrames.Player.HolyPower[i]:Size( S.Scale( 232 / 5 ), 2 )
                    end
                end

                if( i == 1 ) then
                    G.UnitFrames.Player.HolyPower[i]:SetPoint( "LEFT", G.UnitFrames.Player.HolyPower, "LEFT", 0, 0 )
                else
                    G.UnitFrames.Player.HolyPower[i]:Point( "LEFT", G.UnitFrames.Player.HolyPower[i - 1], "RIGHT", 1, 0 )
                end
            end
        end
    end
Raecius commented 11 years ago

still no comment?