View Single Post
04/27/15, 07:12 AM   #3
ZunaSW
Join Date: Mar 2014
Posts: 37
Oh, hm. So I got this, as you say:

Code:
<GuiXml>
    <Controls>
        <TopLevelControl name="Test1" mouseEnabled="true" movable="true">
            <Dimensions x="400" y="400" />
            <Anchor point="CENTER" />
            <Controls>
                <Backdrop name="myControlBG" inherits="ZO_ThinBackdrop" />
                <Label name="myControl" font="ZoFontWindowTitle" color="CFDCBD" wrapMode="ELLIPSIS">
                    <AnchorFill />
                </Label>
            </Controls>
        </TopLevelControl>
    </Controls>
</GuiXml>
And in the Lua, just what you said in the line 1, yet I get this error:

Code:
user:/AddOns/Test1/Test1.lua:1: attempt to index a nil value
stack traceback:
	user:/AddOns/Test1/Test1.lua:1: in function '(main chunk)'
What am I doing wrong?

Thanks for the reply : )
  Reply With Quote