Thread: API Changes
View Single Post
07-19-14, 11:02 PM   #1
p3lim
A Pyroguard Emberseer
 
p3lim's Avatar
AddOn Author - Click to view addons
Join Date: Feb 2007
Posts: 1,710
API Changes

Note; this list might be far from complete, I'm completely unaware of how accurate this is (pulled from exe strings)

Parameter Changes:

1/nil/0 changed to true/false across the API, examples:
CheckButton:SetChecked(true/false)
Texture:SetDesaturated(true/false)

Code:
Old: Button:SetCooldown(start, duration, charges, maxCharges)
New: Button:SetCooldown(start, duration)
Code:
Old: GameTooltip:SetHyperlink(link)
New: GameTooltip:SetHyperlink(link, classID, specID)
Code:
Old: GetSpecializationSpells(specIndex[, isInspect[, isPet]])
New: GetSpecializationSpells(specIndex[, isInspect[, isPet[, ignorePetOverrideSpec]]])
Code:
Old: Tooltip:SetTalent(talentIndex[, isInspect[, groupIndex]])
New: Tooltip:SetTalent(talentID[, isInspect[, groupIndex]])
Code:
Old: BNSendFriendInvite(battletag/email, noteText)
New: BNSendFriendInvite(battletag/email)
Code:
Old: BNSendFriendInviteByID(ID, noteText)
New: BNSendFriendInviteByID(ID)
Code:
Old: C_Vignettes.GetVignetteInfoFromInstanceID(instanceID)
New: C_Vignettes.GetVignetteInfoFromInstanceID(instanceGUID)
Code:
Old: C_Vignettes.GetVignetteInstanceID(index)
New: C_Vignettes.GetVignetteGUID(index)
Code:
Old: CagePetByID(petID)
New: CagePetByID(petGUID)
Code:
Old: ClickVoidStorageSlot(slot, [button])
New: ClickVoidStorageSlot(tab, slot, [button])
Code:
Old: DisableAddOn("character", index)
Old: DisableAddOn(index or "name")
New: DisableAddOn(index or "name", [set for all or "character"])
Code:
Old: EnableAddOn("character", index)
Old: EnableAddOn(index or "name")
New: EnableAddOn(index or "name", [set for all or "character"])
Code:
Old: LearnTalent(talentIndex)
New: LearnTalent(talentID)
Code:
Old: LearnTalents(talentIndex1 [, talentIndex2, ...])
New: LearnTalents(talentID1 [, talentID2, ...])
Code:
Old: PetCanBeReleased(petID)
New: PetCanBeReleased(petGUID)
Code:
Old: PetIsCaptureable(petID)
New: PetIsCaptureable(petGUID)
Code:
Old: PetIsHurt(petID)
New: PetIsHurt(petGUID)
Code:
Old: PetIsLockedForConvert(petID)
New: PetIsLockedForConvert(petGUID)
Code:
Old: PetIsRevoked(petID)
New: PetIsRevoked(petGUID)
Code:
Old: PetIsSlotted(petID)
New: PetIsSlotted(petGUID)
Code:
Old: PetIsSummonable(petID)
New: PetIsSummonable(petGUID)
Code:
Old: PetIsTradable(petID)
New: PetIsTradable(petGUID)
Code:
Old: PickupPet(petID)
New: PickupPet(petGUID)
Code:
Old: PickupTalent(talentindex)
New: PickupTalent(talentID)
Code:
Old: PlaySound("sound", optional["SFX","Music","Ambience" or "Master"])
New: PlaySound("sound", optional["SFX","Music","Ambience", "Dialog" or "Master"])
Code:
Old: RemoveTalent(talentIndex)
New: RemoveTalent(talentID)
Code:
Old: SetMapByID(mapID)
New: SetMapByID(mapID[, floor])
Code:
Old: SetRaidDifficultyID(difficultyID)
New: SetRaidDifficultyID(difficultyID[, force])
Code:
Old: SummonPetByGUID(petID)
New: SummonPetByGUID(petGUID)
Code:
Old: UseContainerItem(index, slot[, target])
New: UseContainerItem(index, slot[, target[, reagentBankOpen]])
Code:
Old: UseVoidItemForTransmogrify(voidItemslot, inventorySlot)
New: UseVoidItemForTransmogrify(voidItemTab, voidItemslot, inventorySlot)
Code:
Old: QueryAuctionItems(name, minLevel, maxLevel, invTypeIndex, classIndex, subclassIndex, page, isUsable, qualityIndex, getAll)
New: QueryAuctionItems(name, minLevel, maxLevel, invTypeIndex, classIndex, subclassIndex, page, isUsable, qualityIndex, getAll, exactMatch)
Code:
Old: StopSound(soundHandleID)
New: StopSound(soundHandleID[, fadeOutTime]) -- milliseconds

Last edited by p3lim : 09-03-14 at 03:22 AM. Reason: Build 18816