Lore archive · Warcraft Wiki, 2023 dump
Patch 2.4.0/API changes
Last wiki revision 2020-09-04
- The combat logging mechanism is completely overhauled with explicit data instead of text strings delivered to the UI. Highlights include detailed flags indicating relationship of involved units to player, unique identifiers for units with the same name within the combat log -- great for log analysis.
- Guide to the New Combat Log
- The In-game Interface Options screen is being revamped and the new architecture should allow AddOn authors to modify its contents without the taint issues presented by the current system. Additionally this system will contain an area for AddOn authors to present their own configuration options. Authors interested in this feature should be sure to experiment on the PTRs before patch 2.4 is released so that any issues can be surfaced and discussed. Basic details on how to use this system can be found in code comments in the 2.4 UIOptionsPanels.lua.
- and will no longer provide information about which party member was enabled or disabled.
- The SecureStateHeader now provides a mechanism to change its own attributes in response to state changes.
- In 2.4, you'll be able to pass a coroutine as a first (optional) parameter to debugstack
- There's a new cVar unitHighlights; 0 = no model highlighting with Alt-Z, 1 = model highlighting on with Alt-Z. (e.g. /console unitHighlights 1)
- Players can now toggle the display of Friendly and Enemy player names, as well as their pets and creations. You can toggle cosmetic pet names too. :)
- NEW - GameTooltip:SetTotem(slot)
- Textures can now be included in FontStrings locally using a new | escape code: |T : [: :<xOffset>:<yOffset>]|t
- Selected textures can also be included in Chat messages and sent to other users, the current available textures are represented in a form like: {star}
- NEW - armorPenetration = GetArmorPenetration
- NEW - DeclineInvite(channel)
- NEW - CombatLogAddFilter
- NEW - CombatLogAdvanceEntry
- NEW - CombatLogClearEntries
- NEW - CombatLogGetCurrentEntry
- NEW - CombatLogGetNumEntries
- NEW - CombatLogGetRetentionTime
- NEW - CombatLogResetFilter
- NEW - CombatLogSetCurrentEntry
- NEW - CombatLogSetRetentionTime
- NEW - SetFriendNotes("name" or index, "notes")
- NEW - canEdit = CanEditGuildTabInfo(tab)
- NEW - QueryGuildBankText(tab)
- NEW - SetGuildBankText(tab, "text")
- NEW - freeSlots, itemFamily = GetContainerNumFreeSlots(bagIndex) -- Returns the number of free slots in a bag, and the type of items that can go in the bag. For bagType, 0 means any item can go in the bag.
- NEW - bagType = GetItemFamily(itemId or itemName or itemLink or itemString) -- When used with a container, this returns the type of container. When used with an item, it returns the type of container the item can go in. However, bagType is a bitflag, so GetItemFamily for something that could go in a quiver (bagType 1) and an ammo pouch (bagType 2) would return 3. A bag that can hold both arrows and bullets would also return 3.
- 0 = Unspecified (for bags it means any item, for items it means no special bag type)
- 1 = Quiver
- 2 = Ammo Pouch
- 4 = Soul Bag
- 8 = Leatherworking Bag
- 16 = Unknown
- 32 = Herb Bags
- 64 = Enchanting Bags
- 128 = Engineering Bag
- 256 = Keyring
- 512 = Gem Bag
- 1024 = Mining Bag
- 2048 = Unknown
- 4096 = Vanity Pets
- NEW - icon = GetItemIcon(itemId or itemName or itemLink or itemString) -- Returns the icon for an item (as long as the item is valid), even if GetItemInfo returns nil.
- NEW - questLink = GetQuestLink(questLogId)
- NEW - GetRewardTitle
- NEW - numLanguages = GetNumLanguages
- NEW - isOptOutOfLoot = GetOptOutOfLoot
- NEW - SetOptOutOfLoot(boolean)
- false: You are now eliglible for random loot.
- true: You are now passing on random loot.
- NEW - name, rank, icon, cost, isFunnel, powerType, castTime, minRange, maxRange = GetSpellInfo(spellId or spellName or spellLink)
- NEW - spellLink = GetSpellLink(spellId or spellName or spellLink)
- NEW - spellLink = GetTalentLink(tab, index[, inspect])
- NEW - canSummon = CanSummonFriend
- NEW - SummonFriend
- NEW - haveTotem, name, startTime, duration, icon = GetTotemInfo(slot)
- 1 = Fire
- 2 = Earth
- 3 = Water
- 4 = Air
- NEW - timeleft = GetTotemTimeLeft(slot)
- NEW - healthMod = GetUnitMaxHealthModifier("unit")
- NEW - inRange = UnitInRange("unit") -- Determines if a unit is within a (fixed by Blizzard) useful range based on flash heal/cure range) This is now used by the Blizzard Raid UI
- NEW - classLocal, class = UnitClassBase("unit")
- NEW - raceLocal, race = UnitRaceBase("unit")
- NEW - guid = UnitGUID("unit") -- Returns a string representing a unique identifier for the given unit. This is the same string that is used in the combat log to identify a unit.
- NEW - DeclineName("name", gender, declensionSet)
- NEW - GetNumDeclensionSets("name", gender)
- NEW - CanGrantLevel
- NEW - GrantLevel
- NEW - CommentatorSetCameraCollision
- NEW - CommentatorSetTargetHeightOffset
- NEW - TogglePerformancePause
Source
https://warcraft.wiki.gg/wiki/Patch_2.4.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.