This site works best with JavaScript enabled. Please enable JavaScript to get the best experience from this site.
What steps will reproduce the problem?1. Open a 5.0.4 Enabled Client2. Assign a border appropriate SharedMedia addon's texture to "None"3. Look at a green mess.
What is the expected output? What do you see instead?A simple non-bordered frame.
What version of the product are you using?LibSharedMedia-3.0-6.zip
Do you have an error log of what happened?No.
Please provide any additional information below.New Blizzard handling of textures will use a green texure if a texture is undefined or missing.Simply changing what the 'None' texture path is in the LibSharedMedia-3.0.lua file on line 77 to:lib.MediaTable.border["None"] = [[Interface\AddOns\SharedMedia\border\none]]
...and include this texture file under border within the addon folder:https://dl.dropbox.com/u/4479083/none.tga
<p>Before Fix</p>
<p>After Fix</p>
Current behavior (returning nil for none) is working fine in MoP beta with other addons, e.g. Chatter.
i had the same issue thanks for the fix suicidalkatt
1x libs\LibStatLogic-1.2\LibStatLogic-1.2-114.lua:478 attempt to call local "strutf8lower" (a nil value) libs\LibStatLogic-1.2\LibStatLogic-1.2-114.lua:478 in main chunk
Locals:
@Elkano: Go
Why not fix the issue within SharedMedia rather than have addons change their methods?
@suicidalkatt:
Could you post some code demonstrating a problem? Setting the border texture to "None" in Grid works as expected; the border is hidden, and I don't see any green blocks. I even installed Stuf (based on your screenshot) and couldn't reproduce the problem there either.
Came to post the same thing but it turns out it's problem on addon side.
This happens if you try to pass a 'non-existing texture' path to SetBackdrop instead of nil.
<<reply 933967>>
Stuf recently addressed the issue, but any other addon that uses SetBackdrop like Dridzt mentioned without allowing the texture to be nil or false will return a green texture since 'lib.MediaTable.border["None"]' isn't defined to a texture path within SharedMedia.
Regardless now SharedMedia's lib.MediaTable.border["None"] is now set to [[]] (used to be [[Interface\None]])to correct the issue.
Made a simple addon to test for the issue: https://dl.dropbox.com/u/4479083/NoneBorder.zip
To post a comment, please login or register a new account.