Akkorian's Avatar
Files 0
Downloads 0
Favorites 0
My AddOns
    View Bug Report
    PaperDollFrame_SetLevel 4.2 Fix
    Bug #: 7470
    File: Class Colors
    Date: 07-04-11 06:19 PM
    By: Dainton
    Status: Unconfirmed
    Addon version: 4.2.0.51
    WoW client version and locale: 4.2.0 (14333) enUS
    Description of the problem: Blizzard took out the required "ff" from the color hexing of the CharacterLevelText and InspectLevelText. This adds those back in.
    Screenshot:
    Fix: Adding in
    Code:
    local colorString = format("ff%.2x%.2x%.2x", color.r * 255, color.g * 255, color.b * 255)
    to both "InspectPaperDollFrame_SetLevel" and "PaperDollFrame_SetLevel" functions after the
    Code:
    local color = CUSTOM_CLASS_COLORS[ class ]
    and setting their formatted texts to
    Code:
    		if specName and specName ~= "" then
    			CharacterLevelText:SetFormattedText( PLAYER_LEVEL, UnitLevel( "player" ), colorString, specName, className )
    		else
    			CharacterLevelText:SetFormattedText( PLAYER_LEVEL_NO_SPEC, UnitLevel( "player" ), colorString, className )
    		end
    
    -----
    
    		if specName and specName ~= "" then
    			InspectLevelText:SetFormattedText( PLAYER_LEVEL, level, colorString, specName, className )
    		else
    			InspectLevelText:SetFormattedText( PLAYER_LEVEL_NO_SPEC, level, colorString, className )
    		end

    RSS 2.0 Feed for Bug CommentsNotes Sort Options
    By: Dainton - 07-04-11 06:52 PM
    Here's a pastebin diff, but it looks like crap.
    http://pastebin.com/diff.php?i=q59UL4xq
    By: Phanx - 01-10-12 02:21 AM
    This problem doesn't appear to exist anymore, or Akkorian already fixed it but forgot to close the ticket.