TekNoLogic / GnomishVendorShrinker

WoW Addon - Compact scrolling vendor frame
http://www.tekkub.net/addons
29 stars 20 forks source link

Display glitch in patch 4.2 #28

Closed Taryble closed 13 years ago

Taryble commented 13 years ago

When using GVS in the new 4.2 patch, I noticed that the color codes are not being read as codes, but are showing up as part of the item name text. For example, "Simple Wood" shows up as "ffffffffSimple Wood", and it's in the "default" color instead of white.

Buggrabber/Bugsack doesn't see any errors.

Changing line 252 from for i=1,7 do quality_colors[i] = select(4, GetItemQualityColor(i)) end to for i=1,7 do quality_colors[i] = "|c" .. select(4, GetItemQualityColor(i)) end

solves the problem.

Supposition based on WAY too little lua/WoW API knowledge - It looks like the "|c" used to come from GetItemQualityColor(), but it doesn't seems to return that now, just the hex values.