Thread Tools Display Modes
Prev Previous Post   Next Post Next
11-28-12, 06:09 AM   #1
Dridzt
A Pyroguard Emberseer
 
Dridzt's Avatar
AddOn Author - Click to view addons
Join Date: Nov 2005
Posts: 1,359
Assorted 5.1.0 changes (not all-inclusive)

Selected changes that I think might be of interest for quick fixes/spotting broken addons.

First of all:
Zork's post for nameplate changes in 5.1.0
Ketho's comprehensive diff list

*LIGHT_FORCE -> *CHI (meaning SPELL_POWER_LIGHT_FORCE -> SPELL_POWER_CHI, LIGHT_FORCE -> CHI in event args etc, best doing a case sensitive search for LIGHT_FORCE)

new event: LOSS_OF_CONTROL_UPDATE
new event: UPDATE_VEHICLE_ACTIONBAR
new event: GROUP_JOINED arg1 = partyCategory (LE_PARTY_CATEGORY_HOME LE_PARTY_CATEGORY_INSTANCE etc)

removed chat: BATTLEGROUND / BATTLEGROUND_LEADER
new chat: INSTANCE_CHAT / INSTANCE_CHAT_LEADER
removed globalstring: BATTLEGROUND_MESSAGE|CHAT_BATTLEGROUND_GET|CHAT_BATTLEGROUND_LEADER_GET|CHAT_BATTLEGROUND_SEND
added globalstring: CHAT_INSTANCE_CHAT_GET|CHAT_INSTANCE_CHAT_LEADER_GET|CHAT_INSTANCE_CHAT_SEND

added globalstring: FACTION_STANDING_INCREASED_ACH_BONUS|FACTION_STANDING_INCREASED_DOUBLE_BONUS

Code:
local id, rep, maxRep, name, text, texture, reaction, threshold, nextThreshold = GetFriendshipReputation(); 
-- name inserted after maxRep, nextThreshold added in 5.1.0

local totalMembers, onlineMembers, onlineAndMobileMembers = GetNumGuildMembers(); 
-- onlineAndMobileMembers added in 5.1.0

local speciesID, customName, petLevel, xp, maxXp, displayID, isFavorite, name, petIcon = C_PetJournal.GetPetInfoByPetID(petID); 
-- isFavorite inserted after displayID in 5.1.0

removed: GetFriendshipReputationByID(factionID)
added: local friendID, friendRep, friendMaxRep, friendName, friendText, friendTexture, friendTextLevel, friendThreshold, nextFriendThreshold = GetFriendshipReputation(factionID); 
-- not a direct replacement as returns have been changed as well

local name, rank, icon, count, debuffType, duration, expirationTime, unitCaster, canStealOrPurge, shouldConsolidate, spellId, canApplyAura, isBossDebuff, isCastByPlayer, [points1, points2, points3], unknown  = UnitAura|Buff|Debuff() 
-- isCastByPlayer has been moved after isBossDebuff, points1-3 bumped 1 position to #15, #16, #17, unknown return at #18

local status, mapName, [instanceID, levelRangeMin, levelRangeMax,] teamSize, registeredMatch, [eligibleInQueue, waitingOnOtherActivity,] suspend = GetBattlefieldStatus(i); 
-- instanceID, levelRangeMin, levelRangeMax, removed between mapName, teamSize, eligibleInQueue, waitingOnOtherActivity removed after registeredMatch, suspend added  in 5.1.0 

removed: IsInScenarioGroup()

:SetTexture() 
-- no longer accepts an empty string "" as no_texture, nil still works without causing the green texture of death effect
removed: PetExpBar*
added: PlayerFrameMultiGroupFrame

-- Instance Difficulty globals added
DIFFICULTY_DUNGEON_NORMAL = 1;
DIFFICULTY_DUNGEON_HEROIC = 2;
DIFFICULTY_RAID10_NORMAL = 3;
DIFFICULTY_RAID25_NORMAL = 4;
DIFFICULTY_RAID10_HEROIC = 5;
DIFFICULTY_RAID25_HEROIC = 6;
DIFFICULTY_RAID_LFR = 7;
DIFFICULTY_DUNGEON_CHALLENGE = 8;
DIFFICULTY_RAID40 = 9;

removed macros: /clearmaintank /clearmainassist (and their shorthand versions)
added macros: /stopspelltarget /summonbattlepet /randomfavoritepet /dismissbattlepet /dismisspet /summonpet (and their shorthand versions)
macro conditionals added:
"HasVehicleActionBar", "HasOverrideActionBar", "HasTempShapeshiftActionBar",
"HasOverrideUI", "GetVehicleBarIndex", "GetOverrideBarIndex",
"HasExtraActionBar", "GetTempShapeshiftBarIndex", "CanExitVehicle"

Miscellanea / Trivia:
Chat bubbles have their own font so it can be overridden separately
"ChatBubbleFont" there's also _KO|_RU|_ZH variants.

Interface option for setting "displayWorldPVPObjectives" cvar removed (not sure if cvar itself still exists)

A stray global _ was removed from WatchFrame.lua, we'll see if that resolves some of the map taint issues.

Last edited by Dridzt : 11-29-12 at 07:59 AM.
  Reply With Quote
 

WoWInterface » Developer Discussions » Tutorials & Other Helpful Info. » Assorted 5.1.0 changes (not all-inclusive)

Thread Tools
Display Modes

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