Skip to content
everloot

Lore archive · Warcraft Wiki, 2023 dump

Patch 10.2.0/API changes

Last wiki revision 2023-11-13

  • Added a new texture slicing system that can be used as a replacement for backdrops and nineslice layouts.
  • Addon management functions such as and have been moved to the C_AddOns namespace.
  • Most functions have the same signatures as before, however one exception to this is which had the order of its parameters swapped.
  • Aliases from the old function names exist, but are deprecated and will be removed in a future patch.
  • The function has been moved to the C_CVar namespace. An alias for the old name still exists, but is deprecated and will be removed in a future patch.
  • The function now requires that the initial parameter be a texture object. Previously, this function would also accept string values if they named a global texture object.
  • The C_Console namespace has been removed, with its functions moved back to the global namespace.
  • The auto-generated API documentation has been expanded to include many global functions that were previously undocumented.
  • The auto-generated API documentation now contains a pony.
  • Addons can no longer be loaded before FrameXML has fully loaded.
  • Fixed an issue where newly created characters would have all addons enabled by default.
  • Fixed an issue where NaN values could be used as table keys.
  • TOC:
  • Diffs: wow-ui-source, BlizzardInterfaceResources
  • Deprecated API: Blizzard_Deprecated

A new texture slicing system has been implemented that allows a single Texture object to render a grid of nine sub-textures without distortion at the corners. The edges and central fill of the rendered texture can be configured to either tile or stretch across their respective dimensions.

This system is recommended to be used in new code going forward as a replacement for both the deprecated Backdrop system and the script-based NineSlice panel layout utility. One of the advantages of this new system is that it only requires a single texture object to render the grid, whereas both the old systems required nine separate objects. This system is fully compatible with custom texture assets and does not require the use of atlases.

To use this system from Lua the method should be called to specify the pixel margins that represent the edges of the underlying asset. The method controls whether or not the central portion of the texture and its surrounding edges will be tiled or stretched, with the default being stretched. The below example demonstrates the usage of these APIs.

The following new elements in XML can be supplied when defining a Texture object to configure this functionality.

+ arg: <font color="#00b400">origin + arg: <font color="#00b400">entryID + arg: <font color="#00b400">clearEdges + arg: <font color="#00b400">clearEdges

+ arg: <font color="#00b400">clearOtherKeys

+ <font color="#00b400">interactionIsContinuing # <font color="#ecbc2a">readyCheckInfo, Nilable: false -> true

Enum.AccountStateFlags + <font color="#00b400">PerksPendingPurchaseLoaded = 0x0000000080000000 + <font color="#00b400">WoWTokenPurchaseLoaded = 0x0000001000000000 Enum.BrawlType + <font color="#00b400">SoloRbg = 5 Enum.ChrCustomizationCategoryFlag + <font color="#00b400">Subcategory = 2 Enum.CurrencyGainFlags + <font color="#00b400">None = 0 Enum.CurrencySource # <font color="#ff6767">QuestRewardIgnoreCaps -> <font color="#00b400">QuestRewardIgnoreCapsDeprecated # <font color="#ff6767">WorldQuestRewardIgnoreCaps -> <font color="#00b400">WorldQuestRewardIgnoreCapsDeprecated + <font color="#00b400">ConvertItemsToCurrencyAndReputation = 62 + <font color="#00b400">PhBuffer_63 = 63 + <font color="#00b400">PhBuffer_64 = 64 Enum.EventToastDisplayType + <font color="#00b400">WeeklyRewardUnlock = 9 + <font color="#00b400">WeeklyRewardUpgrade = 10 Enum.EventToastEventType + <font color="#00b400">WeeklyRewardUnlock = 23 + <font color="#00b400">WeeklyRewardUpgrade = 24, Enum.GossipNpcOption # <font color="#ff6767">TabardVendor -> <font color="#00b400">GuildTabardVendor + <font color="#00b400">PersonalTabardVendor = 54 Enum.ItemDisplayTextDisplayStyle + <font color="#00b400">PlayerChoiceReward = 3 Enum.LinkedCurrencyFlags + <font color="#00b400">AddIgnoresMax = 0x8 Enum.PlayerInteractionType # <font color="#ff6767">TabardVendor -> <font color="#00b400">GuildTabardVendor + <font color="#00b400">PersonalTabardVendor = 65 Enum.UIMapFlag + <font color="#00b400">DoNotShowOnNavbar = 0x80000

CurrencyConsts - <font color="#ff6767">DRAGON_ISLES_SUPPLIES_CURRENCY_ID ItemConsts + <font color="#00b400">MAX_LOOT_OBJECT_ITEMS = 31

AtlasInfo + <font color="#00b400">rawSize + <font color="#00b400">sliceData CharCustomizationCategory + <font color="#00b400">subcategory ItemUpgradeSeasonalCostType # <font color="#ecbc2a">itemID, Nilable: false -> true + <font color="#00b400">currencyID PerksVendorItemInfo # <font color="#ff6767">pending -> <font color="#00b400">isPurchasePending + <font color="#00b400">uiGroupInfo PvpBrawlInfo + <font color="#00b400">minItemLevel QuestInfo + <font color="#00b400">isInternalOnly StatusBarWidgetVisualizationInfo + <font color="#00b400">glowAnimType + <font color="#00b400">showGlowState + <font color="#00b400">fillMinOpacity + <font color="#00b400">fillMaxOpacity TraitNodeInfoPartial + <font color="#00b400">activeEntryID UIWidgetItemInfo + <font color="#00b400">showAsEarned WeeklyRewardActivityInfo + <font color="#00b400">activityTierID XMLTemplateInfo + <font color="#00b400">sourceLocation

Source

https://warcraft.wiki.gg/wiki/Patch_10.2.0/API_changes · retrieved 2023-11-13 · CC BY-SA 4.0

Converted from wikitext with templates, tables and images removed, so some sentences may be missing values.

This archive predates WoW: Forever. For collected gameplay facts see the Forever database. Search the archive.