<?xml version="1.0" encoding="windows-1251" ?>
<FinalTemplateCollection>
    <Template templateName="BetaExit">
        <div>
            <line>Thanks for beta-testing the game!</line>
            <line>You will now be redirected</line>
            <line>to the game&apos;s web site.</line>
        </div>
    </Template>
    <Template templateName="MainScreenTemplate">
        <FixedChildrenListControl>
            <children>
                <ContextHelpServerControl>
                    <children>
                        <KeyListeningControl>
                            <keys>
                                <key value="VK_RETURN" receiver="lua:MainScreenFunc" message="Main screen play button pressed" />
                                <key value="VK_ESCAPE" receiver="lua:MainScreenFunc" message="Main screen escape pressed" />
                            </keys>
                        </KeyListeningControl>
                        <IfControl variable="global:temp:dev">
                            <children>
                                <KeyListeningControl>
                                    <keys>
                                        <key value="VK_F1" receiver="lua:MainScreenFunc" message="reload templates" />
                                    </keys>
                                </KeyListeningControl>
                            </children>
                        </IfControl>
                        <LongLifeParentControl>
                            <storage receiverName="TankContentStorage" />
                        </LongLifeParentControl>
                        <MoneyEffectControl>
                            <messageReceiver name="Money effect" />
                        </MoneyEffectControl>
                        <InactivityCheckingControl>
                            <delay value="10.0" />
                            <luaFunction name="MoveMainScreenPanelsOnInactive" paramInactivate="out" paramActivate="in" />
                        </InactivityCheckingControl>
                        <TemplateInstanceControl>
                            <base templateName="EyeButtonTemplate" />
                        </TemplateInstanceControl>
                        <InOutMovingControl time="0.4">
                            <position x="8" y="-80" />
                            <namedPositions>
                                <position x="8" y="0" name="in" />
                                <position x="8" y="-80" name="out" />
                            </namedPositions>
                            <path templateName="MainPanelPathTemplate" />
                            <messageReceiver name="Main screen shop_thoose panel mover" />
                            <children>
                                <StaticTextureControl>
                                    <position x="0" y="8" />
                                    <texture textureId="main_screen_three_button_panel" />
                                    <children>
                                        <ContextHelpClientControl>
                                            <times initial="0.1" reshow="0.0" />
                                            <toolTipToShow name="PhotoAlbumButton" />
                                            <controlToMonitor>
                                                <MessageButtonControl>
                                                    <position x="27" y="7" />
                                                    <textures normalId="photoalbum_normal" activeId="photoalbum_active" pressedId="photoalbum_pressed" />
                                                    <message value="Main screen photoalbum button pressed" receiver="lua:MainScreenFunc" />
                                                </MessageButtonControl>
                                            </controlToMonitor>
                                        </ContextHelpClientControl>
                                        <ContextHelpClientControl>
                                            <times initial="0.1" reshow="0.0" />
                                            <toolTipToShow name="MainScreenChooseTankButton" />
                                            <controlToMonitor>
                                                <MessageButtonControl>
                                                    <position x="124" y="7" />
                                                    <textures normalId="choose_tank_normal" activeId="choose_tank_active" pressedId="choose_tank_pressed" />
                                                    <message value="Main screen choose tank button pressed" receiver="lua:MainScreenFunc" />
                                                </MessageButtonControl>
                                            </controlToMonitor>
                                        </ContextHelpClientControl>
                                        <ContextHelpClientControl>
                                            <times initial="0.1" reshow="0.0" />
                                            <toolTipToShow name="MainScreenShopButton" />
                                            <controlToMonitor>
                                                <MessageButtonControl>
                                                    <position x="235" y="-2" />
                                                    <textures normalId="shop_normal" activeId="shop_active" pressedId="shop_pressed" />
                                                    <message value="Main screen shop button pressed" receiver="lua:MainScreenFunc" />
                                                </MessageButtonControl>
                                            </controlToMonitor>
                                        </ContextHelpClientControl>
                                    </children>
                                </StaticTextureControl>
                            </children>
                        </InOutMovingControl>
                        <LongLifeParentControl>
                            <storage receiverName="PlayPanelControlStorage" />
                        </LongLifeParentControl>
                        <LongLifeParentControl>
                            <storage receiverName="MainScreenOrShopTankCupStorage" />
                        </LongLifeParentControl>
                        <LongLifeParentControl>
                            <storage receiverName="ShopTipsControlStorage" />
                        </LongLifeParentControl>
                    </children>
                </ContextHelpServerControl>
                <ModalDialogControl>
                    <messageReceiver name="Money edit dialog" />
                    <times starting="0.3" hiding="0.3" />
                </ModalDialogControl>
                <ModalDialogControl>
                    <messageReceiver name="Main screen modal dialog" />
                    <times starting="0.3" hiding="0.3" />
                </ModalDialogControl>
                <ModalDialogControl maxBlackAlpha="0">
                    <messageReceiver name="Main screen modal dialog unshaded" />
                    <times starting="0.3" hiding="0.3" />
                </ModalDialogControl>
                <MutableChildrenListControl>
                    <messageReceiver name="Mutable Help Control" />
                </MutableChildrenListControl>
            </children>
        </FixedChildrenListControl>
    </Template>
    <Template templateName="RestartOrContinueDialogTemplate">
        <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="RestartOrContinueDialog mover" />
            <children>
                <StaticTextureControl>
                    <position x="266" y="144" />
                    <texture textureId="restart_continue_panel" />
                    <children>
                        <ZGlassControl />
                        <KeyListeningControl>
                            <keys>
                                <key value="VK_RETURN" receiver="lua:GameFieldFunc" message="Restart button pressed" />
                                <key value="VK_ESCAPE" receiver="lua:GameFieldFunc" message="Continue button pressed" />
                            </keys>
                        </KeyListeningControl>
                        <StaticTextControl>
                            <position x="136" y="263" />
                            <div fontName="White_16" resourceName="ContinueOrRestartText" />
                        </StaticTextControl>
                        <MessageButtonControl>
                            <position x="68" y="81" />
                            <textures normalId="continue_normal" activeId="continue_active" pressedId="continue_pressed" />
                            <message value="Continue button pressed" receiver="lua:GameFieldFunc" />
                        </MessageButtonControl>
                        <MessageButtonControl>
                            <position x="68" y="31" />
                            <textures normalId="restart_normal" activeId="restart_active" pressedId="restart_pressed" />
                            <message value="Restart button pressed" receiver="lua:GameFieldFunc" />
                        </MessageButtonControl>
                    </children>
                </StaticTextureControl>
            </children>
        </InOutMovingControl>
    </Template>
    <Template templateName="PreviewChildWithEmail">
        <FixedChildrenListControl>
            <children>
                <ContextHelpClientControl>
                    <times initial="0.1" reshow="0.0" />
                    <toolTipToShow name="DeletePhoto" />
                    <controlToMonitor>
                        <MessageButtonControl>
                            <position x="420" y="11" />
                            <textures normalId="photoalbum_delete_normal" activeId="photoalbum_delete_active" pressedId="photoalbum_delete_pressed" />
                            <message value="Main screen photoalbum delete button pressed" receiver="lua:MainScreenFunc" />
                        </MessageButtonControl>
                    </controlToMonitor>
                </ContextHelpClientControl>
                <ContextHelpClientControl>
                    <times initial="0.1" reshow="0.0" />
                    <toolTipToShow name="SendPhoto" />
                    <controlToMonitor>
                        <MessageButtonControl>
                            <position x="57" y="12" />
                            <textures normalId="photoalbum_send_normal" activeId="photoalbum_send_active" pressedId="photoalbum_send_pressed" />
                            <message value="Main screen photoalbum send button pressed" receiver="lua:MainScreenFunc" />
                        </MessageButtonControl>
                    </controlToMonitor>
                </ContextHelpClientControl>
                <ContextHelpClientControl>
                    <times initial="0.1" reshow="0.0" />
                    <toolTipToShow name="SetWallpaper" />
                    <controlToMonitor>
                        <MessageButtonControl>
                            <position x="205" y="12" />
                            <textures normalId="photoalbum_wallpaper_normal" activeId="photoalbum_wallpaper_active" pressedId="photoalbum_wallpaper_pressed" />
                            <message value="Main screen photoalbum wallpaper button pressed" receiver="lua:MainScreenFunc" />
                        </MessageButtonControl>
                    </controlToMonitor>
                </ContextHelpClientControl>
            </children>
        </FixedChildrenListControl>
    </Template>
    <Template templateName="PreviewChildWithoutEmail">
        <FixedChildrenListControl>
            <children>
                <ContextHelpClientControl>
                    <times initial="0.1" reshow="0.0" />
                    <toolTipToShow name="DeletePhoto" />
                    <controlToMonitor>
                        <MessageButtonControl>
                            <position x="420" y="11" />
                            <textures normalId="photoalbum_delete_normal" activeId="photoalbum_delete_active" pressedId="photoalbum_delete_pressed" />
                            <message value="Main screen photoalbum delete button pressed" receiver="lua:MainScreenFunc" />
                        </MessageButtonControl>
                    </controlToMonitor>
                </ContextHelpClientControl>
                <ContextHelpClientControl>
                    <times initial="0.1" reshow="0.0" />
                    <toolTipToShow name="SetWallpaper" />
                    <controlToMonitor>
                        <MessageButtonControl>
                            <position x="60" y="12" />
                            <textures normalId="photoalbum_wallpaper_normal" activeId="photoalbum_wallpaper_active" pressedId="photoalbum_wallpaper_pressed" />
                            <message value="Main screen photoalbum wallpaper button pressed" receiver="lua:MainScreenFunc" />
                        </MessageButtonControl>
                    </controlToMonitor>
                </ContextHelpClientControl>
            </children>
        </FixedChildrenListControl>
    </Template>
    <Template templateName="PhotoAlbumTemplate">
        <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="Photo album mover" />
            <children>
                <KeyListeningControl>
                    <keys>
                        <key value="VK_ESCAPE" receiver="lua:MainScreenFunc" message="Main screen photoalbum exit button pressed" />
                    </keys>
                </KeyListeningControl>
                <VariableContextHelpControl>
                    <messageReceiver name="PhotoAlbumContext" />
                    <times initial="0.1" reshow="0.0" />
                    <controlToMonitor>
                        <PhotoAlbumControl speed="2.7" acceleration="3.0" sliderBarScroll="PA slide value">
                            <position x="109" y="65" />
                            <texture textureId="photoalbum_panel" />
                            <messageReceiver name="Photo album scroll" />
                            <sheetsize width="3" height="2" top="65" bottom="87" left="64" right="66" scrollItems="2" />
                            <frameTextures normalId="photoalbum_frame" emptyId="photoalbum_empty" shadowId="photoalbum_frame_shadow" x="-3" y="-11" />
                            <magnifier textureId="photoalbum_magnifier" x="53" y="63" />
                            <thumbRect x="3" y="36" width="133" height="100" />
                            <viewArea x="55" y="60" width="460" height="340">
                                <namesPos x="57" y="22" />
                                <trash x="109" y="6" normalId="pa_trash_normal" activeId="pa_trash_active" />
                            </viewArea>
                            <children>
                                <BubblesBackGround>
                                    <position x="107" y="425" />
                                    <description textureId="bubble_blue" emitters="20" width="245" height="28" 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="238" y="450" />
                                    <div fontName="Orange_19" align="center">
                                        <line resourceName="PhotoAlbumTitle" />
                                    </div>
                                </StaticTextControl>
                                <StaticTextureControl>
                                    <position x="40" y="30" />
                                    <texture textureId="photoalbum_panel_shadow" />
                                </StaticTextureControl>
                                <SlideBarControl length="437" height="10" normal="tr_normal" active="tr_active" tr_line_side="pa_tr_line_side" tr_line_center="pa_tr_line_center" variable="PA slide value">
                                    <position x="70" y="52" />
                                    <messageReceiver name="Photo album scroll bar" />
                                </SlideBarControl>
                                <MinScrollButtonControl>
                                    <position x="6" 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="Photo album scroll min button" />
                                    <flashing period="1.0" maxAlpha="0.7" />
                                    <sounds activeId="button_active" pressedId="none" />
                                </MinScrollButtonControl>
                                <MaxScrollButtonControl>
                                    <position x="536" y="208" />
                                    <textures normalId="photoalbum_right_arrow_normal" activeId="photoalbum_right_arrow_active" pressedId="photoalbum_right_arrow_pressed" disabledId="photoalbum_right_arrow_empty" />
                                    <messageReceiver name="Photo album 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="ClosePhoto" />
                                    <controlToMonitor>
                                        <MessageButtonControl>
                                            <position x="492" y="423" />
                                            <textures normalId="photoalbum_exit_normal" activeId="photoalbum_exit_active" pressedId="photoalbum_exit_pressed" />
                                            <message value="Main screen photoalbum exit button pressed" receiver="lua:MainScreenFunc" />
                                        </MessageButtonControl>
                                    </controlToMonitor>
                                </ContextHelpClientControl>
                            </children>
                            <PreviewChild>
                                <VariableDrivenSwitchControl>
                                    <position x="0" y="0" />
                                    <variable name="temp:sendEmail" type="bool" scope="global" defaultValue="false" />
                                    <states>
                                        <state variableValue="true" templateName="PreviewChildWithEmail" />
                                        <state variableValue="false" templateName="PreviewChildWithoutEmail" />
                                    </states>
                                </VariableDrivenSwitchControl>
                            </PreviewChild>
                        </PhotoAlbumControl>
                    </controlToMonitor>
                </VariableContextHelpControl>
            </children>
        </InOutMovingControl>
    </Template>
    <Template templateName="PhotoPreviewSendTemplate">
        <InOutMovingControl time="0.4">
            <position x="249" y="500" />
            <namedPositions>
                <position x="249" y="0" name="in" />
                <position x="249" y="500" name="out" />
            </namedPositions>
            <path templateName="DialogPathTemplate" />
            <messageReceiver name="Photo preview send mover" />
            <children>
                <MinScrollButtonControl>
                    <position x="146" y="145" />
                    <textures normalId="photoalbum_arrow_up_normal" activeId="photoalbum_arrow_up_active" pressedId="photoalbum_arrow_up_pressed" disabledId="photoalbum_arrow_up_disabled" />
                    <messageReceiver name="Photo preview send text min button" />
                    <flashing period="1.0" maxAlpha="0.7" />
                </MinScrollButtonControl>
                <MaxScrollButtonControl>
                    <position x="146" y="115" />
                    <textures normalId="photoalbum_arrow_down_normal" activeId="photoalbum_arrow_down_active" pressedId="photoalbum_arrow_down_pressed" disabledId="photoalbum_arrow_down_disabled" />
                    <messageReceiver name="Photo preview send text max button" />
                    <flashing period="1.0" maxAlpha="0.7" />
                </MaxScrollButtonControl>
                <StaticTextureControl>
                    <position x="0" y="114" />
                    <texture textureId="send_email_panel" />
                    <children>
                        <KeyListeningControl>
                            <position x="0" y="0" />
                            <keys>
                                <key value="VK_ESCAPE" receiver="lua:MainScreenFunc" message="Photo send dialog cancel button pressed" />
                            </keys>
                        </KeyListeningControl>
                        <BubblesBackGround>
                            <position x="75" y="367" />
                            <description textureId="bubble_blue" emitters="20" width="150" height="26" 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="151" y="393" />
                            <div fontName="Orange_19" align="center">
                                <line resourceName="LetterTitle" />
                            </div>
                        </StaticTextControl>
                        <StaticTextControl>
                            <position x="22" y="362" />
                            <div fontName="Brown_16" align="left">
                                <line resourceName="LetterSender" />
                            </div>
                        </StaticTextControl>
                        <EditControl align="left">
                            <position x="25" y="310" />
                            <messageReceiver name="Photo preview send sender" />
                            <nextReceiver name="Photo preview send name" />
                            <width value="250" />
                            <font name="White_14" />
                            <cursor width="2" color="#FF6633" />
                            <disallowedSymbols template="true" textFormat="true" dos="false" />
                        </EditControl>
                        <StaticTextControl>
                            <position x="22" y="296" />
                            <div fontName="Brown_16" align="left">
                                <line resourceName="LetterReceiver" />
                            </div>
                        </StaticTextControl>
                        <EditControl align="left">
                            <position x="25" y="243" />
                            <messageReceiver name="Photo preview send name" />
                            <nextReceiver name="Photo preview send email" />
                            <width value="250" />
                            <font name="White_14" />
                            <cursor width="2" color="#FF6633" />
                            <disallowedSymbols template="true" textFormat="true" dos="false" />
                        </EditControl>
                        <StaticTextControl>
                            <position x="22" y="232" />
                            <div fontName="Brown_16" align="left">
                                <line resourceName="LetterTo" />
                            </div>
                        </StaticTextControl>
                        <EditControl align="left">
                            <position x="25" y="180" />
                            <messageReceiver name="Photo preview send email" />
                            <nextReceiver name="Photo preview send text" />
                            <width value="250" />
                            <font name="White_14" />
                            <cursor width="2" color="#FF6633" />
                            <disallowedSymbols template="true" textFormat="true" dos="false" />
                        </EditControl>
                        <StaticTextControl>
                            <position x="22" y="170" />
                            <div fontName="Brown_16" align="left">
                                <line resourceName="LetterText" />
                            </div>
                        </StaticTextControl>
                        <MultilineEditControl align="left" limit="140">
                            <position x="153" y="125" />
                            <messageReceiver name="Photo preview send text" />
                            <nextReceiver name="Photo preview send sender" />
                            <width value="250" />
                            <height value="83" />
                            <font name="White_14" />
                            <cursor width="2" color="#FF6633" />
                            <disallowedSymbols template="true" textFormat="true" dos="false" />
                        </MultilineEditControl>
                        <StaticTextureControl>
                            <position x="16" y="53" />
                            <texture textureId="send_email_panel_shadow" />
                        </StaticTextureControl>
                        <MessageButtonControl>
                            <position x="42" y="10" />
                            <textures normalId="email_send_normal" activeId="email_send_active" pressedId="email_send_pressed" />
                            <message value="Photo send dialog ok button pressed" receiver="lua:MainScreenFunc" />
                        </MessageButtonControl>
                        <MessageButtonControl>
                            <position x="166" y="10" />
                            <textures normalId="email_cancel_normal" activeId="email_cancel_active" pressedId="email_cancel_pressed" />
                            <message value="Photo send dialog cancel button pressed" receiver="lua:MainScreenFunc" />
                        </MessageButtonControl>
                    </children>
                </StaticTextureControl>
            </children>
        </InOutMovingControl>
    </Template>
</FinalTemplateCollection>
