<?xml version="1.0" ?>
<FinalTemplateCollection>
    <Template templateName="ZGlassTemplate">
        <ZGlassControl />
    </Template>
    <Template templateName="TopMessageTemplate">
        <MessageZGlassControl>
            <message receiver="[receiver]" value="[message]" />
        </MessageZGlassControl>
    </Template>
    <Template templateName="MutableControlTemplate">
        <MutableChildrenListControl>
            <messageReceiver name="[receiverName]" />
        </MutableChildrenListControl>
    </Template>
    <Template templateName="ScreenSaverLoadingTemplate">
        <StaticTextControl>
            <position x="401" y="128" />
            <div fontName="Orange_30" resourceName="ScreenSaverModeLoading" />
        </StaticTextControl>
    </Template>
    <Template templateName="GameModeLoadingTemplate">
        <StaticTextControl>
            <position x="401" y="128" />
            <div fontName="Orange_30" resourceName="GameModeLoading" />
        </StaticTextControl>
    </Template>
    <Template templateName="CubicCosPathTemplate">
        <path>
            <key time="0.1" value="0.000002" />
            <key time="0.2" value="0.000117" />
            <key time="0.3" value="0.001295" />
            <key time="0.4" value="0.006966" />
            <key time="0.5" value="0.025126" />
            <key time="0.6" value="0.070044" />
            <key time="0.7" value="0.162780" />
            <key time="0.8" value="0.329915" />
            <key time="0.9" value="0.600284" />
        </path>
    </Template>
    <Template templateName="DarkeningTemplate">
        <FixedChildrenListControl>
            <children>
                <ZGlassControl />
                <DarkeningControl>
                    <message value="[message]" receiver="[receiver]" />
                </DarkeningControl>
            </children>
        </FixedChildrenListControl>
    </Template>
    <Template templateName="LoadScreenBackgroundTemplate">
        <StaticTextureControl>
            <texture textureId="loading_background" />
        </StaticTextureControl>
    </Template>
    <Template templateName="LoadScreenTemplate">
        <InOutAlphaChangeControl alpha="1.0" time="0.5">
            <alpha in="1.0" out="0.0" />
            <messageReceiver name="LoadScreenTemplate alpha changer" />
            <children>
                <OptionsDispatcherControl>
                    <messageReceiver name="Options dispatcher Load Screen" />
                </OptionsDispatcherControl>
                <TemplateInstanceControl>
                    <base templateName="LoadScreenBackgroundTemplate" />
                </TemplateInstanceControl>
                <StaticTextureControl>
                    <position x="205" y="33" />
                    <texture textureId="loading_circle" />
                </StaticTextureControl>
                <BubblesLoadScreen>
                    <messageReceiver name="Bubbles" />
                    <position x="0" y="600" />
                    <textures>
                        <texture id="bubbles4" />
                    </textures>
                    <bubbles>
                        <bubble x="34" varX="20" y="-550" varY="40" speed="45" varSpeed="1" time="3" varTime="2" amplitude="7" varAmplitude="2" size="16" varSize="3" />
                        <bubble x="760" varX="20" y="-462" varY="50" speed="38" varSpeed="5" time="4" varTime="2" amplitude="5" varAmplitude="2" size="16" varSize="2" />
                        <bubble x="710" varX="20" y="-560" varY="50" speed="33" varSpeed="5" time="4" varTime="2" amplitude="5" varAmplitude="2" size="10" varSize="2" />
                        <bubble x="610" varX="20" y="-330" varY="20" speed="33" varSpeed="5" time="3" varTime="2" amplitude="6" varAmplitude="2" size="12" varSize="2" />
                        <bubble x="150" varX="20" y="-420" varY="10" speed="33" varSpeed="5" time="3" varTime="2" amplitude="4" varAmplitude="2" size="14" varSize="2" />
                        <bubble x="224" varX="5" y="-260" varY="5" speed="33" varSpeed="4" time="4" varTime="2" amplitude="6" varAmplitude="2" size="8" varSize="2" />
                        <bubble x="30" varX="5" y="-250" varY="10" speed="28" varSpeed="4" time="3" varTime="2" amplitude="4" varAmplitude="2" size="14" varSize="2" />
                        <bubble x="150" varX="30" y="-530" varY="40" speed="25" varSpeed="5" time="3" varTime="2" amplitude="7" varAmplitude="2" size="12" varSize="2" />
                        <bubble x="150" varX="30" y="-530" varY="40" speed="23" varSpeed="5" time="4" varTime="2" amplitude="6" varAmplitude="2" size="10" varSize="1" />
                        <bubble x="605" varX="40" y="-520" varY="40" speed="23" varSpeed="5" time="4" varTime="2" amplitude="5" varAmplitude="2" size="14" varSize="2" />
                        <bubble x="605" varX="40" y="-520" varY="40" speed="28" varSpeed="5" time="3" varTime="2" amplitude="6" varAmplitude="2" size="8" varSize="1" />
                    </bubbles>
                </BubblesLoadScreen>
                <MutableChildrenListControl>
                    <messageReceiver name="GameLogoLoadScreen" />
                </MutableChildrenListControl>
                <StaticTextureControl>
                    <position x="220" y="84" />
                    <texture textureId="[loading_circle]" />
                </StaticTextureControl>
                <AlphaChangeControl start="0.0">
                    <speed value="10.0" />
                    <messageReceiver name="Startup logo alpha changer" />
                    <children>
                        <StaticTextureControl>
                            <position x="262" y="540" />
                            <texture textureId="screensaver_title" />
                        </StaticTextureControl>
                        <StaticTextureControl>
                            <position x="0" y="0" />
                            <texture textureId="playrix_logo2" />
                        </StaticTextureControl>
                    </children>
                </AlphaChangeControl>
                <InOutMovingControl time="1.0">
                    <position x="0" y="0" />
                    <sound soundId="window_moving" />
                    <namedPositions>
                        <position x="0" y="0" name="in" />
                        <position x="0" y="-160" name="out" />
                    </namedPositions>
                    <path templateName="CubicCosPathTemplate" />
                    <messageReceiver name="Startup progress mover" />
                    <children>
                        <StaticTextControl>
                            <position x="401" y="128" />
                            <div fontName="Orange_30" resourceName="GameModeLoading" />
                        </StaticTextControl>
                        <StaticTextureControl>
                            <position x="247" y="47" />
                            <texture textureId="loading_progress_base" />
                            <children>
                                <StartupProgressControl>
                                    <position x="3" y="0" />
                                    <texture body="loading_progress" start="loading_progress_start" end="loading_progress_end" />
                                </StartupProgressControl>
                            </children>
                        </StaticTextureControl>
                    </children>
                </InOutMovingControl>
                <InOutMovingControl time="0.000001">
                    <position x="0" y="-200" />
                    <namedPositions>
                        <position x="0" y="0" name="in" />
                        <position x="0" y="-200" name="out" />
                    </namedPositions>
                    <path templateName="CubicCosPathTemplate" />
                    <messageReceiver name="Startup click to start mover" />
                    <children>
                        <ClickToStartControl resourceName="ClickToStart" fontName="White_15">
                            <position x="401" y="32" />
                        </ClickToStartControl>
                    </children>
                </InOutMovingControl>
                <BorderControl width="800" height="600">
                    <texture textureId="border" />
                </BorderControl>
            </children>
        </InOutAlphaChangeControl>
    </Template>
    <Template templateName="NotAnimatedGameLogoTemplate">
        <AlphaChangeControl start="1.0">
            <speed value="2.0" />
            <messageReceiver name="Game logo alpha changer" />
            <children>
                <GameLogoControl state="[state_logo]">
                    <messageReceiver name="Logo" />
                    <position x="400" y="420" />
                    <options showTime="0.5" delta="0.1" />
                    <bubble x="0" y="70" up="logo_fishdom" radius="0.0" />
                </GameLogoControl>
                <StaticTextureControl>
                    <position x="48" y="455" />
                    <texture textureId="[hat_texture]" />
                </StaticTextureControl>
            </children>
        </AlphaChangeControl>
    </Template>
    <Template templateName="GameLogoTemplate">
        <AlphaChangeControl start="1.0">
            <speed value="2.0" />
            <messageReceiver name="Game logo alpha changer" />
            <children>
                <GameLogoControl state="[state_logo]">
                    <effects>
                        <effect name="[effectNameTop]" x="[tX]" y="[tY]" />
                        <effect name="[effectNameBottom]" x="[bX]" y="[bY]" background="true" />
                    </effects>
                    <messageReceiver name="Logo" />
                    <position x="15" y="600" />
                    <options showTime="1.0" delta="0.1" />
                    <bubble x="556" y="-124" up="bubbles_o_u" letterX="-2" letterY="0" letter="letter_o0;letter_o1;letter_o2;" radius="4.0" />
                    <bubble x="635" y="-120" bottom="bubbles_m_b" up="bubbles_m_u" letterX="5" letterY="0" letter="letter_m0;letter_m1;letter_m2" radius="4.0" />
                    <bubble x="465" y="-119" bottom="bubbles_d_b" up="bubbles_d_u" letterX="0" letterY="0" letter="letter_d0;letter_d1;letter_d2" radius="4.0" />
                    <bubble x="496" y="-172" up="bubbles2" radius="2.0" />
                    <bubble x="105" y="-176" up="bubbles1" radius="2.0" />
                    <bubble x="686" y="-180" up="bubbles4" radius="2.0" />
                    <bubble x="222" y="-54" up="bubbles3" radius="2.0" />
                    <bubble x="525" y="-64" up="bubbles5" radius="2.0" />
                    <bubble x="720" y="-70" up="bubbles6" radius="2.0" />
                    <bubble x="390" y="-116" bottom="bubbles_h_b" up="bubbles_h_u" letterX="-15" letterY="0" letter="letter_h0;letter_h1;letter_h2" radius="4.0" />
                    <bubble x="313" y="-122" bottom="bubbles_s_b" up="bubbles_s_u" letterX="-25" letterY="2" letter="letter_s0;letter_s1;letter_s2" radius="4.0" />
                    <bubble x="140" y="-116" up="bubbles_f_u" letterX="0" letterY="0" letter="letter_f0;letter_f1;letter_f2;" radius="2.5" />
                    <bubble x="212" y="-117" bottom="bubbles_i_b" up="bubbles_i_u" letterX="3" letterY="2" letter="letter_i0;letter_i1;letter_i2" radius="3.0" />
                    <bubble x="111" y="-73" up="[hat_texture]" radius="1.7" />
                    <gametitle x="383" y="-211" textureId="[loading_screen_title]" amplituda="5" angle="1" timeScale="0.7" timeScale1="2.4" timeToWait="1" />
                </GameLogoControl>
            </children>
        </AlphaChangeControl>
    </Template>
</FinalTemplateCollection>
