Skip to content
everloot

Lore archive · Warcraft Wiki, 2023 dump

API Frame GetAttribute

Last wiki revision 2023-08-19

Returns the value of a secure frame attribute. value = Frame:GetAttribute(attributeName) = Frame:GetAttribute(prefix, attributeName, suffix)

  • prefix: - modifier prefix string: a concatenation of alt-, ctrl-, and shift-, whichever apply, in that order.
  • attributeName: - Attribute name. If passed as the only argument, this may be a fully qualified value; otherwise, it is the unmodified name of the attribute being retrieved.
  • suffix: - Button suffix string: either a numeric string or a dash followed by an arbitrary button name.
  • value: - The value of the matching attribute; if no attribute matched the arguments.

When invoked with three arguments, this function attempts to return attributes in the following order (returning the first attribute that exists):

  • prefix .. name .. suffix
  • "*" .. name .. suffix
  • prefix .. name .. "*"
  • "*" .. name .. "*"
  • name

Source

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