|
07-19-14, 11:02 PM | #1 |
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 |
|
07-20-14, 12:40 AM | #2 |
Return Changes:
Code:
Old: player, bank, bags, voidStorage, slot, bag = EquipmentManager_UnpackLocation(location) New: player, bank, bags, voidStorage, slot, bag, tab, voidSlot = EquipmentManager_UnpackLocation(location) Code:
Old: specID = GetArenaOpponentSpec(arenaUnitIndex) New: specID, gender = GetArenaOpponentSpec(arenaUnitIndex) Code:
Old: commandName, binding1, binding2, ... = GetBinding(index, mode) New: commandName, category, binding1, binding2, ... = GetBinding(index, mode) Code:
Old: name, className, class, specID = GetChallengeBestTimeInfo(mapID, index, guildOnly) New: name, className, class, specID, gender = GetChallengeBestTimeInfo(mapID, index, guildOnly) Code:
Old: name, groupType, isHeroic, isChallengeMode, toggleDifficultyID = GetDifficultyInfo(id) New: name, groupType, isHeroic, isChallengeMode, displayHeroic, displayMythic, toggleDifficultyID = GetDifficultyInfo(id) Code:
Old: id, name, description, icon, background, role, class = GetSpecializationInfoByID(specID) New: id, name, description, icon, background, role, class = GetSpecializationInfoByID(specID, gender) Code:
Old: id, name, description, icon, background, role = GetSpecializationInfo(specIndex [, isInspect [, isPet]]) New: id, name, description, icon, background, role, primaryStat = GetSpecializationInfo(specIndex [, isInspect [, isPet]], inspectedUnit, gender) Code:
Old: id, name, description, icon, background, role = GetSpecializationInfoForClassID(classID, index) New: id, name, description, icon, background, role, primaryStat = GetSpecializationInfoForClassID(classID, index, gender) Code:
Old: GetSpecializationInfoForSpecID(specID) New: GetSpecializationInfoForSpecID(specID[, gender]) Code:
Old: texture, itemCount, locked, isFiltered = GetGuildBankItemInfo(tabId, index) New: texture, itemCount, locked, isFiltered, quality = GetGuildBankItemInfo(tabId, index) Code:
Old: name, glyphType, isKnown, icon, glyphID, link, subText = GetGlyphInfo(index) New: name, glyphType, isKnown, icon, glyphID, link, subText, specMatches, excluded = GetGlyphInfo(index) Code:
Old: guildLevel, guildXP, guildNumMembers, guildName = GetInspectGuildInfo(unit); New: guildPoints, guildNumMembers, guildName = GetInspectGuildInfo(unit); Code:
Old: itemID = GetInventoryItemID(unit, slot); New: itemID, itemAppearanceModID = GetInventoryItemID(unit, slot); Code:
Old: isTransmogrified, canTransmogrify, cannotTransmogrifyReason, hasPending, hasUndo, visibleItemID, textureName = GetTransmogrifySlotInfo(index) New: isTransmogrified, canTransmogrify, cannotTransmogrifyReason, hasPending, hasUndo, visibleItemID, textureName, visibleItemAppearanceModID = GetTransmogrifySlotInfo(index) Code:
Old: link, icon, charges = GetQuestLogSpecialItemInfo(questIndex) New: link, item, charges, showItemWhenComplete = GetQuestLogSpecialItemInfo(questIndex); Code:
Old: distance = GetDistanceSqToQuest(index) New: distance, onContinent = GetDistanceSqToQuest(index) Code:
Old: description, type, completed, quantity, requiredQuantity, characterName, flags, assetID, quantityString, criteriaID = GetAchievementCriteriaInfo(achievementID, index) New: description, type, completed, quantity, requiredQuantity, characterName, flags, assetID, quantityString, criteriaID, eligible, duration, elapsed = GetAchievementCriteriaInfo(achievementID, index) Code:
Old: name, rank, icon, powerCost, isFunnel, powerType, castingTime, minRange, maxRange[/color] = GetSpellInfo(id) New: name, subname, icon, castingTime, minRange, maxRange = GetSpellInfo(id) Code:
Old: skillName, skillType, numAvailable, isExpanded, altVerb, numSkillUps, indentLevel, showProgressBar, currentRank, maxRank, startingRank = GetTradeSkillInfo(skillIndex) New: skillName, skillType, numAvailable, isExpanded, altVerb, numSkillUps, indentLevel, showProgressBar, currentRank, maxRank, startingRank, displayAsUnavailable, unavailableString = GetTradeSkillInfo(skillIndex) Code:
Old: cooldown, isDayCooldown = GetTradeSkillCooldown(index); New: cooldown, isDayCooldown, charges, maxCharges = GetTradeSkillCooldown(index); Code:
Old: itemID, textureName = GetVoidTransferDepositInfo(index) New: itemID, textureName, quality = GetVoidTransferDepositInfo(index) Code:
Old: itemID, textureName = GetVoidTransferWithdrawalInfo(index) New: itemID, textureName, quality = GetVoidTransferWithdrawalInfo(index) Code:
Old: itemID, textureName, locked, recentDeposit, isFiltered = GetVoidItemInfo(index) New: itemID, textureName, locked, recentDeposit, isFiltered, quality = GetVoidItemInfo(tabId, index) Code:
Old: texture, itemCount, locked, quality, readable, lootable, link, isFiltered = GetContainerItemInfo(container, slot) New: texture, itemCount, locked, quality, readable, lootable, link, isFiltered, noValue = GetContainerItemInfo(container, slot) Code:
Old: name, level, class, area, connected, status, note = GetFriendInfo(friendIndex) New: name, level, class, area, connected, status, note, isReferAFriend = GetFriendInfo(friendIndex) Code:
Old: texture, name, isTradeskillSpell, isSpellLearned = GetQuestLogRewardSpell() New: texture, name, isTradeskillSpell, isSpellLearned, hideSpellLearnText = GetQuestLogRewardSpell() Code:
Old: texture, name, isTradeskillSpell, isSpellLearned = GetRewardSpell() New: texture, name, isTradeskillSpell, isSpellLearned, hideSpellLearnText = GetRewardSpell() Code:
Old: areaID = GetCurrentMapAreaID() New: areaID, isContinent = GetCurrentMapAreaID() Code:
Old: title, level, questTag, suggestedGroup, isHeader, isCollapsed, isComplete, isDaily, questID, startEvent, displayQuestID = GetQuestLogTitle(questIndex) New: title, level, suggestedGroup, isHeader, isCollapsed, isComplete, frequency, questID, startEvent, displayQuestID, isOnMap, hasLocalPOI, isTask, isStory = GetQuestLogTitle(questIndex) Code:
Old: name, texture, offset, numSpells, isGuild, offSpecID = GetSpellTabInfo(index) New: name, texture, offset, numSpells, isGuild, offSpecID, shouldHide = GetSpellTabInfo(index) Code:
Old: name, iconTexture, tier, column, selected, available = GetTalentInfo(talentIndex [, isInspect, talentGroup, inspectedUnit, classID]) New: talentID, name, iconTexture, selected, available = GetTalentInfo(tier, column, talentGroup [, isInspect, inspectedUnit]) Code:
Old: link = GetTalentLink(talentIndex[, isInspect, inspectClassID]) New: link = GetTalentLink(talentID) Code:
Old: name, description, textureIndex, x, y, mapLinkID, showInBattleMap, graveyardID, areaID, poiID, isObjectIcon = GetMapLandmarkInfo(index) New: name, description, textureIndex, x, y, mapLinkID, showInBattleMap, graveyardID, areaID, poiID, isObjectIcon, atlasIcon = GetMapLandmarkInfo(index) Code:
Old: name, title, notes, enabled, loadable, reason, security = GetAddOnInfo(index or "name") New: name, title, notes, url, loadable, reason, security, newVersion = GetAddOnInfo(index or "name") Code:
Old: optionsTable = GetVideoOptions(value) New: optionsTable = GetVideoOptions(value[, isRaid]) Code:
Old: index, current, max, xp, gold, maxGold = GetGuildChallengeInfo(index) New: index, current, max, gold, maxGold = GetGuildChallengeInfo(index) Code:
Old: name, typeID, subtypeID, minLevel, maxLevel, recLevel, minRecLevel, maxRecLevel, expansionLevel, groupID, textureFilename, difficulty, maxPlayers, description, isHoliday, repAmount, forceHide = GetLFGDungeonInfo(dungeonID) New name, typeID, subtypeID, minLevel, maxLevel, recLevel, minRecLevel, maxRecLevel, expansionLevel, groupID, textureFilename, difficulty, maxPlayers, description, isHoliday, repAmount = GetLFGDungeonInfo(dungeonID) Code:
Old: text = GetBindingText(key, prefix, abbreviate) New: text = GetBindingText(key, abbreviate) Last edited by p3lim : 09-10-14 at 09:56 AM. Reason: Build 18837 |
|
07-20-14, 01:13 AM | #3 |
Please let me know if you find additional changes and I'll update the original posts.
|
|
07-20-14, 09:41 AM | #4 |
GetQuestLogTitle no longer returns "isDaily" as a boolean, but "frequency" which needs to be compared against two constants representing daily or weekly values.
|
|
08-05-14, 12:09 AM | #5 |
Changes in 18663:
Code:
Old: GameTooltip:SetHyperlink(link) New: GameTooltip:SetHyperlink(link, classID, specID) |
|
08-05-14, 07:13 AM | #6 |
GetMacroIcons
GetMacroIcons(table) will (sometimes?) populate numbers in the table instead of string for texture file path.
And we need to use texture:SetToFileData() for numbers instead of texture:SetTexture() like below: Code:
texture = GetSpellorMacroIconInfo(index); if(type(texture) == "number") then macroPopupIcon:SetToFileData(texture); else macroPopupIcon:SetTexture("INTERFACE\\ICONS\\"..texture); end |
|
WoWInterface » Site Forums » Archived Beta Forums » WoD Beta archived threads » API Changes |
«
Previous Thread
|
Next Thread
»
|
Display Modes |
Switch to Linear Mode |
Hybrid Mode |
Switch to Threaded Mode |
|
|