AgentSkillsCN

wow-api-framexml

World of Warcraft FrameXML函数的完整文档——包括全局Lua函数、混入模式、对象池、SharedXML实用工具,以及游戏辅助模块。当您需要使用UI辅助函数(StaticPopup_Show、EasyMenu)、格式化工具(SecondsToTime、FormatLargeNumber)、表格/数学工具(tContains、Lerp)、混入/池模式、聊天框过滤器、工具提示辅助函数、背包操作、纹理/图集标记,以及所有FrameXML游戏辅助模块时,此功能将为您提供强大支持。

SKILL.md
--- frontmatter
name: wow-api-framexml
description: "Complete documentation for World of Warcraft FrameXML functions — global Lua functions, mixins, object pools, SharedXML utilities, and game utility modules. Use this for UI helpers (StaticPopup_Show, EasyMenu), formatting (SecondsToTime, FormatLargeNumber), table/math utils (tContains, Lerp), mixin/pool patterns, chat frame filters, tooltip helpers, bag functions, texture/atlas markup, and all FrameXML game utility modules."

FrameXML Functions API

This skill documents the FrameXML layer of the WoW API — global Lua functions defined by Blizzard's interface code, shared XML utility modules, mixin system, object pools, and game utility modules. These are distinct from the C-based Widget API.

Source of truth: https://warcraft.wiki.gg/wiki/FrameXML_functions FrameXML source: https://github.com/Gethe/wow-ui-source/tree/live/Interface/FrameXML SharedXML source: https://github.com/Gethe/wow-ui-source/tree/live/Interface/SharedXML Current as of: Patch 12.0.0 — Retail only.

When to Use This Skill

Use this skill when you need to:

  • Toggle standard UI panels (ToggleCharacter, ShowUIPanel, ToggleSpellBook)
  • Use standard UI dialogs (StaticPopup_Show) or context menus (EasyMenu)
  • Use the Mixin / Object Pool system (CreateFromMixins, CreateFramePool)
  • Filter or extend chat messages (ChatFrame_AddMessageEventFilter)
  • Format numbers, money, or time (SecondsToTime, FormatLargeNumber, GetMoneyString)
  • Use table utilities (tContains, tDeleteItem, tInvert, CopyTable)
  • Use math utilities (Lerp, Clamp, Round, CalculateDistance)
  • Create texture/atlas markup for FontStrings (CreateAtlasMarkup, CreateTextureMarkup)
  • Build tooltips with helpers (GameTooltip_AddNormalLine, GameTooltip_SetTitle)
  • Handle pixel-perfect UI (PixelUtil.SetSize, PixelUtil.SetPoint)
  • Use event convenience functions (EventUtil.ContinueOnAddOnLoaded)
  • Register/animate frames (UIFrameFadeIn, ScriptAnimationUtil.ShakeFrameRandom)
  • Manage bags (OpenAllBags, ToggleBag, IsBagOpen)
  • Preview items/mounts in dressing room (DressUpItemLink)
  • Query player/class/spec info (PlayerUtil.GetCurrentSpecID, GetClassColor)
  • Work with quest icons, map utils, communities, transmog, or other game utilities

References

ReferenceContents
UIPARENT.mdUI panel toggles, ShowUIPanel, CloseSpecialWindows, MouseIsOver, number abbreviation
MIXINS-AND-POOLS.mdMixin system, CreateFromMixins, CreateColor, object/frame/texture pools
SHAREDXML-DATA-UTILS.mdTableUtil, MathUtil, TimeUtil, FormattingUtil, ColorUtil, CvarUtil, EasingUtil, EventUtil, EventRegistry, FunctionUtil, LinkUtil, Flags, AuraUtil, UnitUtil
SHAREDXML-UI-UTILS.mdFrameUtil, TextureUtil, PixelUtil, AnchorUtil, NineSlice, RegionUtil, ScriptAnimationUtil, GameTooltipTemplate, TooltipUtil, UIFrameFadeIn/Out
FRAMEXML-GAME-UTILS.mdAchievementUtil, ActionButtonUtil, AzeriteUtil, CalendarUtil, CampaignUtil, CommunitiesUtil, DifficultyUtil, ItemRef/ItemUtil, MapUtil, PlayerUtil, PVPUtil, PartyUtil, QuestUtils, TransmogUtil, and more
CHATFRAME-CONTAINERS.mdChatFrame functions, bag open/close/toggle, DressUpFrames, StaticPopup_Show, EasyMenu