Last active
December 18, 2015 17:09
-
-
Save jnwhiteh/5816365 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) | |
end | |
local sides = 100 + (100 * (total / seconds)) | |
self:SetSize(sides, sides) | |
end) | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
print("Before the XML is loaded", FrameTestFrame) | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## Interface: 50300 | |
## Name: FrameTest | |
Before.lua | |
FrameTest.xml | |
After.lua | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<Ui xmlns="http://www.blizzard.com/wow/ui/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.blizzard.com/wow/ui/ | |
..\FrameXML\UI.xsd"> | |
<Frame name="FrameTestFrame"> | |
<Size> | |
<AbsDimension x="25" y="25"/> | |
</Size> | |
<Anchors> | |
<Anchor point="CENTER"/> | |
</Anchors> | |
<Backdrop bgFile="Interface\DialogFrame\UI-DialogBox-Background" edgeFile="Interface\DialogFrame\UI-DialogBox-Border" tile="true"> | |
<BackgroundInsets> | |
<AbsInset left="11" right="12" top="12" bottom="11"/> | |
</BackgroundInsets> | |
<TileSize> | |
<AbsValue val="32"/> | |
</TileSize> | |
<EdgeSize> | |
<AbsValue val="32"/> | |
</EdgeSize> | |
</Backdrop> | |
</Frame> | |
</Ui> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment