JamminL / cata-classic-bugs

This is a place for Wrath of the Lich King Classic bug reports and research - NOW ACCEPTING VANILLA ERA REPORTS
55 stars 6 forks source link

[BUG] Missing background stripes on stats panel on Character Frame (found exact reason) #1223

Closed thehallowedfire closed 2 weeks ago

thehallowedfire commented 2 weeks ago

1. Current Behavior

1.1. Description

Already mentioned in some issue report but don't remember which one. Background stripes are missing from stats panel. Found exact reason of this behavior: in Interface/AddOns/Blizzard_CharacterFrame/Cata/PaperDollFrame.lua a function called PaperDollFrame_UpdateStatCategory creates those background stripes and sets texture to them but uses a method SetTexture. It's an old method and should be replaced with SetColorTexture (since it fills the background frame with solid color). You can try to 'enable' those stripes yourself by using this script:

  /run CharacterStatsPaneCategory1Stat2.Bg:SetColorTexture(0.9, 0.9, 1);

Replace category number and stat number (use only even numbers - 2/4/6 otherwise it will throw an error because frame.Bg exists only for even stats).

1.2. How to Reproduce

       1. Open Character Frame and expand stats panel.
       2. You will see that background stripes are missing
       3. You can try to 'enable' those stripes by using script above. Every stripe will be correctly brigther than the previous one.

1.3 Source Material

On the screenshot you can see that first two categories have stripes shown (used script above) and third one has 'default' hidden stripes. image

2. Expected Behavior

2.1. Description

Replace old method with modern one and all stripes will work perfect because other code is correct.