Patch 7.0.3/API changes
Jump to navigation
Jump to search
This article documents API changes made in Patch 7.0.3.
|
New
- New Widget types: Line - derived from Texture, and UiCamera - derived from Model
- New Region method: Region:GetDebugName()
- New Frame methods: Frame:CreateLine(), Frame:GetFlattensRenderLayers(), Frame:SetFlattensRenderLayers()
- New Texture method: Texture:SetColorTexture()
- Adventure Map - AddOns/Blizzard_AdventureMap, C_AdventureMap
- Artifacts - AddOns/Blizzard_ArtifactUI, C_ArtifactUI
- Wardrobe - AddOns/Blizzard_Collections/Blizzard_Wardrobe, C_Transmog and C_TransmogCollection
- New C_TradeSkillUI table.
- C_TradeSkillUI.ClearRecipeCategoryFilter,
- C_TradeSkillUI.IsRecipeSourceTypeFiltered,
- C_TradeSkillUI.GetRecipeRepeatCount,
- C_TradeSkillUI.DropPendingObliterateItemFromCursor,
- C_TradeSkillUI.ObliterateItem,
- C_TradeSkillUI.GetRecipeInfo,
- C_TradeSkillUI.IsTradeSkillReady,
- C_TradeSkillUI.GetRecipeItemNameFilter,
- C_TradeSkillUI.GetCategoryInfo,
- C_TradeSkillUI.GetPendingObliterateItemID,
- C_TradeSkillUI.SetRecipeItemNameFilter,
- C_TradeSkillUI.SetInventorySlotFilter,
- C_TradeSkillUI.IsTradeSkillGuild,
- C_TradeSkillUI.GetOnlyShowUnlearnedRecipes,
- C_TradeSkillUI.SetRecipeRepeatCount,
- C_TradeSkillUI.IsNPCCrafting,
- C_TradeSkillUI.GetOnlyShowSkillUpRecipes,
- C_TradeSkillUI.GetAllRecipeIDs,
- C_TradeSkillUI.SetOnlyShowSkillUpRecipes,
- C_TradeSkillUI.StopRecipeRepeat,
- C_TradeSkillUI.AnyRecipeCategoriesFiltered,
- C_TradeSkillUI.SetOnlyShowLearnedRecipes,
- C_TradeSkillUI.IsInventorySlotFiltered,
- C_TradeSkillUI.CanObliterateCursorItem,
- C_TradeSkillUI.ClearPendingObliterateItem,
- C_TradeSkillUI.GetCategories,
- C_TradeSkillUI.GetObliterateSpellID,
- C_TradeSkillUI.GetRecipeTools,
- C_TradeSkillUI.IsTradeSkillLinked,
- C_TradeSkillUI.GetOnlyShowLearnedRecipes,
- C_TradeSkillUI.CloseObliterumForge,
- C_TradeSkillUI.AreAnyInventorySlotsFiltered,
- C_TradeSkillUI.GetTradeSkillTexture,
- C_TradeSkillUI.SetRecipeFavorite,
- C_TradeSkillUI.GetOnlyShowMakeableRecipes,
- C_TradeSkillUI.GetTradeSkillListLink,
- C_TradeSkillUI.IsRecipeSearchInProgress,
- C_TradeSkillUI.SetRecipeItemLevelFilter,
- C_TradeSkillUI.GetSubCategories,
- C_TradeSkillUI.CraftRecipe,
- C_TradeSkillUI.GetRecipeNumReagents,
- C_TradeSkillUI.GetTradeSkillLine,
- C_TradeSkillUI.SetOnlyShowMakeableRecipes,
- C_TradeSkillUI.IsRecipeFavorite,
- C_TradeSkillUI.CanTradeSkillListLink,
- C_TradeSkillUI.GetRecipeSourceText,
- C_TradeSkillUI.ClearRecipeSourceTypeFilter,
- C_TradeSkillUI.GetFilterableInventorySlots,
- C_TradeSkillUI.IsRecipeRepeating,
- C_TradeSkillUI.GetRecipeItemLevelFilter,
- C_TradeSkillUI.GetTradeSkillLineForRecipe,
- C_TradeSkillUI.GetAllFilterableInventorySlots,
- C_TradeSkillUI.GetRecipeReagentItemLink,
- C_TradeSkillUI.OpenTradeSkill,
- C_TradeSkillUI.SetRecipeSourceTypeFilter,
- C_TradeSkillUI.GetFilteredRecipeIDs,
- C_TradeSkillUI.GetPendingObliterateItemLink,
- C_TradeSkillUI.CloseTradeSkill,
- C_TradeSkillUI.GetRecipeReagentInfo,
- C_TradeSkillUI.IsDataSourceChanging,
- C_TradeSkillUI.GetRecipeLink,
- C_TradeSkillUI.ClearInventorySlotFilter,
- C_TradeSkillUI.SetRecipeCategoryFilter,
- C_TradeSkillUI.GetRecipeNumItemsProduced,
- C_TradeSkillUI.GetRecipeCooldown,
- C_TradeSkillUI.SetOnlyShowUnlearnedRecipes,
- C_TradeSkillUI.GetRecipeDescription,
- C_TradeSkillUI.GetRecipeItemLink,
- C_TradeSkillUI.IsAnyRecipeFromSource,
- C_TradeSkillUI.IsRecipeCategoryFiltered,
- GetNumQuestLogRewardSpells
Changes
- Zeroes have been removed from item links. They now look like: |cff0070dd|Hitem:128955::::::::99:577::11::::|h[The Spider Queen's Veil]|h|r
- The way nameplates are created has changed completely.
- New addon: Blizzard_Nameplates
- New events: NAME_PLATE_CREATED, NAME_PLATE_UNIT_ADDED, NAME_PLATE_UNIT_REMOVED
- Functions like GetNumNamePlateMotionTypes and GetNameplateFrames have been moved to a new C_Nameplates table.
- C_NamePlate.GetNamePlateForUnit,
- C_NamePlate.GetNamePlateSizes,
- C_NamePlate.GetNamePlates,
- C_NamePlate.GetNumNamePlateMotionTypes,
- C_NamePlate.SetNamePlateSizes,
- The Texture method Texture:SetTexture(R, G, B[, A]) no longer works properly in many cases. Use the new method Texture:SetColorTexture instead.
- The Texture method Texture:SetTexCoord no longer works properly for values greater than 1. This was previously used for horizontal and (especially) vertical tiling. For now, use the optional parameters in the method Texture:SetTexture(texturePath[, horizTile[, vertTile]]) instead to tile textures. Alternatively, Texture:SetVertTile(<bool>) and Texture:SetHorizTile(<bool>) might be the intended replacements for this behavior.
- The Texture method Texture:SetToFileData has been removed and is now handled by Texture:SetTexture instead.
- GetSpellInfo(spellid) now returns fileID for its 3rd return instead if iconPath.
- The deprecated animation method Alpha:SetChange has been removed. Use Alpha:SetFromAlpha and/or Alpha:SetToAlpha instead.
- GetInboxItem now returns the itemID between name and itemTexture: name, itemID, itemTexture, count, quality, canUse = GetInboxItem(index, itemIndex)
- GetSendMailItem now returns the itemID between name and itemTexture: name, itemID, itemTexture, count, quality = GetSendMailItem(sendMailIndex)
- GetNumDungeonMapLevels now returns an array of level numbers. To get the count of levels, get the length of the returned array
- GetMapLandmarkInfo now returns a type integer as its first return value, before name which used to be the first return value
- Frame type Minimap are no longer creatable by CreateFrame and will be ignored in xml files for 3rd party addons.
- GameTooltip:SetTradeSkillItem(tradeItemIndex[, reagentIndex]) replaced by GameTooltip:SetRecipeReagentItem(recipeID, reagentIndex).
- GetQuestLogRewardSpell(rewardSpellIndex) requires rewardSpellIndex parameter now
- GarrisonUI API have been updated and multiple of the C_Garrison.* now requires a LE_* filter and new return values have been added.
- Some Mountjournal Functions got renamed
- C_MountJournal.GetMountInfo has been renamed to C_MountJournal.GetMountInfoByID
- C_MountJournal.GetMountInfoExtra has been renamed to C_MountJournal.GetMountInfoExtraByID
- C_MountJournal.Summon has been renamed to C_MountJournal.SummonByID
Removals
- Glyph handling: CastGlyph, SetGlyph, GetGlyphInfo, etc.
- GetInventoryItemGems and GetContainerItemGems (but gem information is still apparently extractable from the itemString)
- GetQuestLogRewardTalents
- API regarding in-field visibility changes to helms and cloaks: ShowHelm, ShowCloak, ShowingHelm, ShowingCloak
- Functions regarding defunct stats Multistrike and Amplify
- Frame method: Frame:AllowAttributeChanges()
- Event UNIT_COMBO_POINTS (streamlined into UNIT_POWER)
- CVar floatingCombatTextComboPoints (streamlined into CVar floatingCombatTextEnergyGains)
- Model:GetModel() has been replaced by Model:GetModelFileID()