<Ui>
    <Script file="CastingBar.lua"/>

    <Frame name="StripesFullBorderTemplate" mixin="StripesBorderTemplateMixin" ignoreParentScale="true" setAllPoints="true" useParentLevel="true" virtual="true">
        <Layers>
            <Layer level="BACKGROUND" textureSubLevel="-8">
                <!-- Left -->
                <Texture parentKey="Left" parentArray="Textures">
                    <Size x="1.0" />
                    <Anchors>
                        <Anchor point="TOPRIGHT" relativePoint="TOPLEFT" x="0" y="1.0" />
                        <Anchor point="BOTTOMRIGHT" relativePoint="BOTTOMLEFT" x="0" y="-1.0" />
                    </Anchors>
                    <Color r="1" g="1" b="1" a="1"/>
                </Texture>
        
                <!-- Right -->
                <Texture parentKey="Right" parentArray="Textures">
                    <Size x="1.0" />
                    <Anchors>
                        <Anchor point="TOPLEFT" relativePoint="TOPRIGHT" x="0" y="1.0" />
                        <Anchor point="BOTTOMLEFT" relativePoint="BOTTOMRIGHT" x="0" y="-1.0" />
                    </Anchors>
                    <Color r="1" g="1" b="1" a="1"/>
                </Texture>
        
                <!-- Bottom -->
                <Texture parentKey="Bottom" parentArray="Textures">
                    <Size y="1.0" />
                    <Anchors>
                        <Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" />
                        <Anchor point="TOPRIGHT" relativePoint="BOTTOMRIGHT" />
                    </Anchors>
                    <Color r="1" g="1" b="1" a="1"/>
                </Texture>
        
                <!-- Top -->
                <Texture parentKey="Top" parentArray="Textures">
                    <Size y="1.0" />
                    <Anchors>
                        <Anchor point="BOTTOMLEFT" relativePoint="TOPLEFT" />
                        <Anchor point="BOTTOMRIGHT" relativePoint="TOPRIGHT" />
                    </Anchors>
                    <Color r="1" g="1" b="1" a="1"/>
                </Texture>
            </Layer>
        </Layers>
    </Frame>

    <StatusBar name="StripesNameplateCastBarTemplate" frameLevel="100" virtual="true" hidden="true">
        <KeyValues>
            <KeyValue key="iconWhenNoninterruptible" value="true" type="boolean"/>
        </KeyValues>
        <Frames>
            <Frame parentKey="border" inherits="StripesFullBorderTemplate" />
        </Frames>
        <Layers>
            <Layer level="BACKGROUND">
                <Texture parentKey="background">
                    <Color r="0.2" g="0.2" b="0.2" a="0.85"/>
                </Texture>
            </Layer>
            <Layer level="ARTWORK" textureSubLevel="1">
                <FontString parentKey="Text" inherits="StripesCastBarFont">
                    <Size x="0" y="16" />
                    <Anchors>
                        <Anchor point="TOPLEFT" relativePoint="TOPLEFT" x="0" y="0"/>
                        <Anchor point="BOTTOMRIGHT" relativePoint="BOTTOMRIGHT" x="0" y="0"/>
                    </Anchors>
                </FontString>
                <FontString parentKey="TargetText" inherits="StripesCastBarTargetFont">
                    <Size x="0" y="16" />
                    <Anchors>
                        <Anchor point="TOP" relativePoint="BOTTOM" x="0" y="-4"/>
                    </Anchors>
                </FontString>
                <Texture parentKey="Icon" hidden="true" ignoreParentAlpha="true">
                    <Size x="12" y="12" />
                    <TexCoords left="0.1" right="0.9" top="0.1" bottom="0.9" />  
                    <Anchors>
                        <Anchor point="RIGHT" relativePoint="LEFT" x="0" y="0"/>
                    </Anchors>
                </Texture>
            </Layer>
            <Layer level="ARTWORK" textureSubLevel="2">
                <Texture parentKey="BorderShield" atlas="nameplates-InterruptShield" hidden="true" ignoreParentAlpha="true">
                    <Size x="12" y="12" />
                    <Anchors>
                        <Anchor point="CENTER" relativePoint="LEFT" x="0" y="0"/>
                    </Anchors>
                </Texture>
            </Layer>
            <Layer level="ARTWORK">
                <Texture parentKey="Spark" file="Interface\CastingBar\UI-CastingBar-Spark" alphaMode="ADD">
                    <Size x="16" y="16" />
                    <Anchors>
                        <Anchor point="CENTER" x="0" y="0"/>
                    </Anchors>
                </Texture>
                <Texture parentKey="Flash" file="Interface\TargetingFrame\UI-TargetingFrame-BarFill" alphaMode="ADD" />
            </Layer>
            <Layer level="OVERLAY" textureSubLevel="7">
                <Texture parentKey="InterruptReadyTick" file="Interface\AddOns\Stripes\Media\Textures\Assets\vertical-line-white" hidden="true" alphaMode="BLEND">
                    <Size x="12" y="12" />
                    <Anchors>
                        <Anchor point="CENTER" x="0" y="0"/>
                    </Anchors>
                    <Color r="0.1" g="0.1" b="0.1" />
                </Texture>
            </Layer>
        </Layers>
        <Scripts>
            <OnLoad>
                StripesCastingBar_OnLoad(self, nil, false, true);
            </OnLoad>
            <OnEvent function="StripesCastingBar_OnEvent" />
            <OnUpdate function="StripesCastingBar_OnUpdate" />
            <OnShow function="StripesCastingBar_OnShow" />
        </Scripts>
        <BarTexture file="Interface\TargetingFrame\UI-StatusBar" />
        <BarColor r="1.0" g="0.7" b="0.0" />
    </StatusBar>
</Ui>