<?xml version="1.0" encoding="windows-1251" ?>
<FinalTemplateCollection>
    <Template templateName="BuyCancelHelpTemplate">
        <FixedChildrenListControl>
            <children>
                <StaticTextControl>
                    <position x="95" y="240" />
                    <div fontName="White_16" align="right" resourceName="DropHereToCancelThePurchase" />
                </StaticTextControl>
                <ArrowControl textureId="tutorial_down" angle="-90">
                    <position x="64" y="80" />
                </ArrowControl>
            </children>
        </FixedChildrenListControl>
    </Template>
    <Template templateName="SellHelpTemplate">
        <FixedChildrenListControl>
            <children>
                <StaticTextControl>
                    <position x="95" y="240" />
                    <div fontName="White_16" align="right" resourceName="DropHereToSell" />
                </StaticTextControl>
                <ArrowControl textureId="tutorial_down" angle="-90">
                    <position x="64" y="80" />
                </ArrowControl>
            </children>
        </FixedChildrenListControl>
    </Template>
    <Template templateName="NotEnouthMoneyTemplate">
        <DynamicTextControl start="0.25" idle="4.0" finish="0.5">
            <showScaleSpline>
                <scale value="1.4" />
                <scale value="1.0" />
                <scale value="1.0" />
            </showScaleSpline>
            <position x="406" y="313" />
            <div fontName="White_15" resourceName="NotEnoughMoneyText" />
        </DynamicTextControl>
    </Template>
    <Template templateName="FishSellDialogTemplate">
        <FixedChildrenListControl>
            <position x="250" y="165" />
            <children>
                <StaticTextureControl>
                    <texture textureId="sell_fish_panel" />
                </StaticTextureControl>
                <ExtendedWaterPlantControl fog="false">
                    <position x="85" y="145" />
                    <layers>
                        <mesh textureId="sell_fish_decor" x="0" y="0" maxShift="4.0" bottomStaticLine="32" meshWidth="7" meshHeight="10" />
                    </layers>
                </ExtendedWaterPlantControl>
                <BubblesBackGround>
                    <position x="71" y="165" />
                    <description textureId="sell_fish_bubble" emitters="7" width="179" height="112" minPause="3.0" maxPause="6.0" minSpeed="20.0" maxSpeed="60.0" amplitude="5.0" period="10.0" blendMode="alpha" />
                    <scale>
                        <range min="0.0" max="0.0" />
                        <range min="0.1" max="0.25" />
                        <range min="0.1" max="0.25" />
                        <range min="0.1" max="0.25" />
                        <range min="0.1" max="0.25" />
                        <range min="0.0" max="0.0" />
                    </scale>
                </BubblesBackGround>
                <CrabControl>
                    <position x="13" y="122" />
                    <animation animationId="[animationId]" staticFonId="null" time="1.0" />
                    <animationPos x="160" y="89" />
                </CrabControl>
                <StaticTextureControl>
                    <position x="36" y="132" />
                    <texture textureId="sell_fish_panel_glass" />
                </StaticTextureControl>
                <StaticTextControl>
                    <position x="153" y="101" />
                    <div fontName="White_17">
                        <line>[SellFishDialogLine1]</line>
                        <line>[SellFishDialogLine2]</line>
                    </div>
                </StaticTextControl>
                <KeyListeningControl>
                    <keys>
                        <key value="VK_RETURN" receiver="New Shop" message="minus confirmed [fish]" />
                        <key value="VK_ESCAPE" receiver="Shop modal dialog" message="hide" />
                    </keys>
                </KeyListeningControl>
                <MessageButtonControl>
                    <position x="45" y="-26" />
                    <textures normalId="ok_normal" activeId="ok_active" pressedId="ok_pressed" />
                    <message value="minus confirmed [fish]" receiver="New Shop" />
                </MessageButtonControl>
                <MessageButtonControl>
                    <position x="185" y="-26" />
                    <textures normalId="cancel_normal" activeId="cancel_active" pressedId="cancel_pressed" />
                    <message value="hide" receiver="Shop modal dialog" />
                </MessageButtonControl>
            </children>
        </FixedChildrenListControl>
    </Template>
    <Template templateName="ItemSellDialogTemplate">
        <StaticTextureControl>
            <position x="244" y="218" />
            <texture textureId="item_sell_panel" />
            <children>
                <StaticTextureControl>
                    <position x="115" y="116" />
                    <texture textureId="big_icon_background" />
                    <children>
                        <StaticTextureControl>
                            <position x="9" y="9" />
                            <texture textureId="[iconTextureId]" />
                        </StaticTextureControl>
                    </children>
                </StaticTextureControl>
                <StaticTextControl>
                    <position x="162" y="100" />
                    <div fontName="White_17">
                        <line>[sellItemDialogLine1]</line>
                        <line>[sellItemDialogLine2]</line>
                    </div>
                </StaticTextControl>
                <KeyListeningControl>
                    <keys>
                        <key value="VK_RETURN" receiver="New Shop" message="confirmed item sell [itemId]" />
                        <key value="VK_ESCAPE" receiver="New Shop" message="cancel item sell" />
                    </keys>
                </KeyListeningControl>
                <MessageButtonControl>
                    <position x="45" y="-27" />
                    <textures normalId="ok_normal" activeId="ok_active" pressedId="ok_pressed" />
                    <message value="confirmed item sell " receiver="New Shop" />
                </MessageButtonControl>
                <MessageButtonControl>
                    <position x="185" y="-27" />
                    <textures normalId="cancel_normal" activeId="cancel_active" pressedId="cancel_pressed" />
                    <message value="cancel item sell" receiver="New Shop" />
                </MessageButtonControl>
            </children>
        </StaticTextureControl>
    </Template>
    <Template templateName="ShopItemDescription">
        <DescriptionControl>
            <position x="18" y="115" />
            <messageReceiver name="Description" />
            <AlphaChanger>
                <alpha value="0.0" />
                <alpha value="1.0" />
            </AlphaChanger>
            <resizeable texture="info_panel" height="[height]" width="[width]" lineY="44" />
            <stars amount="[stars]" y="50" interval="25" />
        </DescriptionControl>
    </Template>
    <Template templateName="EyeButtonTemplate">
        <InOutAlphaChangeControl alpha="1.0" time="0.15">
            <alpha in="1.0" out="0.0" />
            <messageReceiver name="Move alpha changer" />
            <children>
                <SmartMoveControl time="0.3" pathTemplate="QuadraticPathTemplate" hideOut="2.0">
                    <stateVariable name="Move in button mover" />
                    <position x="0" y="-60" />
                    <position x="0" y="10" />
                    <children>
                        <ContextHelpClientControl>
                            <times initial="0.1" reshow="0.0" />
                            <toolTipToShow name="Screenshot" />
                            <controlToMonitor>
                                <MessageButtonControl>
                                    <position x="365" y="0" />
                                    <textures normalId="photoalbum_camera_normal" activeId="photoalbum_camera_active" pressedId="photoalbum_camera_active" />
                                    <message value="Photo button pressed" receiver="lua:MainScreenFunc" />
                                </MessageButtonControl>
                            </controlToMonitor>
                        </ContextHelpClientControl>
                        <ContextHelpClientControl>
                            <times initial="0.1" reshow="0.0" />
                            <toolTipToShow name="PhotoAlbumButton" />
                            <controlToMonitor>
                                <MessageButtonControl>
                                    <position x="10" y="-10" />
                                    <textures normalId="photoalbum_icon_normal" activeId="photoalbum_icon_active" pressedId="photoalbum_icon_active" />
                                    <message value="Photoalbum button pressed" receiver="lua:MainScreenFunc" />
                                </MessageButtonControl>
                            </controlToMonitor>
                        </ContextHelpClientControl>
                    </children>
                </SmartMoveControl>
                <SmartMoveControl time="0.3" pathTemplate="QuadraticPathTemplate" hideOut="2.0">
                    <stateVariable name="Move in button mover" />
                    <position x="0" y="600" />
                    <position x="0" y="551" />
                    <children>
                        <StaticTextureControl>
                            <texture textureId="move_mode_back_panel" />
                            <children>
                                <ContextHelpClientControl>
                                    <times initial="0.1" reshow="0.0" />
                                    <toolTipToShow name="ClickToGoBack" />
                                    <controlToMonitor>
                                        <MessageButtonControl>
                                            <position x="0" y="9" />
                                            <textures normalId="move_mode_back_normal" activeId="move_mode_back_active" pressedId="move_mode_back_pressed" />
                                            <message value="Back button pressed" receiver="lua:MainScreenFunc" />
                                        </MessageButtonControl>
                                    </controlToMonitor>
                                </ContextHelpClientControl>
                            </children>
                        </StaticTextureControl>
                    </children>
                </SmartMoveControl>
            </children>
        </InOutAlphaChangeControl>
    </Template>
    <Template templateName="AnyShopTemplate">
        <FixedChildrenListControl>
            <children>
                <KeyListeningControl>
                    <keys>
                        <key value="VK_RETURN" receiver="lua:MainScreenFunc" message="Main screen play button pressed" />
                        <key value="VK_ESCAPE" receiver="lua:ShopFunc" message="Shop exit" />
                    </keys>
                </KeyListeningControl>
                <IfControl variable="global:temp:dev">
                    <children>
                        <KeyListeningControl>
                            <keys>
                                <key value="VK_F5" receiver="lua:TutorialFunc" message="start tutorial" />
                                <key value="VK_W" receiver="lua:ShopFunc" message="cheat:Won a cup" />
                                <key value="VK_Q" receiver="CupRenderElement" message="EffectShow" />
                            </keys>
                        </KeyListeningControl>
                    </children>
                </IfControl>
                <ContextHelpServerControl>
                    <children>
                        <LongLifeParentControl>
                            <storage receiverName="TankContentStorage" />
                        </LongLifeParentControl>
                        <InOutMovingControl time="0.4">
                            <position x="0" y="-300" />
                            <namedPositions>
                                <position x="0" y="0" name="in" />
                                <position x="0" y="-300" name="out" />
                            </namedPositions>
                            <path templateName="QuadraticPathTemplate" />
                            <messageReceiver name="Sell mover" />
                            <children>
                                <BasketControl>
                                    <position x="675" y="-5" />
                                    <messageReceiver name="Sell target" />
                                    <animation animationId="basket_cover" time="0.2" x="0" y="48" />
                                    <textures backId="basket_back" sellFrontId="basket_sell_front" cancelFrontId="basket_cancel_front" />
                                    <placing wholeTime="0.5" range="0.5">
                                        <key time="0.5" x="40.0" y="80.0" size="0.5" />
                                        <key time="1.0" x="40.0" y="30.0" size="0.5" />
                                    </placing>
                                    <help templateSellName="SellHelpTemplate" templateCancelName="BuyCancelHelpTemplate" />
                                </BasketControl>
                            </children>
                        </InOutMovingControl>
                        <TemplateInstanceControl>
                            <base templateName="EyeButtonTemplate" />
                        </TemplateInstanceControl>
                        <LongLifeParentControl>
                            <storage receiverName="MainScreenOrShopTankCupStorage" />
                        </LongLifeParentControl>
                        <InOutMovingControl time="0.4">
                            <position x="0" y="-140" />
                            <namedPositions>
                                <position x="0" y="0" name="in" />
                                <position x="0" y="-140" name="out" />
                            </namedPositions>
                            <path templateName="QuadraticPathTemplate" />
                            <messageReceiver name="Shop mover" />
                            <children>
                                <VariableContextHelpControl>
                                    <messageReceiver name="ShopContext" />
                                    <times initial="0.0" reshow="0.0" />
                                    <controlToMonitor>
                                        <ShopControl background="on_tab_panel">
                                            <position x="9" y="9" />
                                            <messageReceiver name="New Shop" />
                                            <SpecialMessage textWidth="220" visibleTime="40.0" x="0" y="300" />
                                            <shadow x="169" y="17" id="screen_panel_shadow" />
                                            <ButtonSet x="5" y="0" pressed00="fish_inset_blue" pressed01="fish_inset_beauty_active" pressed02="fish_inset_comfort_active" pressed10="beauty_inset_fish_active" pressed11="beauty_inset_blue" pressed12="beauty_inset_comfort_active" pressed20="comfort_inset_fish_active" pressed21="comfort_inset_beauty_active" pressed22="comfort_inset_blue" width="118" height="35" />
                                            <LeftArrow x="137" y="26" normal="arrow_left_normal" active="arrow_left_active" pressed="arrow_left_pressed" disabled="arrow_left_disabled" receiver="New Shop" onDownMsg="left" onPressedMsg="stop">
                                                <sounds onOver="button_active" onDown="button_pressed" />
                                            </LeftArrow>
                                            <RightArrow x="562" y="26" normal="arrow_right_normal" active="arrow_right_active" pressed="arrow_right_pressed" disabled="arrow_right_disabled" receiver="New Shop" onDownMsg="right" onPressedMsg="stop">
                                                <sounds onOver="button_active" onDown="button_pressed" />
                                            </RightArrow>
                                            <Done x="602" y="79" normal="shop_exit_normal" active="shop_exit_active" pressed="shop_exit_pressed" receiver="lua:ShopFunc" onPressedMsg="Shop done button pressed">
                                                <contextHelp templateName="ShopDoneButton" />
                                                <sounds onOver="button_active" onDown="button_pressed" />
                                            </Done>
                                            <SlideBar x="175" y="13" length="383" height="8" normal="tr_normal" active="tr_active" />
                                            <Content x="169" y="22" width="394" height="72" file="Shop*.xml">
                                                <MinusButton x="3" y="4" normal="icon_minus_normal" active="icon_minus_active" pressed="icon_minus_pressed" receiver="New Shop" onPressedMsg="minus" />
                                                <PlusButton x="47" y="4" normal="icon_plus_normal" active="icon_plus_active" pressed="icon_plus_pressed" receiver="New Shop" onPressedMsg="plus" />
                                            </Content>
                                        </ShopControl>
                                    </controlToMonitor>
                                </VariableContextHelpControl>
                                <MoneyEffectControl>
                                    <messageReceiver name="Money effect" />
                                </MoneyEffectControl>
                            </children>
                        </InOutMovingControl>
                        <LongLifeParentControl>
                            <storage receiverName="ShopTipsControlStorage" />
                        </LongLifeParentControl>
                        <SimpleTimeCounter>
                            <variable name="Shop time" defaultValue="0.0" />
                            <logMessages onCreate="Entered shop" onDestroy="Leaved shop" />
                        </SimpleTimeCounter>
                        <LongLifeParentControl>
                            <storage receiverName="PlayPanelControlStorage" />
                        </LongLifeParentControl>
                        <InOutMovingControl time="0.3">
                            <position x="-330" y="0" />
                            <namedPositions>
                                <position x="0" y="0" name="in" />
                                <position x="-330" y="0" name="out" />
                            </namedPositions>
                            <path templateName="DialogPathTemplate" />
                            <messageReceiver name="Mouse help mover" />
                            <children>
                                <StaticTextureControl>
                                    <position x="15" y="425" />
                                    <texture textureId="left_mouse_button" />
                                </StaticTextureControl>
                                <StaticTextControl>
                                    <position x="40" y="450" />
                                    <div fontName="White_14" align="left" resourceName="Place" />
                                </StaticTextControl>
                                <StaticTextureControl>
                                    <position x="148" y="425" />
                                    <texture textureId="right_mouse_button" />
                                </StaticTextureControl>
                                <StaticTextControl>
                                    <position x="172" y="450" />
                                    <div fontName="White_14" align="left" resourceName="Rotate" />
                                </StaticTextControl>
                            </children>
                        </InOutMovingControl>
                    </children>
                </ContextHelpServerControl>
                <ModalDialogControl>
                    <messageReceiver name="Shop modal dialog" />
                    <times starting="0.3" hiding="0.3" />
                </ModalDialogControl>
                <MutableChildrenListControl>
                    <messageReceiver name="Mutable Help Control" />
                </MutableChildrenListControl>
                <ModalDialogControl>
                    <messageReceiver name="Money edit dialog" />
                    <times starting="0.3" hiding="0.3" />
                </ModalDialogControl>
                <MutableChildrenListControl>
                    <messageReceiver name="NotEnouthMoney" />
                </MutableChildrenListControl>
                <MutableChildrenListControl>
                    <messageReceiver name="Over shop screen" />
                </MutableChildrenListControl>
                <InOutAlphaChangeControl alpha="1.0" time="0.15">
                    <alpha in="1.0" out="0.0" />
                    <messageReceiver name="Border alpha changer" />
                    <children>
                        <BorderControl width="800" height="600">
                            <texture textureId="border" />
                        </BorderControl>
                    </children>
                </InOutAlphaChangeControl>
            </children>
        </FixedChildrenListControl>
    </Template>
    <Template templateName="ScreenPlayrixLogo">
        <FixedChildrenListControl>
            <position x="699" y="21" />
            <children>
                <StaticTextureControl>
                    <position x="-46" y="-25" />
                    <texture textureId="small_logo" />
                </StaticTextureControl>
                <ZoomControl zoom="0.8">
                    <children>
                        <ExtendedWaterPlantControl>
                            <layers>
                                <onFishEffect name="logo" x="0" y="0" minPause="15.0" maxPause="15.0" />
                            </layers>
                        </ExtendedWaterPlantControl>
                    </children>
                </ZoomControl>
            </children>
        </FixedChildrenListControl>
    </Template>
    <Template templateName="TankContentTemplate">
        <FixedChildrenListControl>
            <ZOrderControl minZ="0.0" minY="60" maxY="500" minX="-200" maxX="1000" invisibleMinX="-80" invisibleMaxX="880">
                <messageReceiver name="Aquarium bottom" />
                <safe minX="30" maxX="770" />
                <caustica>
                    <animation animationId="caustic_move" />
                    <causticBottom widthBottom="1100" height="300.0" light="96" />
                    <causticTop offset="70" widthBottom="430" widthTop="590" height="70.0" light="64" />
                </caustica>
            </ZOrderControl>
            <IfControl variable="global:temp:ScreensaverMode">
                <children>
                    <TemplateInstanceControl>
                        <base templateName="ScreenPlayrixLogo" />
                    </TemplateInstanceControl>
                </children>
            </IfControl>
        </FixedChildrenListControl>
    </Template>
    <Template templateName="LongTankContentTemplate">
        <LongLifeParentControl>
            <storage receiverName="TankContentStorage" />
        </LongLifeParentControl>
    </Template>
</FinalTemplateCollection>
