Hey guys,
I'm trying to get my frame from my XML file to show via Lua code. This is what I have so far.
Code:
<Frame name="TrackerDialog" hidden="true" virtual="true" frameStrata="DIALOG" parent="UIParent">
<Size x="200" y="325"/>
</Size>
<Backdrop bgFile="Interface\DialogFrame\UI-DialogBox-Background-Dark" edgeFile="Interface\DialogFrame\UI-DialogBox-Border">
<BackgroundInsets>
<AbsInset left="11" right="12" top="12" bottom="11"/>
</BackgroundInsets>
<EdgeSize>
<AbsValue val="10"/>
</EdgeSize>
</Backdrop>
<Anchors>
<Anchor point="TOP">
<Offset>
<AbsDimension x="0" y="-500" />
</Offset>
</Anchor>
</Anchors>
<Scripts>
<OnMouseDown>self:StartMoving();</OnMouseDown>
<OnMouseUp>self:StopMovingOrSizing();</OnMouseUp>
<OnDragStop>self:StopMovingOrSizing();</OnDragStop>
</Scripts>
<Frames>
<Frame name="StatusGrp">
<Size x="180" y="75" />
<Backdrop edgeFile="Interface/Tooltips/UI-Tooltip-Border">
<EdgeSize>
<AbsValue val="10"/>
</EdgeSize>
</Backdrop>
<Anchors>
<Anchor point="TOP">
<Offset>
<AbsDimension x="0" y="-10" />
</Offset>
<Anchor>
</Anchors>
</frame>
</Frames>
</Frame>
Then I try to show the frame with the following code, and get an error saying it's a nil value
Code:
TrackerDialog:Show();
I feel like I'm missing something.