<Ui xsi:schemaLocation="http://www.blizzard.com/wow/ui/..\FrameXML\UI.xsd">
    <Script file="Splash.lua"/>

    <FontString name="NarciSplashWhiteFont" inherits="NarciPrefFontWhiteMild" virtual="true">
        <Color r="0.5" g="0.5" b="0.5"/>
    </FontString>
    
    <Button name="Narci_TryItNow_Template" virtual="true">
        <Size y="12"/>
        <HitRectInsets>
            <AbsInset left="-4" right="-4" top="-4" bottom="-4"/>
        </HitRectInsets>
        <Layers>
            <Layer level="OVERLAY">
                <FontString parentKey="Text" inherits="NarciIndicatorLetter" justifyH="LEFT" justifyV="CENTER" text="NARCI_TRY_IT_NOW" spacing="2" ignoreParentScale="true">
                    <Size x="0" y="0"/>
                    <Color r="1" g="0.82" b="0" a="1"/>
                    <Anchors>
                        <Anchor point="TOPLEFT" relativeKey="$parent" relativePoint="TOPLEFT" x="10" y="0"/>
                        <Anchor point="RIGHT" relativeKey="$parent" relativePoint="RIGHT" x="-10"/>
                    </Anchors>
                </FontString>
            </Layer>
        </Layers>
        <Scripts>
            <OnEnter>
                self.Text:SetTextColor(1, 1, 1);
            </OnEnter>
            <OnLeave>
                self.Text:SetTextColor(1, 0.82, 0);
            </OnLeave>
        </Scripts>
    </Button>

    <Button name="Narci_SplashContinueButton_Template" inherits="NarciBindingButtonTemplate" parentKey="Continue" virtual="true">
        <Size y="24"/>
        <Animations>

        </Animations>
        <Scripts>
            <OnLoad>
                self.Value:SetText(NARCI_SPLASH_CLOSE_AND_CONTINUE);
                self.Value:SetAlpha(0.6);
            </OnLoad>
            <OnShow function="NarciAPI_OptimizeBorderThickness"/>
            <OnClick>
                NarciAPI_FadeFrame(self:GetParent(), 0.2, "OUT");
            </OnClick>
			<OnEnter>
				self.Background:SetColorTexture(1, 1, 1);
                self.Value:SetAlpha(1);
			</OnEnter>
        </Scripts>
    </Button>

    <Frame name="Narci_PatchNote_Template" frameStrata="TOOLTIP" hidden="true" Alpha="0" scale="0.8" virtual="true">
        <Size x="420" y="560"/>
        <Anchors>
            <Anchor point="CENTER" y="-30"/>
        </Anchors>
        <HitRectInsets>
            <AbsInset left="-30" right="-30" top="-30" bottom="-30"/>
        </HitRectInsets>
		<Layers>
			<Layer level="BACKGROUND" textureSubLevel="1">
				<Texture setAllPoints="true" parentKey="Black" Alpha="0" ignoreParentAlpha="true">
					<Color r="0" g="0" b="0" a="1"/>
					<Anchors>
						<Anchor point="TOPLEFT" relativeTo="UIParent" relativePoint="TOPLEFT" x="0" y="0"/>
						<Anchor point="BOTTOMRIGHT" relativeTo="UIParent" relativePoint="BOTTOMRIGHT" x="0" y="0"/>
					</Anchors>
                    <Animations>
                        <AnimationGroup parentKey="animIn" smoothing="OUT" setToFinalAlpha="true">
                            <Alpha fromAlpha="0" toAlpha="0.5" duration="0.5" order="1"/>
                            <Scripts>
                                <OnPlay>
                                    self:GetParent():GetParent():Show();
                                </OnPlay>
                                <OnFinished>
                                    self:GetParent():GetParent().animIn:Play();
                                </OnFinished>
                            </Scripts>
                        </AnimationGroup>
                    </Animations>
				</Texture>
			</Layer>

            <Layer level="BACKGROUND" textureSubLevel="10">
                <Texture parentKey="HeaderBackground" setAllPoints="true">
                    <Size y="20"/>
					<Anchors>
						<Anchor point="BOTTOMLEFT" relativePoint="TOPLEFT"/>
						<Anchor point="BOTTOMRIGHT" relativePoint="TOPRIGHT"/>
					</Anchors>                    
                    <Color a="1" r="1" g="1" b="1"/>
                    <Gradient orientation="VERTICAL">
                        <MinColor a="1" r="0.0" g="0.0" b="0.0"/>
                        <MaxColor a="1" r="0.1" g="0.1" b="0.1"/>
                    </Gradient>
                </Texture>
            </Layer>
            <Layer level="OVERLAY">
                <Texture inherits="NarciTopShadowTemplate"/>

				<FontString parentKey="Header" inherits="NarciNonInteractiveFont" justifyH="CENTER" justifyV="MIDDLE" text="NARCI_PATCH_NOTES">
					<Size x="0" y="0"/>
					<Anchors>
						<Anchor point="CENTER" relativeKey="$parent.HeaderBackground" relativePoint="CENTER" x="0" y="0"/>
					</Anchors>
				</FontString>


				<FontString parentKey="Header1" inherits="NarciSplashWhiteFont" justifyH="LEFT" justifyV="TOP" text="NARCI_SPLASH_HEADER1" ignoreParentScale="true">
					<Size x="0" y="0"/>
					<Anchors>
						<Anchor point="TOPLEFT" relativeKey="$parent" relativePoint="TOPLEFT" x="16" y="-16"/>
                        <Anchor point="RIGHT" relativeKey="$parent" relativePoint="RIGHT" x="-16"/>
					</Anchors>
				</FontString>

				<FontString parentKey="Text00" inherits="NarciSplashWhiteFont" justifyH="LEFT" justifyV="TOP" text="NARCI_SPLASH_MESSAGE0" spacing="2">
					<Size x="0" y="0"/>
					<Anchors>
						<Anchor point="TOPLEFT" relativeKey="$parent.Header1" relativePoint="BOTTOMLEFT" x="0" y="-12"/>
                        <Anchor point="RIGHT" relativeKey="$parent" relativePoint="RIGHT" x="-16"/>
					</Anchors>
				</FontString>

				<FontString parentKey="Text1" inherits="NarciSplashWhiteFont" justifyH="LEFT" justifyV="TOP" text="NARCI_SPLASH_MESSAGE1" spacing="2">
					<Size x="0" y="0"/>
					<Anchors>
						<Anchor point="TOPLEFT" relativeKey="$parent.Text00" relativePoint="BOTTOMLEFT" x="0" y="-12"/>
                        <Anchor point="RIGHT" relativeKey="$parent" relativePoint="RIGHT" x="-16"/>
					</Anchors>
				</FontString>

                <Texture file="Interface\AddOns\Narcissus\ART\Splash\IMG1" parentKey="IMG1" scale="1">
                    <Size y="120"/>
                    <TexCoords left="0" right="1" top="0" bottom="0.625"/>
					<Anchors>
						<Anchor point="TOP" relativeKey="$parent.Text1" relativePoint="BOTTOM" y="-12"/>
                        <Anchor point="LEFT" relativeKey="$parent" relativePoint="LEFT" x="20"/>
                        <Anchor point="RIGHT" relativeKey="$parent" relativePoint="RIGHT" x="-20"/>
					</Anchors>
                </Texture>
            </Layer>
        </Layers>

        <Frames>
            <Button inherits="NarciCloseButtonTemplate">
                <Anchors>
                    <Anchor point="RIGHT" relativeKey="$parent.HeaderBackground" relativePoint="RIGHT" x="-4" y="0"/>
                </Anchors>
            </Button>
            <!--Button parentKey="ExtraInfo1">
                <Size y="12"/>
                <Anchors>
                    <Anchor point="TOPLEFT" relativeKey="$parent.Text1" relativePoint="BOTTOMLEFT" x="0" y="-6"/>
                    <Anchor point="RIGHT" relativeKey="$parent" relativePoint="RIGHT" x="-26"/>
                </Anchors>
                <HitRectInsets>
                    <AbsInset left="-4" right="-4" top="-4" bottom="-4"/>
                </HitRectInsets>
                <Layers>
                    <Layer level="OVERLAY">
                        <FontString parentKey="Text" inherits="NarciIndicatorLetter" justifyH="LEFT" justifyV="CENTER" text="NARCI_SHOW_DETAILS" spacing="2" ignoreParentScale="true">
                            <Size x="0" y="0"/>
                            <Color r="1" g="0.82" b="0" a="1"/>
                            <Anchors>
                                <Anchor point="TOPLEFT" relativeKey="$parent" relativePoint="TOPLEFT" x="10" y="0"/>
                                <Anchor point="RIGHT" relativeKey="$parent" relativePoint="RIGHT" x="-10"/>
                            </Anchors>
                        </FontString>
                    </Layer>
                </Layers>
                <Scripts>
                    <OnEnter>
                        self.Text:SetTextColor(1, 1, 1);
                    </OnEnter>
                    <OnLeave>
                        self.Text:SetTextColor(1, 0.82, 0);
                    </OnLeave>
                    <OnClick function="Narci_ExtraInfoButton_OnClick"/>
                </Scripts>
            </Button-->
        </Frames>

        <Layers>
            <Layer level="OVERLAY">
				<!--FontString parentKey="Text2" inherits="NarciSplashWhiteFont" justifyH="LEFT" justifyV="TOP" text="NARCI_SPLASH_MESSAGE2" spacing="2">
					<Size x="0" y="0"/>
                    <Color r="0.9" g="0.9" b="0.9" a="1"/>
					<Anchors>
						<Anchor point="TOP" relativeKey="$parent.ExtraInfo1" relativePoint="BOTTOM" y="-16"/>
                        <Anchor point="LEFT" relativeKey="$parent.Text1" relativePoint="LEFT" x="0"/>
                        <Anchor point="RIGHT" relativeKey="$parent" relativePoint="RIGHT" x="-16"/>
					</Anchors>
				</FontString>
				<FontString parentKey="Text3" inherits="NarciSplashWhiteFont" justifyH="LEFT" justifyV="TOP" text="NARCI_SPLASH_MESSAGE3" spacing="2">
					<Size x="0" y="0"/>
                    <Color r="0.9" g="0.9" b="0.9" a="1"/>
					<Anchors>
						<Anchor point="TOPLEFT" relativeKey="$parent.Text2" relativePoint="BOTTOMLEFT" x="0" y="-12"/>
                        <Anchor point="RIGHT" relativeKey="$parent" relativePoint="RIGHT" x="-16"/>
					</Anchors>
				</FontString-->

				<FontString parentKey="Header2" inherits="NarciSplashWhiteFont" justifyH="LEFT" justifyV="TOP" text="NARCI_SPLASH_HEADER2" ignoreParentScale="true">
					<Size x="0" y="0"/>
					<Anchors>
						<Anchor point="TOP" relativeKey="$parent.IMG1" relativePoint="BOTTOM" y="-20"/>
                        <Anchor point="LEFT" relativeKey="$parent.Header1" relativePoint="LEFT" x="0"/>
                        <Anchor point="RIGHT" relativeKey="$parent" relativePoint="RIGHT" x="-16"/>
					</Anchors>
				</FontString>

				<FontString parentKey="Text4" inherits="NarciSplashWhiteFont" justifyH="LEFT" justifyV="TOP" text="NARCI_SPLASH_MESSAGE2" spacing="2">
					<Size x="0" y="0"/>
					<Anchors>
						<Anchor point="TOPLEFT" relativeKey="$parent.Header2" relativePoint="BOTTOMLEFT" x="0" y="-12"/>
                        <Anchor point="RIGHT" relativeKey="$parent" relativePoint="RIGHT" x="-16"/>
					</Anchors>
				</FontString>

				<FontString parentKey="Header3" inherits="NarciSplashWhiteFont" justifyH="LEFT" justifyV="TOP" text="NARCI_SPLASH_HEADER3" ignoreParentScale="true">
					<Size x="0" y="0"/>
					<Anchors>
						<Anchor point="TOP" relativeKey="$parent.Text4" relativePoint="BOTTOM" y="-20"/>
                        <Anchor point="LEFT" relativeKey="$parent.Header1" relativePoint="LEFT" x="0"/>
                        <Anchor point="RIGHT" relativeKey="$parent" relativePoint="RIGHT" x="-16"/>
					</Anchors>
				</FontString>

				<FontString parentKey="Text5" inherits="NarciSplashWhiteFont" justifyH="LEFT" justifyV="TOP" text="NARCI_SPLASH_MESSAGE3" spacing="2">
					<Size x="0" y="0"/>
					<Anchors>
						<Anchor point="TOPLEFT" relativeKey="$parent.Header3" relativePoint="BOTTOMLEFT" x="0" y="-12"/>
                        <Anchor point="RIGHT" relativeKey="$parent" relativePoint="RIGHT" x="-16"/>
					</Anchors>
				</FontString>
            </Layer>
        </Layers>
        <Frames>
            <Button inherits="Narci_SplashContinueButton_Template" parentKey="Continue">
                <Size x="240" y="24"/>
                <Anchors>
                    <Anchor point="TOP" relativeKey="$parent.Text5" relativePoint="BOTTOM" y="-26"/>
                </Anchors>
            </Button>
        </Frames>
        <Layers>
			<Layer level="BACKGROUND" textureSubLevel="2">
				<Texture setAllPoints="true" parentKey="Background">
					<Color r="0.07" g="0.07" b="0.08" a="0.95"/>
					<Anchors>
						<Anchor point="TOPLEFT" relativeKey="$parent" relativePoint="TOPLEFT" x="0" y="0"/>
						<Anchor point="BOTTOM" relativeKey="$parent.Continue" relativePoint="BOTTOM" y="-20"/>
                        <Anchor point="RIGHT" relativeKey="$parent" relativePoint="RIGHT" x="0"/>
					</Anchors>
				</Texture>
                <Texture inherits="NarciBottomShadowTemplate">
                    <Size y="8"/>
					<Anchors>
						<Anchor point="TOPLEFT" relativeKey="$parent.Background" relativePoint="BOTTOMLEFT"/>
						<Anchor point="TOPRIGHT" relativeKey="$parent.Background" relativePoint="BOTTOMRIGHT"/>
					</Anchors>
                </Texture>
			</Layer>
        </Layers>

        <Animations>
            <AnimationGroup parentKey="animIn" setToFinalAlpha="true">
                <Alpha parentKey="Alpha" startDelay="0.2" fromAlpha="0" toAlpha="1" duration="0.5" order="1"/>
                <Scripts>
                    <OnPlay>
                        self:GetParent():Show();
                    </OnPlay>
                    <OnFinished>
                        self:GetParent().Black:SetIgnoreParentAlpha(false)
                    </OnFinished>
                </Scripts>
            </AnimationGroup>
        </Animations>
        <Scripts>
            <OnShow/>
            <OnEnter>

            </OnEnter>
            <OnMouseWheel>
                return;
            </OnMouseWheel>
        </Scripts>
    </Frame>

    <Frame name="Narci_SplashFrame_Template" frameStrata="TOOLTIP" hidden="false" Alpha="0" ignoreParentScale="true" frameLevel="60" scale="1" virtual="true">
        <Anchors>
            <Anchor point="CENTER" x="0" y="20"/>
        </Anchors>
        <Size x="540" y="405"/>
        <Layers>
            <Layer level="ARTWORK" textureSubLevel="1">
                <Texture file="Interface\AddOns\Narcissus\Art\Splash\Backdrop2.tga" setAllPoints="true" parentKey="Backdrop"/>
            </Layer>
            <Layer level="ARTWORK" textureSubLevel="2" Alpha="1" ignoreParentAlpha="true">
                <Texture file="Interface\AddOns\Narcissus\Art\Splash\Backdrop1.tga" setAllPoints="true" parentKey="BackdropFront">
                    <Animations>
                        <AnimationGroup parentKey="animIn" smoothing="OUT">
                            <Alpha startDelay="3.5" fromAlpha="0" toAlpha="1" duration="0.5" order="1"/> 
                            <Scripts>
                                <OnFinished>
                                    self:GetParent():SetAlpha(1);
                                    self:GetParent().animOut:Play();
                                    self:GetParent():GetParent().ShowFront = true;
                                    Narci_Splash_ChangePhoto();
                                </OnFinished>
                            </Scripts>
                        </AnimationGroup>
                        <AnimationGroup parentKey="animOut" smoothing="OUT" setToFinalAlpha="true">
                            <Alpha startDelay="3.5" fromAlpha="1" toAlpha="0" duration="0.5" order="1"/> 
                            <Scripts>
                                <OnFinished>
                                    self:GetParent():SetAlpha(0);
                                    self:GetParent():GetParent().ShowFront = false;
                                    Narci_Splash_ChangePhoto();
                                    self:GetParent().animIn:Play();
                                </OnFinished>
                            </Scripts>
                        </AnimationGroup>
                    </Animations>
                </Texture>
            </Layer>
            <Layer level="OVERLAY">
                <Texture file="Interface\AddOns\Narcissus\Art\Splash\SplashBorder.tga" parentKey="Border">
                    <TexCoords left="0" right="0.9375" top="0" bottom="0.703125"/>
                    <Size x="600" y="450"/>
                    <Anchors>
                        <Anchor point="CENTER"/>
                    </Anchors>
                </Texture>
            </Layer>
        </Layers>
        <Frames>
            <Frame parentKey="HiddenFrame" hidden="true" Alpha="0">
                <Layers>
                    <Layer level="OVERLAY">
                        <FontString inherits="PlayerNameLarge" justifyH="LEFT" justifyV="TOP" text="NARCI_SPELL_VISUALS" parentKey="Header" >
                            <Size x="0" y="0"/>
                            <Color r="1" g="0.82" b="0"/>
                            <Anchors>
                                <Anchor point="TOPLEFT" relativeKey="$parent.$parent.Backdrop" relativePoint="TOPLEFT" x="76" y="-35"/>
                            </Anchors>
                        </FontString>
                        <FontString inherits="NarciMenuFont" justifyH="LEFT" justifyV="TOP" text="NARCI_GROUP_PHOTO_AVAILABLE" >
                            <Size x="0" y="0"/>
                            <Anchors>
                                <Anchor point="TOPLEFT" relativeKey="$parent.Header" relativePoint="BOTTOMLEFT" x="0" y="-4"/>
                            </Anchors>
                        </FontString>
                    </Layer>
                </Layers>
                <Frames>
                    <Button inherits="NarciCloseButtonTemplate" ignoreParentScale="true">
                        <Anchors>
                            <Anchor point="TOPRIGHT" relativeKey="$parent.$parent.Border" relativePoint="TOPRIGHT" x="-35" y="-28"/>
                        </Anchors>
                        <Scripts>
                            <OnClick>
                                PlaySound(SOUNDKIT.ACHIEVEMENT_MENU_CLOSE);
                                NarciAPI_FadeFrame(self:GetParent():GetParent(), 0.2, "OUT");
                            </OnClick>
                        </Scripts>
                    </Button>
                    <Button inherits="Narci_SplashContinueButton_Template" parentKey="Continue" scale="0.8">
                        <Size x="240" y="24"/>
                        <Anchors>
                            <Anchor point="BOTTOM" relativeKey="$parent.$parent.Border" relativePoint="BOTTOM" y="50"/>
                        </Anchors>
                        <Scripts>
                            <OnLoad>
                                self.Value:SetText(NARCI_SPLASH_SOUNDS_GREAT_BYE);
                            </OnLoad>
                            <OnClick>
                                PlaySound(SOUNDKIT.ACHIEVEMENT_MENU_CLOSE);
                                NarciAPI_FadeFrame(self:GetParent():GetParent(), 0.2, "OUT");
                            </OnClick>
                        </Scripts>
                    </Button>
                </Frames>
            </Frame>
        </Frames>
		<Animations>
			<AnimationGroup parentKey="animIn" smoothing="OUT">
				<Scale scaleX="0.6" scaleY="0.6" duration="0" order="1"/>
				<Scale scaleX="1.75" scaleY="1.75" duration="0.25" order="2"/>
				<Scale scaleX="0.952" scaleY="0.952" duration="0.15" order="3"/>
                <Scripts>
                    <OnFinished>
                        UIFrameFadeIn(self:GetParent().HiddenFrame, 0.2, 0, 1);
                    </OnFinished>
                </Scripts>
			</AnimationGroup>
		</Animations>
        <Scripts>
            <OnHide>
                self:StopAnimating();
                self:Hide();
            </OnHide>
            <OnShow>
            </OnShow>
        </Scripts>
    </Frame>
</Ui>