<?xml version="1.0" encoding="windows-1251" ?>
<FinalTemplateCollection>
    <Template templateName="BuyTankDescriptionTemplate">
        <StaticTextControl valign="true">
            <div fontName="White_17" align="center" resourceName="[resourceName]" />
        </StaticTextControl>
    </Template>
    <Template templateName="BuyTankTemplate">
        <ContextHelpServerControl>
            <children>
                <KeyListeningControl>
                    <keys>
                        <key value="VK_ESCAPE" receiver="lua:ChooseTankFunc" message="BuyTank exit" />
                    </keys>
                </KeyListeningControl>
                <StretchBackgroundControl>
                    <texture id="buy_tank_blue_shadow" />
                    <messageReceiver name="BuyTank backgroung mover" />
                </StretchBackgroundControl>
                <StaticTextControl>
                    <position x="400" y="510" />
                    <div fontName="Orange_30" align="center" resourceName="BuyTankCaption" />
                </StaticTextControl>
                <BuyTankItemControl tankType="1" price="5000">
                    <position x="100" y="180" />
                    <textures normalId="buy_tank_border_normal" activeId="buy_tank_border_active" />
                    <image id="buy_tank1_active" />
                    <show delay="0.2" speed="2.0" />
                    <message value="Buy tank button pressed" receiver="lua:ChooseTankFunc" />
                </BuyTankItemControl>
                <BuyTankItemControl tankType="2" price="5000">
                    <position x="310" y="180" />
                    <textures normalId="buy_tank_border_normal" activeId="buy_tank_border_active" />
                    <image id="buy_tank2_active" />
                    <show delay="0.3" speed="2.0" />
                    <message value="Buy tank button pressed" receiver="lua:ChooseTankFunc" />
                </BuyTankItemControl>
                <BuyTankItemControl tankType="3" price="5000">
                    <position x="520" y="180" />
                    <textures normalId="buy_tank_border_normal" activeId="buy_tank_border_active" />
                    <image id="buy_tank3_active" />
                    <show delay="0.4" speed="2.0" />
                    <message value="Buy tank button pressed" receiver="lua:ChooseTankFunc" />
                </BuyTankItemControl>
                <VariableTextChangeControl>
                    <position x="395" y="90" />
                    <variable name="temp:BuyTank current tank description" type="int" scope="local" defaultValue="-1" />
                    <states>
                        <state variableValue="1" resourceName="Tank1Desc" />
                        <state variableValue="2" resourceName="Tank2Desc" />
                        <state variableValue="3" resourceName="Tank3Desc" />
                    </states>
                </VariableTextChangeControl>
                <ModalDialogControl>
                    <messageReceiver name="Choose tank new" />
                    <times starting="0.3" hiding="0.3" />
                </ModalDialogControl>
                <InOutMovingControl time="0.4">
                    <position x="0" y="600" />
                    <namedPositions>
                        <position x="0" y="551" name="in" />
                        <position x="0" y="600" name="out" />
                    </namedPositions>
                    <path templateName="QuadraticPathTemplate" />
                    <messageReceiver name="Choose tank done panel mover" />
                    <children>
                        <StaticTextureControl>
                            <texture textureId="move_mode_back_panel" />
                            <children>
                                <ContextHelpClientControl>
                                    <times initial="0.1" reshow="0.0" />
                                    <toolTipToShow name="BuyBack" />
                                    <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="BuyTank exit" receiver="lua:ChooseTankFunc" />
                                        </MessageButtonControl>
                                    </controlToMonitor>
                                </ContextHelpClientControl>
                            </children>
                        </StaticTextureControl>
                    </children>
                </InOutMovingControl>
            </children>
        </ContextHelpServerControl>
    </Template>
    <Template templateName="BuyTankHolidayTemplate">
        <FixedChildrenListControl>
            <StaticTextureControl>
                <centerPosition x="400" y="300" />
                <texture textureId="choose_tank_panel_buy" />
                <children>
                    <BubblesBackGround>
                        <position x="50" y="352" />
                        <description textureId="bubble_blue" emitters="20" width="210" height="25" minPause="3.0" maxPause="6.0" minSpeed="20.0" maxSpeed="60.0" amplitude="5.0" period="10.0" blendMode="alpha" />
                        <scale>
                            <range min="0.07" max="0.10" />
                            <range min="0.07" max="0.10" />
                            <range min="0.10" max="0.15" />
                            <range min="0.15" max="0.20" />
                            <range min="0.10" max="0.15" />
                            <range min="0.07" max="0.10" />
                            <range min="0.07" max="0.10" />
                        </scale>
                    </BubblesBackGround>
                    <StaticTextControl valign="true">
                        <position x="157" y="365" />
                        <div fontName="White_17" align="center" resourceName="NewTankCaption" />
                    </StaticTextControl>
                    <StaticTextureControl>
                        <position x="20" y="95" />
                        <texture textureId="new_tank" />
                    </StaticTextureControl>
                    <StaticTextControl valign="true">
                        <position x="145" y="65" />
                        <div fontName="White_17" align="right" resourceName="TankPriceIs" />
                    </StaticTextControl>
                    <StaticTextControl valign="true">
                        <position x="155" y="65" />
                        <div fontName="Orange_17" align="left" resourceName="[price]" />
                    </StaticTextControl>
                    <MessageButtonControl>
                        <position x="30" y="13" />
                        <textures normalId="buy_normal" activeId="buy_active" pressedId="buy_pressed" />
                        <message value="BuyTank from HolidayTemplate" receiver="lua:ChooseTankFunc" />
                    </MessageButtonControl>
                    <MessageButtonControl>
                        <position x="185" y="13" />
                        <textures normalId="email_cancel_normal" activeId="email_cancel_active" pressedId="email_cancel_pressed" />
                        <message value="BuyTank exit" receiver="lua:ChooseTankFunc" />
                    </MessageButtonControl>
                    <KeyListeningControl>
                        <keys>
                            <key value="VK_ESCAPE" receiver="lua:ChooseTankFunc" message="BuyTank exit" />
                            <key value="VK_RETURN" receiver="lua:ChooseTankFunc" message="BuyTank confirm buy" />
                        </keys>
                    </KeyListeningControl>
                </children>
            </StaticTextureControl>
            <ModalDialogControl maxBlackAlpha="30">
                <messageReceiver name="BuyTankModalDialog" />
                <times starting="0.3" hiding="0.3" />
            </ModalDialogControl>
        </FixedChildrenListControl>
    </Template>
    <Template templateName="IndicatorsChild">
        <FixedChildrenListControl>
            <children>
                <StaticTextControl>
                    <position x="7" y="60" />
                    <div fontName="White_12" align="left">
                        <line resourceName="Fish" />
                    </div>
                </StaticTextControl>
                <ProgressBarControl startTime="0.0">
                    <position x="85" y="44" />
                    <indPos x="3" y="4" length="110" />
                    <textures backgroundId="choose_tank_indicator_empty" fillingId="choose_tank_red_indicator_middle" fillingStart="choose_tank_red_indicator_left" fillingEnd="choose_tank_red_indicator_right" />
                    <variables ind="[tankId] FishIndicator" cup="[tankId] Cup" />
                    <flash color="#ffffff" period="0.5" maxAlpha="0.3" />
                    <change speed="3000.0" />
                    <messageReceiver name="choose tank fish [id]" />
                </ProgressBarControl>
                <StaticTextControl>
                    <position x="7" y="38" />
                    <div fontName="White_12" align="left">
                        <line resourceName="Beauty" />
                    </div>
                </StaticTextControl>
                <ProgressBarControl startTime="0.0">
                    <position x="85" y="22" />
                    <indPos x="3" y="4" length="110" />
                    <textures backgroundId="choose_tank_indicator_empty" fillingId="choose_tank_green_indicator_middle" fillingStart="choose_tank_green_indicator_left" fillingEnd="choose_tank_green_indicator_right" />
                    <variables ind="[tankId] BeautyIndicator" cup="[tankId] Cup" />
                    <flash color="#51b031" period="0.5" maxAlpha="0.4" />
                    <change speed="3000.0" />
                    <messageReceiver name="choose tank beauty [id]" />
                </ProgressBarControl>
                <StaticTextControl>
                    <position x="7" y="16" />
                    <div fontName="White_12" align="left">
                        <line resourceName="Comfort" />
                    </div>
                </StaticTextControl>
                <ProgressBarControl startTime="0.0">
                    <position x="85" y="0" />
                    <indPos x="3" y="4" length="110" />
                    <textures backgroundId="choose_tank_indicator_empty" fillingId="choose_tank_purple_indicator_middle" fillingStart="choose_tank_purple_indicator_left" fillingEnd="choose_tank_purple_indicator_right" />
                    <variables ind="[tankId] ComfortIndicator" cup="[tankId] Cup" />
                    <flash color="#b242db" period="0.5" maxAlpha="0.7" />
                    <change speed="3000.0" />
                    <messageReceiver name="choose tank comfort [id]" />
                </ProgressBarControl>
                <ContextHelpClientControl>
                    <times initial="0.1" reshow="0.0" />
                    <toolTipToShow name="Template:ChooseTankIndicatorsTooltipTemplate[tankId]" />
                    <controlToMonitor>
                        <InvisibleControl>
                            <position x="10" y="0" />
                            <rect x="0" y="0" width="190" height="60" />
                        </InvisibleControl>
                    </controlToMonitor>
                </ContextHelpClientControl>
            </children>
        </FixedChildrenListControl>
    </Template>
    <Template templateName="ChooseTankTemplate">
        <FixedChildrenListControl>
            <children>
                <InOutMovingControl time="0.4">
                    <position x="0" y="600" />
                    <sound soundId="window_moving" />
                    <namedPositions>
                        <position x="0" y="0" name="in" />
                        <position x="0" y="600" name="out" />
                    </namedPositions>
                    <path templateName="DialogPathTemplate" />
                    <messageReceiver name="Choose tank mover" />
                    <children>
                        <VariableContextHelpControl>
                            <messageReceiver name="ChooseTankContext" />
                            <times initial="0.1" reshow="0.0" />
                            <controlToMonitor>
                                <ChooseTankControl speed="2.0" acceleration="5.0" TankContentName="Aquarium bottom" sliderBarScroll="CT slide value">
                                    <position x="25" y="95" />
                                    <texture textureId="choose_tank_panel" />
                                    <messageReceiver name="ChooseTank scroll" />
                                    <sheetSize width="3" height="1" top="75" bottom="140" left="50" right="50" scrollItems="1" />
                                    <thumbSize width="195" height="150" />
                                    <trashPos x="232" y="368" />
                                    <frameTextures normalId="choose_tank_item_border_normal" activeId="choose_tank_item_border_active" emptyId="choose_tank_item_border_normal" />
                                    <viewArea x="48" y="56" width="656" height="341" />
                                    <viewItemArea x="60" y="78" width="398" height="301" />
                                    <cupEffect x="0" y="0" name="cup1" delay="0.7" />
                                    <addEffect x="620" y="488" name="aquari2" />
                                    <BuyNewTankText>
                                        <position x="0" y="0" />
                                        <div fontName="White_17" resourceName="VeryBigBuyButton" />
                                    </BuyNewTankText>
                                    <children>
                                        <StaticTextureControl>
                                            <position x="100" y="396" />
                                            <texture textureId="choose_tank_panel_title" />
                                        </StaticTextureControl>
                                        <BubblesBackGround>
                                            <position x="140" y="406" />
                                            <description textureId="bubble_blue" emitters="20" width="260" height="30" minPause="3.0" maxPause="6.0" minSpeed="20.0" maxSpeed="60.0" amplitude="5.0" period="10.0" blendMode="alpha" />
                                            <scale>
                                                <range min="0.07" max="0.10" />
                                                <range min="0.07" max="0.10" />
                                                <range min="0.10" max="0.15" />
                                                <range min="0.15" max="0.20" />
                                                <range min="0.10" max="0.15" />
                                                <range min="0.07" max="0.10" />
                                                <range min="0.07" max="0.10" />
                                            </scale>
                                        </BubblesBackGround>
                                        <StaticTextControl>
                                            <position x="272" y="430" />
                                            <div fontName="Orange_19" align="center">
                                                <line resourceName="ChooseTank" />
                                            </div>
                                        </StaticTextControl>
                                        <StaticTextureControl>
                                            <position x="47" y="55" />
                                            <texture textureId="choose_tank_panel_shadow" />
                                        </StaticTextureControl>
                                        <BubblesBackGround>
                                            <position x="58" y="56" />
                                            <description textureId="bubble_blue" emitters="20" width="636" height="341" minPause="3.0" maxPause="6.0" minSpeed="20.0" maxSpeed="60.0" amplitude="5.0" period="10.0" blendMode="alpha" />
                                            <scale>
                                                <range min="0.07" max="0.10" />
                                                <range min="0.07" max="0.10" />
                                                <range min="0.10" max="0.15" />
                                                <range min="0.15" max="0.20" />
                                                <range min="0.10" max="0.15" />
                                                <range min="0.07" max="0.10" />
                                                <range min="0.07" max="0.10" />
                                            </scale>
                                        </BubblesBackGround>
                                        <ContextHelpClientControl>
                                            <times initial="0.1" reshow="0.0" />
                                            <toolTipToShow name="CloseChoose" />
                                            <controlToMonitor>
                                                <MessageButtonControl>
                                                    <position x="668" y="405" />
                                                    <textures normalId="photoalbum_exit_normal" activeId="photoalbum_exit_active" pressedId="photoalbum_exit_pressed" />
                                                    <message value="Choose tank cancel button pressed" receiver="lua:ChooseTankFunc" />
                                                </MessageButtonControl>
                                            </controlToMonitor>
                                        </ContextHelpClientControl>
                                        <MinScrollButtonControl>
                                            <position x="5" y="207" />
                                            <textures normalId="photoalbum_left_arrow_normal" activeId="photoalbum_left_arrow_active" pressedId="photoalbum_left_arrow_pressed" disabledId="photoalbum_left_arrow_empty" />
                                            <messageReceiver name="ChooseTank scroll min button" />
                                            <flashing period="1.0" maxAlpha="0.7" />
                                            <sounds activeId="button_active" pressedId="none" />
                                        </MinScrollButtonControl>
                                        <MaxScrollButtonControl>
                                            <position x="712" y="207" />
                                            <textures normalId="photoalbum_right_arrow_normal" activeId="photoalbum_right_arrow_active" pressedId="photoalbum_right_arrow_pressed" disabledId="photoalbum_right_arrow_empty" />
                                            <messageReceiver name="ChooseTank scroll max button" />
                                            <flashing period="1.0" maxAlpha="0.7" />
                                            <sounds activeId="button_active" pressedId="none" />
                                        </MaxScrollButtonControl>
                                        <ContextHelpClientControl>
                                            <times initial="0.1" reshow="0.0" />
                                            <toolTipToShow name="MoreTanks" />
                                            <controlToMonitor>
                                                <MessageButtonControl>
                                                    <position x="297" y="9" />
                                                    <textures normalId="choose_tank_more_tanks_normal" activeId="choose_tank_more_tanks_active" pressedId="choose_tank_more_tanks_pressed" />
                                                    <message value="ChooseTank buy button pressed" receiver="lua:ChooseTankFunc" />
                                                </MessageButtonControl>
                                            </controlToMonitor>
                                        </ContextHelpClientControl>
                                    </children>
                                </ChooseTankControl>
                            </controlToMonitor>
                        </VariableContextHelpControl>
                        <SlideBarControl length="634" height="10" normal="tr_normal" active="tr_active" tr_line_side="pa_tr_line_side" tr_line_center="pa_tr_line_center" variable="CT slide value">
                            <position x="84" y="146" />
                            <messageReceiver name="ChooseTank scroll bar" />
                        </SlideBarControl>
                    </children>
                </InOutMovingControl>
                <KeyListeningControl>
                    <keys>
                        <key value="VK_ESCAPE" receiver="lua:ChooseTankFunc" message="Choose tank cancel button pressed" />
                    </keys>
                </KeyListeningControl>
                <IfControl variable="global:temp:dev">
                    <children>
                        <KeyListeningControl>
                            <keys>
                                <key value="VK_F8" receiver="lua:ChooseTankFunc" message="All Tank Unlock" />
                            </keys>
                        </KeyListeningControl>
                    </children>
                </IfControl>
                <ModalDialogControl maxBlackAlpha="0">
                    <messageReceiver name="NewTankModalDialog" />
                    <times starting="0.3" hiding="0.3" />
                </ModalDialogControl>
            </children>
        </FixedChildrenListControl>
    </Template>
</FinalTemplateCollection>
