Skip to content
everloot

Lore archive · Warcraft Wiki, 2023 dump

Intrinsic frame

Last wiki revision 2023-09-10

Intrinsic frame templates are similar to virtual XML templates. Intrinsics also support defining script handlers to be called before/after the normal handler.

  • The attribute becomes the new tag name in XML or the frame type in.
  • Specifying the attribute means the handler is called before the normal script handler.
  • Specifying the attribute means the handler is called after the normal script handler.
  • Intrinsic scripts cannot be removed after being defined.
  • They can be returned from GetScript and hooked with HookScript with /.
  • GetObjectType returns the intrinsic's type, not the intrinsic's name e.g. == "Frame", not "MyFrame".
  • It is not possible to declare an intrinsic based on another intrinsic.
  • For intrinsic frame templates when the attribute is not specified it will default to "precall".

Frame Button EditBox

  • EventFrame
  • ScrollingMessageFrame
  • ContainedAlertFrame
  • DropDownToggleButton
  • EventButton
  • ItemButton
  • EventEditBox

Creates a frame in XML that inherits from an intrinsic template. <font color="#4ec9b0"> TestXml.toc ExampleIntrinsic.xml ExampleFrame.xml

  • Prints in order.
  • 1) Interface:
  • 2) Title: TestXml intrinsic

<font color="#4ec9b0"> ExampleIntrinsic.xml

<font color="#4ec9b0"> ExampleFrame.xml

Creates a frame with which inherits from both an intrinsic template and virtual template; also uses mixins to keep things tidy.

<font color="#4ec9b0"> TestLua.toc TestIntrinsic.xml TestTemplate.xml Core.lua

  • 1) Interface:
  • 2) Title: TestLua intrinsic

<font color="#4ec9b0"> TestIntrinsic.lua

<font color="#4ec9b0"> TestIntrinsic.xml

<font color="#4ec9b0"> TestTemplate.lua

<font color="#4ec9b0"> TestTemplate.xml

<font color="#4ec9b0"> Core.lua

Source

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