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) Code:
Old: GameTooltip:SetHyperlink(link) Code:
Old: GetSpecializationSpells(specIndex[, isInspect[, isPet]]) Code:
Old: Tooltip:SetTalent(talentIndex[, isInspect[, groupIndex]]) Code:
Old: BNSendFriendInvite(battletag/email, noteText) Code:
Old: BNSendFriendInviteByID(ID, noteText) Code:
Old: C_Vignettes.GetVignetteInfoFromInstanceID(instanceID) Code:
Old: C_Vignettes.GetVignetteInstanceID(index) Code:
Old: CagePetByID(petID) Code:
Old: ClickVoidStorageSlot(slot, [button]) Code:
Old: DisableAddOn("character", index) Code:
Old: EnableAddOn("character", index) Code:
Old: LearnTalent(talentIndex) Code:
Old: LearnTalents(talentIndex1 [, talentIndex2, ...]) Code:
Old: PetCanBeReleased(petID) Code:
Old: PetIsCaptureable(petID) Code:
Old: PetIsHurt(petID) Code:
Old: PetIsLockedForConvert(petID) Code:
Old: PetIsRevoked(petID) Code:
Old: PetIsSlotted(petID) Code:
Old: PetIsSummonable(petID) Code:
Old: PetIsTradable(petID) Code:
Old: PickupPet(petID) Code:
Old: PickupTalent(talentindex) Code:
Old: PlaySound("sound", optional["SFX","Music","Ambience" or "Master"]) Code:
Old: RemoveTalent(talentIndex) Code:
Old: SetMapByID(mapID) Code:
Old: SetRaidDifficultyID(difficultyID) Code:
Old: SummonPetByGUID(petID) Code:
Old: UseContainerItem(index, slot[, target]) Code:
Old: UseVoidItemForTransmogrify(voidItemslot, inventorySlot) Code:
Old: QueryAuctionItems(name, minLevel, maxLevel, invTypeIndex, classIndex, subclassIndex, page, isUsable, qualityIndex, getAll) Code:
Old: StopSound(soundHandleID) |
Return Changes:
Code:
Old: player, bank, bags, voidStorage, slot, bag = EquipmentManager_UnpackLocation(location) Code:
Old: specID = GetArenaOpponentSpec(arenaUnitIndex) Code:
Old: commandName, binding1, binding2, ... = GetBinding(index, mode) Code:
Old: name, className, class, specID = GetChallengeBestTimeInfo(mapID, index, guildOnly) Code:
Old: name, groupType, isHeroic, isChallengeMode, toggleDifficultyID = GetDifficultyInfo(id) Code:
Old: id, name, description, icon, background, role, class = GetSpecializationInfoByID(specID) Code:
Old: id, name, description, icon, background, role = GetSpecializationInfo(specIndex [, isInspect [, isPet]]) Code:
Old: id, name, description, icon, background, role = GetSpecializationInfoForClassID(classID, index) Code:
Old: GetSpecializationInfoForSpecID(specID) Code:
Old: texture, itemCount, locked, isFiltered = GetGuildBankItemInfo(tabId, index) Code:
Old: name, glyphType, isKnown, icon, glyphID, link, subText = GetGlyphInfo(index) Code:
Old: guildLevel, guildXP, guildNumMembers, guildName = GetInspectGuildInfo(unit); Code:
Old: itemID = GetInventoryItemID(unit, slot); Code:
Old: isTransmogrified, canTransmogrify, cannotTransmogrifyReason, hasPending, hasUndo, visibleItemID, textureName = GetTransmogrifySlotInfo(index) Code:
Old: link, icon, charges = GetQuestLogSpecialItemInfo(questIndex) Code:
Old: distance = GetDistanceSqToQuest(index) Code:
Old: description, type, completed, quantity, requiredQuantity, characterName, flags, assetID, quantityString, criteriaID = GetAchievementCriteriaInfo(achievementID, index) Code:
Old: name, rank, icon, powerCost, isFunnel, powerType, castingTime, minRange, maxRange[/color] = GetSpellInfo(id) Code:
Old: skillName, skillType, numAvailable, isExpanded, altVerb, numSkillUps, indentLevel, showProgressBar, currentRank, maxRank, startingRank = GetTradeSkillInfo(skillIndex) Code:
Old: cooldown, isDayCooldown = GetTradeSkillCooldown(index); Code:
Old: itemID, textureName = GetVoidTransferDepositInfo(index) Code:
Old: itemID, textureName = GetVoidTransferWithdrawalInfo(index) Code:
Old: itemID, textureName, locked, recentDeposit, isFiltered = GetVoidItemInfo(index) Code:
Old: texture, itemCount, locked, quality, readable, lootable, link, isFiltered = GetContainerItemInfo(container, slot) Code:
Old: name, level, class, area, connected, status, note = GetFriendInfo(friendIndex) Code:
Old: texture, name, isTradeskillSpell, isSpellLearned = GetQuestLogRewardSpell() Code:
Old: texture, name, isTradeskillSpell, isSpellLearned = GetRewardSpell() Code:
Old: areaID = GetCurrentMapAreaID() Code:
Old: title, level, questTag, suggestedGroup, isHeader, isCollapsed, isComplete, isDaily, questID, startEvent, displayQuestID = GetQuestLogTitle(questIndex) Code:
Old: name, texture, offset, numSpells, isGuild, offSpecID = GetSpellTabInfo(index) Code:
Old: name, iconTexture, tier, column, selected, available = GetTalentInfo(talentIndex [, isInspect, talentGroup, inspectedUnit, classID]) Code:
Old: link = GetTalentLink(talentIndex[, isInspect, inspectClassID]) Code:
Old: name, description, textureIndex, x, y, mapLinkID, showInBattleMap, graveyardID, areaID, poiID, isObjectIcon = GetMapLandmarkInfo(index) Code:
Old: name, title, notes, enabled, loadable, reason, security = GetAddOnInfo(index or "name") Code:
Old: optionsTable = GetVideoOptions(value) Code:
Old: index, current, max, xp, 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) Code:
Old: text = GetBindingText(key, prefix, abbreviate) |
Please let me know if you find additional changes and I'll update the original posts.
|
GetQuestLogTitle no longer returns "isDaily" as a boolean, but "frequency" which needs to be compared against two constants representing daily or weekly values.
|
Changes in 18663:
Code:
Old: GameTooltip:SetHyperlink(link) |
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); |
Might be temporary, at least seems like it.
Here is where they do this for future reference: https://github.com/tekkub/wow-ui-sou....lua#L412-L417 |
Changes in 18689:
Code:
Old: SetMapByID(mapID) |
Quote:
|
Quote:
It would also be nice if we could somehow access microdungeon maps without actually being inside of it. |
Changes from 18689 to 18716:
Code:
Old: name, groupType, isHeroic, isChallengeMode, toggleDifficultyID = GetDifficultyInfo(id) |
No changes in build 18738, but GetSpellInfo no longer returns empty strings on invalid parameters, now returns nil as intended.
|
`BankButtonIDToInvSlotID(id, isBag)` appears to have changed the values is accepts for `id`. Previously it was 5-11 (the bank bags' bag IDs), now it is 1-7 (the bank bags' logical indexes).
|
Changes in 18816:
Code:
Old: GetSpecializationSpells(specIndex[, isInspect[, isPet]]) |
Code:
name, title, notes, url, loadable, reason, security, newVersion = GetAddOnInfo(index) AddonList.lua: Code:
function AddonList_HasNewVersion() |
Quote:
This is how it looks in game (screenshots not from blizzard servers obviously): |
Am I correct that they also have the "Enabled" removed from GetAddOnInfo ()?
On the live servers are GetAddOnInfo () still following values: Code:
name, title, notes, enabled, loadable, reason, security = GetAddOnInfo(index or "name") |
Quote:
Code:
GetAddOnEnableState('character', index) |
Thanks I will try it.
|
Quote:
Code:
local enabled name - Name of the addon (name of the addon's folder and TOC file) (string) title - Title of the addon (from the Title header in the addon's TOC file) (string) I personally would use name because some people use different titles from the addon folder in their .toc files. |
All times are GMT -6. The time now is 03:02 AM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI