Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
An example addon showing a simple frame in XML used in Lua
print("After the XML is loaded", FrameTestFrame)
local seconds = 10
local total = 0
FrameTestFrame:SetScript("OnUpdate", function(self, elapsed)
total = total + elapsed
if total > seconds then
self:SetScript("OnUpdate", nil)
local sides = 100 + (100 * (total / seconds))
self:SetSize(sides, sides)
print("Before the XML is loaded", FrameTestFrame)
## Interface: 50300
## Name: FrameTest
<Ui xmlns="" xmlns:xsi="" xsi:schemaLocation="
<Frame name="FrameTestFrame">
<AbsDimension x="25" y="25"/>
<Anchor point="CENTER"/>
<Backdrop bgFile="Interface\DialogFrame\UI-DialogBox-Background" edgeFile="Interface\DialogFrame\UI-DialogBox-Border" tile="true">
<AbsInset left="11" right="12" top="12" bottom="11"/>
<AbsValue val="32"/>
<AbsValue val="32"/>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment