<?xml version="1.0" ?>
<FinalTemplateCollection>
    <Template templateName="FirstTankChoose">
        <InOutAlphaChangeControl time="0.4" alpha="1.0">
            <messageReceiver name="FirstTankChoose alpha changer" />
            <children>
                <ZGlassControl />
                <FirstAquascapeChooseControl>
                    <texture textureId="loading_background" />
                    <messageReceiver name="FirstAquascapeChooseControl" />
                    <card panelNormal="ChoseFirstTankPanelNormal" panelActive="ChoseFirstTankPanelActive" iconNormal="ChoseFirstTankHelloweenCard1" iconActive="ChoseFirstTankHelloweenCard2" x="33" y="173" Ix="36" Iy="165" message="1" tankName="ChooseTankHalloween" tPosY="425" />
                    <card panelNormal="ChoseFirstTankPanelNormal" panelActive="ChoseFirstTankPanelActive" iconNormal="ChoseFirstTankThanksgivingCard1" iconActive="ChoseFirstTankThanksgivingCard2" x="289" y="173" Ix="292" Iy="165" message="2" tankName="ChooseTankThanksgiving" tPosY="425" />
                    <card panelNormal="ChoseFirstTankPanelNormal" panelActive="ChoseFirstTankPanelActive" iconNormal="ChoseFirstTankChristmasCard1" iconActive="ChoseFirstTankChristmasCard2" x="543" y="173" Ix="546" Iy="165" message="3" tankName="ChooseTankChristmas" tPosY="425" />
                    <onClose message="Tank selected" receiver="post:lua:GameFunc" />
                </FirstAquascapeChooseControl>
                <VariableTextChangeControl>
                    <position x="395" y="90" />
                    <variable name="temp:FirstTankSelection" type="int" scope="local" defaultValue="-1" />
                    <states>
                        <state variableValue="1" resourceName="Tank1Desc" />
                        <state variableValue="2" resourceName="Tank2Desc" />
                        <state variableValue="3" resourceName="Tank3Desc" />
                    </states>
                </VariableTextChangeControl>
                <StaticTextControl valign="true">
                    <position x="380" y="530" />
                    <div fontName="Orange_30" resourceName="ChooseYourFirstTank" />
                </StaticTextControl>
            </children>
        </InOutAlphaChangeControl>
    </Template>
    <Template templateName="IntroTextElementTemplate">
        <StaticTextControl>
            <position x="[x]" y="[y]" />
            <div fontName="[font]" resourceName="[resourceName]" align="[align]" />
        </StaticTextControl>
    </Template>
    <Template templateName="FirstTimeIntro">
        <FixedChildrenListControl>
            <children>
                <ZGlassControl />
                <KeyListeningControl>
                    <keys>
                        <key value="VK_ESCAPE" receiver="post:lua:GameFunc" message="Begin exit intro" />
                    </keys>
                </KeyListeningControl>
                <InOutAlphaChangeControl time="1.0" alpha="0.0">
                    <messageReceiver name="Intro alpha changer" />
                    <children>
                        <ZoomControl zoom="0.76">
                            <position x="96" y="52" />
                            <children>
                                <ColorRectangleControl>
                                    <rectangle width="800" height="600" />
                                    <color value="#000000" />
                                    <children>
                                        <MoviePlayerControl>
                                            <messageReceiver name="Intro" />
                                            <clip file="video\[file]" transparent="true" />
                                        </MoviePlayerControl>
                                    </children>
                                </ColorRectangleControl>
                            </children>
                        </ZoomControl>
                        <BorderControl width="632" height="480">
                            <position x="84" y="40" />
                            <texture textureId="intro_frame" />
                        </BorderControl>
                        <VariableDrivenSwitchControl>
                            <variable name="temp:Ver" type="string" scope="global" defaultValue="Full" />
                            <states>
                                <state default="true" templateName="FullIntroTextTemplate" />
                                <state variableValue="1" templateName="IntroTextHelloweenTemplate" />
                                <state variableValue="2" templateName="IntroTextChristmasTemplate" />
                                <state variableValue="3" templateName="IntroTextThanksgivingTemplate" />
                            </states>
                        </VariableDrivenSwitchControl>
                    </children>
                </InOutAlphaChangeControl>
                <InOutMovingControl time="0.3">
                    <position x="0" y="-100" />
                    <namedPositions>
                        <position x="0" y="0" name="in" />
                        <position x="0" y="-100" name="out" />
                    </namedPositions>
                    <path templateName="CubicCosPathTemplate" />
                    <messageReceiver name="Intro click to skip mover" />
                    <children>
                        <StaticTextControl>
                            <position x="400" y="32" />
                            <div fontName="White_15">
                                <line>{link normalFontName=&quot;White_15&quot; activeFontName=&quot;White_17&quot; receiver=&quot;post:lua:GameFunc&quot; message=&quot;Begin exit intro&quot; activeSound=&quot;text_button_active&quot; pressedSound=&quot;text_button_pressed&quot;}textResource:SkipIntroText{/link}</line>
                            </div>
                        </StaticTextControl>
                    </children>
                </InOutMovingControl>
            </children>
        </FixedChildrenListControl>
    </Template>
    <Template templateName="FullIntroTextTemplate">
        <IntroTextControl>
            <textElement>
                <text resourceName="IntroFrame1Text1" x="400" y="310" font="White_21" align="center" />
                <attributes timeView="2" timeLife="3" showTime="1" />
                <splinePath>
                    <point x="400" y="0" />
                    <point x="400" y="314" />
                </splinePath>
            </textElement>
            <textElement>
                <text resourceName="IntroFrame1Text2" x="400" y="310" font="White_21" align="center" />
                <attributes timeView="7" timeLife="3" showTime="1" />
                <splinePath>
                    <point x="400" y="600" />
                    <point x="400" y="306" />
                </splinePath>
            </textElement>
            <textElement>
                <text resourceName="IntroFrame2Text1" x="400" y="310" font="White_21" align="center" />
                <attributes timeView="12" timeLife="3" showTime="1" />
                <splinePath>
                    <point x="0" y="310" />
                    <point x="404" y="310" />
                </splinePath>
            </textElement>
            <textElement>
                <text resourceName="IntroFrame2Text2" x="400" y="330" font="White_21" align="center" />
                <attributes timeView="17" timeLife="3" showTime="1" />
                <splinePath>
                    <point x="800" y="330" />
                    <point x="396" y="330" />
                </splinePath>
            </textElement>
            <textElement>
                <text resourceName="IntroFrame3Text1" x="650" y="480" font="White_21" align="right" />
                <attributes timeView="22" timeLife="3" showTime="1" />
                <splinePath>
                    <point x="600" y="600" />
                    <point x="640" y="470" />
                </splinePath>
            </textElement>
            <textElement>
                <text resourceName="IntroFrame3Text2" x="130" y="150" font="White_21" align="left" />
                <attributes timeView="24.5" timeLife="2" showTime="1" />
                <splinePath>
                    <point x="200" y="0" />
                    <point x="140" y="154" />
                </splinePath>
            </textElement>
            <messageReceiver name="IntroTextControlReceiver" />
        </IntroTextControl>
    </Template>
    <Template templateName="IntroTextHelloweenTemplate">
        <IntroTextControl>
            <position x="0" y="-20" />
            <textElement>
                <text resourceName="IntroFrame1Text1" x="400" y="395" font="Orange_21" align="center" />
                <attributes timeView="1" timeLife="4" showTime="0.85" />
                <splinePath>
                    <point x="400" y="415" />
                </splinePath>
            </textElement>
            <textElement>
                <text resourceName="IntroFrame1Text2" x="400" y="365" font="White_21" align="center" />
                <attributes timeView="2.4" timeLife="4.25" showTime="0.9" />
                <splinePath>
                    <point x="400" y="270" />
                </splinePath>
            </textElement>
            <textElement>
                <text resourceName="IntroFrame2Text1" x="400" y="395" font="Orange_21" align="center" />
                <attributes timeView="9.2" timeLife="3.3" showTime="1.6" />
                <splinePath>
                    <point x="370" y="395" />
                </splinePath>
            </textElement>
            <textElement>
                <text resourceName="IntroFrame2Text2" x="400" y="365" font="White_21" align="center" />
                <attributes timeView="10.6" timeLife="3.5" showTime="1.5" />
                <splinePath>
                    <point x="480" y="365" />
                </splinePath>
            </textElement>
            <textElement>
                <text resourceName="IntroFrame3Text1" x="680" y="500" font="White_21" align="right" />
                <attributes timeView="17.3" timeLife="4" showTime="0.9" />
                <splinePath>
                    <point x="700" y="540" />
                    <point x="690" y="510" />
                </splinePath>
            </textElement>
            <textElement>
                <text resourceName="IntroFrame3Text2" x="127" y="130" font="White_21" align="left" />
                <attributes timeView="16.5" timeLife="5" showTime="0.9" />
                <splinePath>
                    <point x="107" y="90" />
                    <point x="117" y="120" />
                </splinePath>
            </textElement>
            <messageReceiver name="IntroTextControlReceiver" />
        </IntroTextControl>
    </Template>
    <Template templateName="IntroTextChristmasTemplate">
        <IntroTextControl>
            <position x="0" y="-20" />
            <textElement>
                <text resourceName="IntroFrame1Text1" x="400" y="395" font="Orange_21" align="center" />
                <attributes timeView="1" timeLife="4" showTime="0.85" />
                <splinePath>
                    <point x="400" y="415" />
                </splinePath>
            </textElement>
            <textElement>
                <text resourceName="IntroFrame1Text2" x="400" y="365" font="White_21" align="center" />
                <attributes timeView="2.4" timeLife="4.25" showTime="0.9" />
                <splinePath>
                    <point x="400" y="270" />
                </splinePath>
            </textElement>
            <textElement>
                <text resourceName="IntroFrame2Text1" x="400" y="395" font="Orange_21" align="center" />
                <attributes timeView="9.2" timeLife="3.3" showTime="1.6" />
                <splinePath>
                    <point x="370" y="395" />
                </splinePath>
            </textElement>
            <textElement>
                <text resourceName="IntroFrame2Text2" x="400" y="365" font="White_21" align="center" />
                <attributes timeView="10.6" timeLife="3.5" showTime="1.5" />
                <splinePath>
                    <point x="480" y="365" />
                </splinePath>
            </textElement>
            <textElement>
                <text resourceName="IntroFrame3Text1" x="680" y="460" font="White_21" align="right" />
                <attributes timeView="17.3" timeLife="4" showTime="0.9" />
                <splinePath>
                    <point x="700" y="540" />
                    <point x="690" y="510" />
                </splinePath>
            </textElement>
            <textElement>
                <text resourceName="IntroFrame3Text2" x="127" y="130" font="White_21" align="left" />
                <attributes timeView="16.5" timeLife="5" showTime="0.9" />
                <splinePath>
                    <point x="107" y="90" />
                    <point x="117" y="120" />
                </splinePath>
            </textElement>
            <messageReceiver name="IntroTextControlReceiver" />
        </IntroTextControl>
    </Template>
    <Template templateName="IntroTextThanksgivingTemplate">
        <IntroTextControl>
            <position x="0" y="-20" />
            <textElement>
                <text resourceName="IntroFrame1Text1" x="400" y="395" font="Orange_21" align="center" />
                <attributes timeView="1" timeLife="4" showTime="0.85" />
                <splinePath>
                    <point x="400" y="415" />
                </splinePath>
            </textElement>
            <textElement>
                <text resourceName="IntroFrame1Text2" x="400" y="365" font="White_21" align="center" />
                <attributes timeView="2.4" timeLife="4.25" showTime="0.9" />
                <splinePath>
                    <point x="400" y="320" />
                    <point x="400" y="342" />
                </splinePath>
            </textElement>
            <textElement>
                <text resourceName="IntroFrame2Text1" x="450" y="450" font="Orange_21" align="center" />
                <attributes timeView="9.2" timeLife="3.3" showTime="1.6" />
                <splinePath>
                    <point x="370" y="395" />
                </splinePath>
            </textElement>
            <textElement>
                <text resourceName="IntroFrame2Text2" x="400" y="400" font="White_21" align="center" />
                <attributes timeView="10.6" timeLife="3.5" showTime="1.5" />
                <splinePath>
                    <point x="480" y="365" />
                </splinePath>
            </textElement>
            <textElement>
                <text resourceName="IntroFrame3Text1" x="680" y="500" font="White_21" align="right" />
                <attributes timeView="17.3" timeLife="6" showTime="0.9" />
                <splinePath>
                    <point x="700" y="540" />
                    <point x="690" y="510" />
                </splinePath>
            </textElement>
            <textElement>
                <text resourceName="IntroFrame3Text2" x="127" y="130" font="White_21" align="left" />
                <attributes timeView="16.5" timeLife="7" showTime="0.9" />
                <splinePath>
                    <point x="107" y="90" />
                    <point x="117" y="120" />
                </splinePath>
            </textElement>
            <messageReceiver name="IntroTextControlReceiver" />
        </IntroTextControl>
    </Template>
    <Template templateName="IntroEnterEffectTemplate">
        <AlphaChangeControl start="0.0">
            <speed value="5.0" />
            <messageReceiver name="End Intro alpha changer" />
            <children>
                <EndIntroControl effectTime="0.5">
                    <messageReceiver name="End Intro" />
                    <path>
                        <key x="400" y="280" />
                        <key x="400" y="260" />
                        <key x="400" y="300" />
                    </path>
                    <scale>
                        <key value="0.76" />
                        <key value="0.83" />
                        <key value="1.0" />
                    </scale>
                    <child>
                        <FixedChildrenListControl>
                            <children>
                                <RectangleFrameControl width="800" height="600">
                                    <children>
                                        <LongLifeParentControl>
                                            <storage receiverName="TankContentStorage" />
                                        </LongLifeParentControl>
                                    </children>
                                </RectangleFrameControl>
                                <AlphaChangeControl start="0.0">
                                    <speed value="2.0" />
                                    <messageReceiver name="Tank frame alpha changer" />
                                    <children>
                                        <BorderControl width="824" height="624">
                                            <position x="-12" y="-12" />
                                            <texture textureId="intro_frame" />
                                        </BorderControl>
                                    </children>
                                </AlphaChangeControl>
                                <InOutAlphaChangeControl time="0.5" alpha="0.0">
                                    <messageReceiver name="Finished intro text alpha" />
                                    <children>
                                        <ZoomControl zoom="1.316">
                                            <children>
                                                <ZoomChangeControl zoom="1" speed="1.5">
                                                    <position x="304" y="228" />
                                                    <namedZooms>
                                                        <zoom name="end" value="1.6" />
                                                    </namedZooms>
                                                    <messageReceiver name="Finished intro text zoom" />
                                                    <children>
                                                        <StaticTextControl valign="true">
                                                            <div fontName="Orange_21" resourceName="IntroConclusionText" align="center" />
                                                        </StaticTextControl>
                                                    </children>
                                                </ZoomChangeControl>
                                                <InOutAlphaChangeControl time="0.5" alpha="0.0">
                                                    <messageReceiver name="Intro click to continue" />
                                                    <children>
                                                        <ClickToStartControl resourceName="ClickToContinue" fontName="White_15">
                                                            <position x="304" y="168" />
                                                        </ClickToStartControl>
                                                    </children>
                                                </InOutAlphaChangeControl>
                                            </children>
                                        </ZoomControl>
                                    </children>
                                </InOutAlphaChangeControl>
                            </children>
                        </FixedChildrenListControl>
                    </child>
                    <onClose receiver="post:lua:GameFunc" message="Enter MainMenu" />
                </EndIntroControl>
            </children>
        </AlphaChangeControl>
    </Template>
</FinalTemplateCollection>
