Skip to content
everloot

Lore archive · Warcraft Wiki, 2023 dump

XML/LayoutFrame

Last wiki revision 2021-08-30

<LayoutFrame> abstracts tags and attributes common to most widgets. <LayoutFrame name="" parentKey= "" parentArray="" inherits="" mixin="" secureMixin="" virtual="" setAllPoints="" hidden="" > <Size /> <Anchors /> <KeyValues /> <Animations /> </LayoutFrame>

  • References
  • name - Adds a reference to, substituting with a parent's name.
  • parentKey - Adds a reference to the widget's parent.
  • parentArray ( - a reference to an array in the widget's parent.
  • Templates
  • inherits - Inherits a comma-separated list of XML virtual templates.
  • virtual - Creates an XML virtual template instead of a widget (requires name).
  • mixin - Inherits a comma-separated list of Lua mixins.
  • secureMixin - Inherits a comma-separated list of Lua mixins, wrapping inherited functions to force secure execution.
  • Position & Visibility
  • setAllPoints - the top-left and bottom-right anchors to match the parent widget.
  • hidden - Controls the frame's initial.

<Size> (inherits from ) sets the.

<Animations> encloses one or more tags.

The following example uses to demonstrate <LayoutFrame>'s utility

  • Creating (virtual) and using (inherits) XML virtual templates
  • Extending a parent's name (''name = "$parent____")

Extending the example, two more frames could be added to "Container" during runtime using Lua:

  • Nearest Lua equivalent:.
  • XML tags inheriting <LayoutFrame>:, ,.

Source

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