Code:
<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="SomeFrame">
<Size x="200" y="300"/>
<Anchors>
<Anchor point="LEFT" relativeTo="UIParent" relativePoint="CENTER" />
</Anchors>
<Layers>
<Layer level="BACKGROUND">
<Texture name="$parentBgTexture" file="Interface\DialogFrame\UI-DialogBox-Background"/>
</Layer>
<Layer level="OVERLAY">
<FontString text="String 11111" inherits="GameFontNormal">
<Anchors>
<Anchor point="TOP" relativeTo="Button1" relativePoint="BOTTOM"/>
</Anchors>
</FontString>
<FontString text="String 2" inherits="GameFontNormal" name="String2">
<Anchors>
<Anchor point="TOP" />
</Anchors>
</FontString>
</Layer>
</Layers>
<Frames>
<Button name="Button1" inherits="GameMenuButtonTemplate" text="Button1">
<Anchors>
<Anchor point="CENTER"/>
</Anchors>
</Button>
<Button name="Button2" inherits="GameMenuButtonTemplate" text="Button2">
<Anchors>
<Anchor point="BOTTOM" relativeTo="Button1" relativePoint="TOP"/>
</Anchors>
</Button>
</Frames>
</Frame>
</Ui>
Hello, I'm new to wow xml and I have trouble anchoring FontString to Button1,Button2. Anchoring for parent frame works, but when I use <Anchor point="TOP" relativeTo="Button1" relativePoint="BOTTOM"/> on fontString, FontString just disappears, what's the correct way to do it?