Breaking FrameXML change in Dragonflight API

It looks like the BNet_GetClientTexture and BNet_GetClientEmbeddedTexture functions were removed from the Interface/FrameXML/BNet.lua file in the 10.0 release.

However, there doesn’t seem to be a relevant successor (that I can find). What API (if any) can be used now to retrieve the embedded icon for the game a Battle.net friend is playing?

1 Like

I am also interested to know if there is a new way to call BNet_GetClientEmbeddedTexture

Actually, I discovered that there is an alternate function (at least for BNet_GetClientEmbeddedTexture, I did not test the other one).

In the link you provided for BNet.lua, scroll down to line 528 in the diff for BNet.lua. It shows the removal of 2 lines, then the addition of 2 lines. Notice that BNet_GetClientEmbeddedTexture is replaced with BNet_GetClientEmbeddedAtlas. I tested it out and it appears to work the same (the arguments in both the - and the + in the diff also appear to be the same).

2 Likes

Thanks, that worked perfectly…I saw that change but I didn’t actually try it!