49
edits
| Line 77: | Line 77: | ||
XML files can be used to specify the visual style of your frames. More importantly though a frame allows you to easily pass events to your Lua files. [[Frame XML]] files are how [[Blizzard]] defines most of their own UI windows in the game. Check out [[XML User Interface]] for details. Here's a short example of an XML file: | XML files can be used to specify the visual style of your frames. More importantly though a frame allows you to easily pass events to your Lua files. [[Frame XML]] files are how [[Blizzard]] defines most of their own UI windows in the game. Check out [[XML User Interface]] for details. Here's a short example of an XML file: | ||
<pre> | |||
<Script file="MyAddon.lua"/> | <Script file="MyAddon.lua"/> | ||
<Frame name="MyAddon"> | <Frame name="MyAddon"> | ||
| Line 85: | Line 86: | ||
</Scripts> | </Scripts> | ||
</Frame> | </Frame> | ||
</pre> | |||
== Start Coding == | == Start Coding == | ||