Thread Tools Display Modes
Prev Previous Post   Next Post Next
07-28-12, 09:20 AM   #1
suicidalkatt
A Rage Talon Dragon Guard
 
suicidalkatt's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2008
Posts: 331
Interesting BNet API Change on Build 15913

Just a change to the function BNGetFriendInfoByID(toastData)

Old:
Lua Code:
  1. elseif ( toastType == BN_TOAST_TYPE_BROADCAST ) then
  2.         local presenceID, givenName, surname, toonName, toonID, client, isOnline, lastOnline, isAFK, isDND, messageText = BNGetFriendInfoByID(toastData);

New:
Lua Code:
  1. elseif ( toastType == BN_TOAST_TYPE_BROADCAST ) then
  2.         local presenceID, presenceName, battleTag, isBattleTagPresence, toonName, toonID, client, isOnline, lastOnline, isAFK, isDND, messageText = BNGetFriendInfoByID(toastData);

This also was changed for any other BNGet functions to provide a 'presenceName' instead of 'givenName' and 'surname'. This is all to start using the new BattleTag id system.

Also some new BATTLENET_FONT_COLOR_CODE and BATTLENET_FONT_COLOR globals in the Contants.lua.

BATTLENET_FONT_COLOR_CODE = "|cff82c5ff";
BATTLENET_FONT_COLOR = {r=0.510, g=0.773, b=1.0};

Last edited by suicidalkatt : 07-28-12 at 09:38 AM.
 
 

WoWInterface » Site Forums » Archived Beta Forums » MoP Beta archived threads » Interesting BNet API Change on Build 15912


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off