XML UI ← XML elements < UiScript

Script allows Lua scripts or Lua files to be included in an WoW UI XML file. The Include element can be used in a Ui element.

Inheritance Edit

Inherited by: none, Inherits: none, Defined in: Ui

Elements Edit

  • {text} - actual Lua script text as the contents of <Script> element

Attributes Edit

  • file (string) - (optional) relative path to the WoW UI XML file to include

Summary Edit

Script elements include other WoW UI Lua files in an XML file and allow them to be processed on load inline, at the point of the include statement.

Example Edit

<Ui xmlns=""
  <Script file="MyFrame.lua"/>
  <Frame name="MyFrame">
    <Size x="200" y="200"/>

This example demonstrates use of using Script to include a WoW UI Lua file. The included Lua file will be loaded at the point of the <Script> element during load.

Details Edit

Ad blocker interference detected!

Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.