<?xml version="1.0" encoding="windows-1251" ?>
<FinalTemplateCollection>
    <Template templateName="GUI">
        <FixedChildrenListControl>
            <children>
                <HolidaysDefinition>
                    <messageReceiver name="Holidays" />
                    <date from="1.1" till="10.1" holiday="christmas" />
                    <date from="1.10" till="6.11" holiday="halloween" />
                    <date from="7.11" till="30.11" holiday="thanksgiving" />
                    <date from="1.12" till="31.12" holiday="christmas" />
                </HolidaysDefinition>
                <SimpleTimeCounter>
                    <variable name="Total time" defaultValue="0.0" />
                    <logMessages onCreate="" onDestroy="" />
                </SimpleTimeCounter>
                <SimpleTimeCounter>
                    <variable name="Cup time" defaultValue="0.0" />
                    <logMessages onCreate="" onDestroy="" />
                </SimpleTimeCounter>
                <PlayerTimeLogger />
                <LongLifeStorageControl>
                    <messageReceiver name="ShopTipsControlStorage" />
                    <template name="ShopTipsControlTemplate" />
                </LongLifeStorageControl>
                <LongLifeStorageControl>
                    <messageReceiver name="MainScreenOrShopTankCupStorage" />
                    <template name="MainScreenOrShopTankCupTemplate" />
                </LongLifeStorageControl>
                <LongLifeStorageControl>
                    <messageReceiver name="PlayPanelControlStorage" />
                    <template name="PlayPanelControlTemplate" />
                </LongLifeStorageControl>
                <LongLifeStorageControl>
                    <messageReceiver name="Tank1ContentStorage" />
                    <template name="Tank1ContentTemplate" />
                </LongLifeStorageControl>
                <LongLifeStorageControl>
                    <messageReceiver name="Tank2ContentStorage" />
                    <template name="Tank2ContentTemplate" />
                </LongLifeStorageControl>
                <LongLifeStorageControl>
                    <messageReceiver name="Tank3ContentStorage" />
                    <template name="Tank3ContentTemplate" />
                </LongLifeStorageControl>
                <OptionsDispatcherControl>
                    <messageReceiver name="Options dispatcher" />
                </OptionsDispatcherControl>
                <StatisticControl>
                    <messageReceiver name="CSVSTATISTICS" />
                </StatisticControl>
                <MutableChildrenListControl>
                    <messageReceiver name="Screen" />
                </MutableChildrenListControl>
                <MutableChildrenListControl>
                    <messageReceiver name="Tutorial layer" />
                </MutableChildrenListControl>
                <MutableChildrenListControl>
                    <messageReceiver name="SmallHelp layer" />
                </MutableChildrenListControl>
                <ModalDialogControl>
                    <messageReceiver name="Tutorial dialog" />
                    <times starting="0.3" hiding="0.3" />
                </ModalDialogControl>
                <ReminderControl>
                    <messageReceiver name="Tutorial reminder" />
                </ReminderControl>
                <TutorialControl soundId="window_moving">
                    <position x="240" y="240" />
                    <messageReceiver name="TutorialControl" />
                    <sandArrow x="240" y="163" direction="up" textureId="up_sand_arrow" />
                    <buttons>
                        <yes>
                            <position x="43" y="-31" />
                            <textures normalId="yes_normal" activeId="yes_active" pressedId="yes_pressed" />
                            <message value="yes pressed" receiver="TutorialControl" />
                        </yes>
                        <no>
                            <position x="178" y="-30" />
                            <textures normalId="no_normal" activeId="no_active" pressedId="no_pressed" />
                            <message value="no pressed" receiver="TutorialControl" />
                        </no>
                        <next>
                            <position x="111" y="-31" />
                            <textures normalId="next_normal" activeId="next_active" pressedId="next_pressed" />
                            <message value="next pressed" receiver="TutorialControl" />
                        </next>
                        <skip>
                            <position x="-215" y="265" />
                            <textures normalId="skip_tutorial_normal" activeId="skip_tutorial_active" pressedId="skip_tutorial_pressed" />
                            <message value="skip pressed" receiver="TutorialControl" />
                        </skip>
                        <finish>
                            <position x="111" y="-31" />
                            <textures normalId="ok_normal" activeId="ok_active" pressedId="ok_pressed" />
                            <message value="finish pressed" receiver="TutorialControl" />
                        </finish>
                    </buttons>
                    <menu x="715" y="560" width="75" height="40" />
                </TutorialControl>
                <TimerControl />
                <FpsControl>
                    <position x="790" y="570" />
                    <variable name="showFps" defaultValue="true" />
                    <font name="arial" />
                </FpsControl>
                <VideoMemoryControl>
                    <position x="10" y="10" />
                    <variable name="showFps" defaultValue="true" />
                    <font name="arial" align="left" />
                </VideoMemoryControl>
                <TimeScaleControl>
                    <position x="790" y="550" />
                    <font name="arial" />
                    <scales _1="1.0" _2="0.5" _3="0.3" _5="0.2" _10="0.1" x3="3.0" x10="10.0" x30="30.0" x100="100.0" />
                </TimeScaleControl>
            </children>
        </FixedChildrenListControl>
    </Template>
    <Template templateName="ShopTipsControlTemplate">
        <FixedChildrenListControl>
            <children>
                <ShowTipsControl>
                    <position x="12" y="0" />
                    <messageReceiver name="ShopTipsManager" />
                    <options textWidth="220" varShowTips="Show shop tips" varShowNext="Show next shop tip" visibleTime="40.0" pauseBeforeShow="1.0" x="3" y="330" />
                </ShowTipsControl>
                <MutableChildrenListControl>
                    <messageReceiver name="ShopTipsScreen" />
                </MutableChildrenListControl>
                <MutableChildrenListControl>
                    <messageReceiver name="ShopTipsScreen2" />
                </MutableChildrenListControl>
            </children>
        </FixedChildrenListControl>
    </Template>
    <Template templateName="MoneyPanelTemplate">
        <StaticTextureControl>
            <texture textureId="main_screen_money_bg" />
        </StaticTextureControl>
    </Template>
    <Template templateName="MoneyButtonTemplate">
        <MessageButtonControl>
            <textures normalId="main_screen_money_bg" activeId="main_screen_money_bg" pressedId="main_screen_money_bg" />
            <message value="Main screen or shop money pressed" receiver="lua:MainScreenAndShopFunc" />
        </MessageButtonControl>
    </Template>
    <Template templateName="MainScreenOrShopTankCupTemplate">
        <AlphaChangeControl>
            <speed value="2.5" />
            <messageReceiver name="Cup alpha changer" />
            <children>
                <CupRenderControl variable=".tankId. Cup">
                    <effect x="275" y="0" name="cup2" />
                    <messageReceiver name="CupRenderElement" />
                    <position x="498" y="474" />
                    <tank_1>
                        <first x="245" y="-8" textureId="tank1_bronze_cup" />
                        <second x="245" y="-8" textureId="tank1_silver_cup" />
                        <third x="240" y="-8" textureId="tank1_gold_cup" />
                    </tank_1>
                    <tank_2>
                        <first x="245" y="-8" textureId="tank2_bronze_cup" />
                        <second x="245" y="-8" textureId="tank2_silver_cup" />
                        <third x="245" y="-8" textureId="tank2_gold_cup" />
                    </tank_2>
                    <tank_3>
                        <first x="245" y="-8" textureId="tank3_bronze_cup" />
                        <second x="245" y="-8" textureId="tank3_silver_cup" />
                        <third x="243" y="-8" textureId="tank3_gold_cup" />
                    </tank_3>
                    <children>
                        <StaticTextControl>
                            <position x="84" y="70" />
                            <div fontName="White_14" align="right">
                                <line resourceName="Fish" />
                            </div>
                        </StaticTextControl>
                        <ProgressBarControl startTime="0.8">
                            <position x="87" y="51" />
                            <indPos x="4" y="4" />
                            <textures backgroundId="ind_background" fillingId="ind_red" fillingStart="ind_red_start" fillingEnd="ind_red_end" />
                            <variables ind=".tankId. FishIndicator" cup=".tankId. Cup" />
                            <flash color="#ffffff" period="0.75" maxAlpha="0.3" />
                            <change speed="200.0" />
                            <messageReceiver name="FishIndicator" />
                            <verticalLine textureId="indicator_vertical_line" startOffset="6" flashOffset="6" />
                            <effect name="MeterFull" x="85" y="12" />
                        </ProgressBarControl>
                        <StaticTextControl>
                            <position x="84" y="44" />
                            <div fontName="White_14" align="right">
                                <line resourceName="Beauty" />
                            </div>
                        </StaticTextControl>
                        <ProgressBarControl startTime="0.8">
                            <position x="87" y="26" />
                            <indPos x="4" y="4" />
                            <textures backgroundId="ind_background" fillingId="ind_green" fillingStart="ind_green_start" fillingEnd="ind_green_end" />
                            <variables ind=".tankId. BeautyIndicator" cup=".tankId. Cup" />
                            <flash color="#51b031" period="0.75" maxAlpha="0.4" />
                            <change speed="200.0" />
                            <messageReceiver name="BeautyIndicator" />
                            <verticalLine textureId="indicator_vertical_line" startOffset="6" flashOffset="6" />
                            <effect name="MeterFull" x="85" y="12" />
                        </ProgressBarControl>
                        <StaticTextControl>
                            <position x="84" y="17" />
                            <div fontName="White_14" align="right">
                                <line resourceName="Comfort" />
                            </div>
                        </StaticTextControl>
                        <ProgressBarControl startTime="0.8">
                            <position x="87" y="-1" />
                            <indPos x="4" y="4" />
                            <textures backgroundId="ind_background" fillingId="ind_perp" fillingStart="ind_perp_start" fillingEnd="ind_perp_end" />
                            <variables ind=".tankId. ComfortIndicator" cup=".tankId. Cup" />
                            <flash color="#b242db" period="0.75" maxAlpha="0.7" />
                            <change speed="200.0" />
                            <messageReceiver name="ComfortIndicator" />
                            <verticalLine textureId="indicator_vertical_line" startOffset="6" flashOffset="6" />
                            <effect name="MeterFull" x="85" y="12" />
                        </ProgressBarControl>
                        <ContextHelpClientControl>
                            <times initial="0.1" reshow="0.0" />
                            <toolTipToShow name="Template:TankIndicatorsTooltipTemplate" />
                            <controlToMonitor>
                                <InvisibleControl>
                                    <position x="19" y="0" />
                                    <rect x="0" y="0" width="270" height="69" />
                                </InvisibleControl>
                            </controlToMonitor>
                        </ContextHelpClientControl>
                    </children>
                    <ContextHelpClientControl>
                        <times initial="0.1" reshow="0.0" />
                        <toolTipToShow name="Template:TankCupTooltipTemplate" />
                        <controlToMonitor>
                            <InvisibleControl>
                                <position x="20" y="-5" />
                                <rect x="283" y="0" width="50" height="85" />
                            </InvisibleControl>
                        </controlToMonitor>
                    </ContextHelpClientControl>
                </CupRenderControl>
            </children>
        </AlphaChangeControl>
    </Template>
    <Template templateName="PlayPanelControlTemplate">
        <FixedChildrenListControl>
            <children>
                <ModalDialogControl>
                    <messageReceiver name="PlayPanel modal dialog" />
                    <times starting="0.3" hiding="0.3" />
                </ModalDialogControl>
                <InOutMovingControl time="0.4">
                    <position x="-300" y="0" />
                    <namedPositions>
                        <position x="3" y="0" name="in" />
                        <position x="-300" y="0" name="out" />
                    </namedPositions>
                    <path templateName="QuadraticPathTemplate" />
                    <messageReceiver name="Left top panel mover" />
                    <children>
                        <ContextHelpClientControl>
                            <position x="0" y="553" />
                            <times initial="0.1" reshow="0.0" />
                            <toolTipToShow name="TankName" />
                            <controlToMonitor>
                                <MessageButtonControl>
                                    <position x="64" y="12" />
                                    <textures normalId="main_screen_tank_name_bg" activeId="main_screen_tank_name_bg" pressedId="main_screen_tank_name_bg" />
                                    <message value="Tank name pressed" receiver="lua:MainScreenFunc" />
                                </MessageButtonControl>
                            </controlToMonitor>
                        </ContextHelpClientControl>
                        <StaticTextureControl>
                            <position x="0" y="553" />
                            <texture textureId="main_screen_left_top_panel" />
                            <children>
                                <ContextHelpClientControl>
                                    <times initial="0.1" reshow="0.0" />
                                    <toolTipToShow name="MainScreenAndShopEyeButton" />
                                    <controlToMonitor>
                                        <MessageButtonControl>
                                            <position x="9" y="10" />
                                            <textures normalId="eye_normal" activeId="eye_active" pressedId="eye_pressed" />
                                            <message value="Eye button pressed" receiver="lua:MainScreenFunc" />
                                        </MessageButtonControl>
                                    </controlToMonitor>
                                </ContextHelpClientControl>
                                <TankNameControl>
                                    <position x="142" y="14" />
                                    <font name="White_17" />
                                </TankNameControl>
                            </children>
                        </StaticTextureControl>
                    </children>
                </InOutMovingControl>
                <InOutMovingControl time="0.3">
                    <position x="400" y="0" />
                    <namedPositions>
                        <position x="0" y="0" name="in" />
                        <position x="400" y="0" name="out" />
                    </namedPositions>
                    <path templateName="QuadraticPathTemplate" />
                    <messageReceiver name="Right top panel mover" />
                    <children>
                        <ContextHelpClientControl>
                            <position x="452" y="553" />
                            <times initial="0.1" reshow="0.0" />
                            <toolTipToShow name="MainScreenAndShopMoney" />
                            <controlToMonitor>
                                <VariableDrivenSwitchControl>
                                    <position x="10" y="9" />
                                    <variable name="temp:dev" type="bool" scope="global" defaultValue="true" />
                                    <states>
                                        <state variableValue="false" templateName="MoneyPanelTemplate" />
                                        <state variableValue="true" templateName="MoneyButtonTemplate" />
                                    </states>
                                </VariableDrivenSwitchControl>
                            </controlToMonitor>
                        </ContextHelpClientControl>
                        <StretchPanelControl>
                            <position x="452" y="553" />
                            <texture textureId="main_screen_right_top_panel" div="12" />
                            <text font="Brown_16" id="YouHave" x="93" y="35" width="64" col="3" align="right" />
                            <invisibleText x="157" y="14" col="6" width="84">
                                <options font="Orange_19" variableName="Money" oldValueStoreTo="oldMoneyValue" prefixResourceName="MoneyPrefix" />
                                <CountingFlare flareLife="1.0" flareOnce="true" beforeFirstFlare="1.5" minFlarePause="0.0" maxFlarePause="0.0" />
                            </invisibleText>
                        </StretchPanelControl>
                        <FixedChildrenListControl>
                            <position x="452" y="553" />
                            <children>
                                <ContextHelpClientControl>
                                    <times initial="0.1" reshow="0.0" />
                                    <toolTipToShow name="HelpButton" />
                                    <controlToMonitor>
                                        <MessageButtonControl>
                                            <position x="221" y="9" />
                                            <textures normalId="help_normal" activeId="help_active" pressedId="help_pressed" />
                                            <message value="show" receiver="lua:HelpFunc" />
                                        </MessageButtonControl>
                                    </controlToMonitor>
                                </ContextHelpClientControl>
                                <ContextHelpClientControl>
                                    <times initial="0.1" reshow="0.0" />
                                    <toolTipToShow name="lua:GetMainScreenMenuTooltip" />
                                    <controlToMonitor>
                                        <MessageButtonControl>
                                            <position x="263" y="10" />
                                            <textures normalId="menu_normal" activeId="menu_active" pressedId="menu_pressed" />
                                            <message value="Main screen main menu button pressed" receiver="lua:MainScreenFunc" />
                                        </MessageButtonControl>
                                    </controlToMonitor>
                                </ContextHelpClientControl>
                            </children>
                        </FixedChildrenListControl>
                    </children>
                </InOutMovingControl>
                <InOutMovingControl time="0.4">
                    <namedPositions>
                        <position x="0" y="15" name="in" />
                        <position x="0" y="0" name="out" />
                    </namedPositions>
                    <path templateName="SinPathTemplate" />
                    <messageReceiver name="Shop play panel mover" />
                    <children>
                        <InOutMovingControl time="0.4">
                            <path templateName="QuadraticPathTemplate" />
                            <position x="800" y="0" />
                            <namedPositions>
                                <position x="661" y="0" name="in" />
                                <position x="800" y="0" name="out" />
                            </namedPositions>
                            <messageReceiver name="Play panel mover" />
                            <children>
                                <StaticTextureControl>
                                    <position x="10" y="8" />
                                    <texture textureId="main_screen_play_panel" />
                                    <children>
                                        <ContextHelpClientControl>
                                            <times initial="0.1" reshow="0.0" />
                                            <toolTipToShow name="MainScreenPlayButton" />
                                            <controlToMonitor>
                                                <MessageButtonControl>
                                                    <position x="18" y="-3" />
                                                    <textures normalId="play_normal" activeId="play_active" pressedId="play_pressed" />
                                                    <message value="Main screen play button pressed" receiver="lua:MainScreenFunc" />
                                                </MessageButtonControl>
                                            </controlToMonitor>
                                        </ContextHelpClientControl>
                                    </children>
                                </StaticTextureControl>
                            </children>
                        </InOutMovingControl>
                    </children>
                </InOutMovingControl>
            </children>
        </FixedChildrenListControl>
    </Template>
    <Template templateName="BrighteningTemplate">
        <BrighteningControl />
    </Template>
    <Template templateName="FlashTemplate">
        <FixedChildrenListControl>
            <children>
                <ZGlassControl />
                <FlashControl border_texture="photo_border">
                    <message value="[message]" receiver="[receiver]" />
                    <stateVariable name="[name]" />
                </FlashControl>
            </children>
        </FixedChildrenListControl>
    </Template>
    <Template templateName="EmptyTemplate">
        <FixedChildrenListControl />
    </Template>
    <Template templateName="EnterEffectTemplate">
        <EnterEffectControl effectTime="0.7">
            <path>
                <key x="[x1]" y="[y1]" />
                <key x="[x2]" y="[y2]" />
                <key x="400" y="300" />
            </path>
            <scale>
                <key value="0.240" />
                <key value="0.59" />
                <key value="1.0" />
            </scale>
            <child>
                <LongLifeParentControl>
                    <storage receiverName="TankContentStorage" />
                </LongLifeParentControl>
            </child>
            <emptyTank>
                <RectangleFrameControl width="217" height="229">
                    <position x="-105" y="-150" />
                    <children>
                        <StaticTextureControl>
                            <texture textureId="choose_tank_panel" />
                            <position x="[xTexturePanel]" y="-82" />
                        </StaticTextureControl>
                        <StaticTextureControl>
                            <position x="[xTexturePanelShadow]" y="-40" />
                            <texture textureId="choose_tank_panel_shadow" />
                        </StaticTextureControl>
                        <StaticTextureControl>
                            <texture textureId="[texturePanel]" />
                            <position x="-1" y="-82" />
                        </StaticTextureControl>
                        <StaticTextureControl>
                            <position x="-4" y="63" />
                            <texture textureId="choose_tank_item_border_normal" />
                        </StaticTextureControl>
                    </children>
                </RectangleFrameControl>
            </emptyTank>
        </EnterEffectControl>
    </Template>
    <Template templateName="ChoiseRelaxOrTimedTemplate">
        <InOutMovingControl time="0.4">
            <position x="0" y="0" />
            <namedPositions>
                <position x="0" y="0" name="in" />
                <position x="0" y="500" name="out" />
            </namedPositions>
            <path templateName="DialogPathTemplate" />
            <messageReceiver name="choise relax or timed mover" />
            <children>
                <StaticTextureControl>
                    <texture textureId="mode_panel" />
                    <position x="203" y="144" />
                    <children>
                        <StaticTextControl>
                            <position x="197" y="310" />
                            <div fontName="Orange_15" resourceName="ChoiseRelaxOrTimed1" />
                        </StaticTextControl>
                        <StaticTextControl>
                            <position x="110" y="125" />
                            <div fontName="White_14" resourceName="ChoiseRelaxOrTimed2" />
                        </StaticTextControl>
                        <StaticTextControl>
                            <position x="290" y="125" />
                            <div fontName="White_14" resourceName="ChoiseRelaxOrTimed3" />
                        </StaticTextControl>
                        <StaticTextControl>
                            <position x="197" y="60" />
                            <div fontName="White_14" resourceName="ChoiseRelaxOrTimed4" />
                        </StaticTextControl>
                        <MessageButtonControl>
                            <position x="35" y="130" />
                            <textures normalId="mode_relax_normal" activeId="mode_relax_active" pressedId="mode_relax_pressed" />
                            <message value="Relaxed pressed" receiver="lua:ChoiseRelaxOrTimedFunc" />
                        </MessageButtonControl>
                        <MessageButtonControl>
                            <position x="216" y="130" />
                            <textures normalId="mode_times_normal" activeId="mode_timed_active" pressedId="mode_times_pressed" />
                            <message value="Timed pressed" receiver="lua:ChoiseRelaxOrTimedFunc" />
                        </MessageButtonControl>
                    </children>
                </StaticTextureControl>
                <KeyListeningControl>
                    <position x="0" y="0" />
                    <keys>
                        <key value="VK_RETURN" receiver="lua:ChoiseRelaxOrTimedFunc" message="Timed pressed" />
                        <key value="VK_ESCAPE" receiver="lua:ChoiseRelaxOrTimedFunc" message="Relaxed pressed" />
                    </keys>
                </KeyListeningControl>
            </children>
        </InOutMovingControl>
    </Template>
</FinalTemplateCollection>
