Skip to content
everloot

Lore archive · Warcraft Wiki, 2023 dump

Virtual XML template

Last wiki revision 2021-12-27

Virtual XML templates (or deferred nodes ) extend the Widget API by allowing widgets to inherit properties. <Frame name="MyFrameTemplate" virtual="true" /> <Frame inherits="MyFrameTemplate" /> CreateFrame("Frame", nil, nil, "MyFrameTemplate")

  • Add (and a name) in XML to any kind of, or.
  • New widgets may inherit templates using a comma-delimited list of template names:
  • The attribute in XML.
  • The fourth argument in.
  • FrameXML provides numerous templates that AddOns may use, including:
  • A complete list (compiled by Ketho); and
  • Several basic widget appearances (SharedUIPanelTemplates.xml, archived at Townlong-Yak).
  • Templates do not reside in the global environment during runtime; they exist in a separate state.
  • Reusing the same name on two virtual templates will throw a warning in and in-game.
  • Intrinsic frame - Alternative means to extend the widget API.

Source

https://warcraft.wiki.gg/wiki/Virtual_XML_template · 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.