<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="GwToastContainer" virtual="true">
        <Size x="265" y="265"></Size>
        <Anchors>
            <Anchor point="RIGHT" x="0" y="0"></Anchor>
        </Anchors>
    
    </Frame>
    <Button name="GwToast" enableMouse="true" registerForClicks="LeftButtonUp" virtual="true">
        <Size x="265" y="52"></Size>
        <Anchors>
            <Anchor point="RIGHT" x="0" y="0"></Anchor>
        </Anchors>
        <Layers>
            <Layer level="BACKGROUND">
                <Texture parentKey="background" file="Interface\AddOns\GW2_UI\textures\toast-bg">
                    <Size x="512" y="128"></Size>
                    <Anchors>
                        <Anchor point="CENTER" relativePoint="CENTER" x="0" y="0"></Anchor>
                    </Anchors>
                </Texture>
            </Layer> 
            <Layer level="BACKGROUND" textureSubLevel="2">
                <Texture parentKey="flare" name="$parentToastFlare" file="Interface\AddOns\GW2_UI\textures\level-up-flare">
                    <Size x="120" y= "120"></Size>
                    <Anchors>
                        <Anchor point="CENTER" relativePoint="LEFT" x="30" y="-2"></Anchor>
                    </Anchors>
                </Texture>
                <Texture parentKey="flare2" name="$parentToastFlare" file="Interface\AddOns\GW2_UI\textures\level-up-flare">
                    <Size x="120" y= "120"></Size>
                    <Anchors>
                        <Anchor point="CENTER" relativePoint="LEFT" x="30" y="-2"></Anchor>
                    </Anchors>
                </Texture>
            </Layer>  
            <Layer level="BACKGROUND" textureSubLevel="3">
                <Texture parentKey="icon">
                    <Size x="50" y= "50"></Size>
                    <Anchors>
                        <Anchor point="CENTER" relativePoint="LEFT" x="30" y="-2"></Anchor>
                    </Anchors>
                    <TexCoords left="0.1" right="0.9" top="0.1" bottom="0.9" />
                </Texture>
                
                <FontString parentKey="title" text="Unknown" justifyH="LEFT" justifyV="TOP">
                    <Size x="200" y="15"></Size>
                    <Anchors>
                        <Anchor point="LEFTTOP" relativePoint="LEFTTOP" x="60" y="-5"></Anchor>
                    </Anchors>
                </FontString>
                
                <FontString parentKey="sub" text="Unknown" justifyH="LEFT" justifyV="TOP">
                    <Size x="200" y="40"></Size>
                    <Anchors>
                        <Anchor point="LEFTTOP" relativePoint="LEFTTOP" x="60" y="-25"></Anchor>
                    </Anchors>
                </FontString>
                
                
            </Layer>
            <Layer level="BACKGROUND"  textureSubLevel="4">
             <Texture parentKey="IconBorder" file="Interface\AddOns\GW2_UI\textures\bag\bagitemborder">
                    <Size x="50" y= "50"></Size>
                    <Anchors>
                        <Anchor point="CENTER" relativePoint="LEFT" x="30" y="-2"></Anchor>
                    </Anchors>
           
                </Texture>
            </Layer>
        </Layers>
        <Scripts>
            <OnLoad>
                self.title:SetFont(UNIT_NAME_FONT,14)
                self.sub:SetFont(UNIT_NAME_FONT,12)
                
                self.title:SetShadowColor(0,0,0,1)
                self.sub:SetShadowColor(0,0,0,1)
                
                self.title:SetShadowOffset(1,-1)
                self.sub:SetShadowOffset(1,-1)
                self.flare.rot = 1
                self.animatingOut =false
            </OnLoad>
            <OnClick>
                self.removeTime  = 0
            </OnClick>
            <OnShow function="gwToastOnShowAnimation"></OnShow>
            <OnUpdate function="gwToastAnimateFlare"></OnUpdate>
        </Scripts>
    </Button>
    <Button name="GwToastLevelUp" enableMouse="true" registerForClicks="LeftButtonUp" virtual="true">
        <Size x="265" y="52"></Size>
        <Anchors>
            <Anchor point="RIGHT" x="0" y="0"></Anchor>
        </Anchors>
        <Layers>
            <Layer level="BACKGROUND">
                <Texture parentKey="background" file="Interface\AddOns\GW2_UI\textures\toast-levelup">
                    <Size x="512" y="128"></Size>
                    <Anchors>
                        <Anchor point="CENTER" relativePoint="CENTER" x="0" y="0"></Anchor>
                    </Anchors>
                </Texture>
            </Layer> 
            <Layer level="BACKGROUND" textureSubLevel="2">
                <Texture parentKey="flare" name="$parentToastFlare" file="Interface\AddOns\GW2_UI\textures\level-up-flare">
                    <Size x="120" y= "120"></Size>
                    <Anchors>
                        <Anchor point="CENTER" relativePoint="LEFT" x="30" y="-2"></Anchor>
                    </Anchors>
                </Texture>
                <Texture parentKey="flare2" name="$parentToastFlare" file="Interface\AddOns\GW2_UI\textures\level-up-flare">
                    <Size x="120" y= "120"></Size>
                    <Anchors>
                        <Anchor point="CENTER" relativePoint="LEFT" x="30" y="-2"></Anchor>
                    </Anchors>
                </Texture>
            </Layer>  
            <Layer level="BACKGROUND" textureSubLevel="3">
                <Texture parentKey="icon" file="Interface\AddOns\GW2_UI\textures\icon-levelup">
                    <Size x="128" y= "128"></Size>
                    <Anchors>
                        <Anchor point="CENTER" relativePoint="LEFT" x="30" y="-2"></Anchor>
                    </Anchors>
                    <TexCoords left="0.1" right="0.9" top="0.1" bottom="0.9" />
                </Texture>
                
                <FontString parentKey="title" text="Unknown" justifyH="LEFT" justifyV="TOP">
                    <Size x="200" y="15"></Size>
                    <Anchors>
                        <Anchor point="LEFTTOP" relativePoint="LEFTTOP" x="60" y="-5"></Anchor>
                    </Anchors>
                </FontString>
                
                <FontString parentKey="sub" text="Unknown" justifyH="LEFT" justifyV="TOP">
                    <Size x="200" y="40"></Size>
                    <Anchors>
                        <Anchor point="LEFTTOP" relativePoint="LEFTTOP" x="60" y="-25"></Anchor>
                    </Anchors>
                </FontString>
                
                
            </Layer>
            <Layer level="BACKGROUND"  textureSubLevel="4">
             <Texture parentKey="IconBorder" file="Interface\AddOns\GW2_UI\textures\bag\bagitemborder">
                    <Size x="50" y= "50"></Size>
                    <Anchors>
                        <Anchor point="CENTER" relativePoint="LEFT" x="30" y="-2"></Anchor>
                    </Anchors>
           
                </Texture>
            </Layer>
        </Layers>
        <Scripts>
            <OnLoad>
                self.title:SetFont(UNIT_NAME_FONT,14)
                self.sub:SetFont(UNIT_NAME_FONT,12)
                
                self.title:SetShadowColor(0,0,0,1)
                self.sub:SetShadowColor(0,0,0,1)
                
                self.title:SetShadowOffset(1,-1)
                self.sub:SetShadowOffset(1,-1)
                self.flare.rot = 1
                self.animatingOut =false
            </OnLoad>
            <OnClick>
                self.removeTime  = 0
            </OnClick>
            <OnShow>
                gwToastOnShowAnimation(self)
                
            </OnShow>
            <OnUpdate>
                gwToastAnimateFlare(self,elapsed)
                gw_animate_levelUp_wiggle(self)
            </OnUpdate>
        </Scripts>
    </Button>
    
</Ui>     
