<?xml version="1.0" ?>
<FinalTemplateCollection>
    <Template templateName="OptionsDialogTemplate">
        <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="Options mover" />
            <children>
                <FixedChildrenListControl>
                    <position x="245" y="[y]" />
                    <children>
                        <StaticTextureControl>
                            <position x="7" y="230" />
                            <texture textureId="[options_panel_background]" />
                        </StaticTextureControl>
                        <RectangleFrameControl width="245" height="200">
                            <position x="5" y="230" />
                            <children>
                                <BackgroundFishesControl>
                                    <position x="0" y="0" />
                                    <scale value="0.7" />
                                    <fog z="-100" color="#3C348F" />
                                    <FishParams>
                                        <rect x="0" y="0" width="245" height="200" minDistX="20" maxAngleDegrees="20" />
                                        <speed value="20" />
                                    </FishParams>
                                    <minFishes>
                                        <Fish fishId="[Fish1]" />
                                        <Fish fishId="[Fish2]" />
                                    </minFishes>
                                    <maxFishes value="3" />
                                </BackgroundFishesControl>
                                <ExtendedWaterPlantControl fog="false">
                                    <position x="45" y="-8" />
                                    <shopItem tankItemId="options_panel_plant" />
                                    <icon textureId="options_panel_plant" />
                                    <ground groundLine="5" />
                                    <layers>
                                        <mesh textureId="options_panel_plant" x="0" y="0" maxShift="4.0" bottomStaticLine="5" meshWidth="1" meshHeight="3" />
                                    </layers>
                                </ExtendedWaterPlantControl>
                                <BubblesBackGround>
                                    <position x="0" y="0" />
                                    <description textureId="bubble_blue" emitters="10" width="250" height="250" minPause="2.0" maxPause="4.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>
                            </children>
                        </RectangleFrameControl>
                        <StaticTextureControl>
                            <position x="0" y="0" />
                            <texture textureId="options_panel" />
                            <children>
                                <RectangleFrameControl width="170" height="25">
                                    <position x="76" y="452" />
                                    <children>
                                        <BubblesBackGround>
                                            <position x="10" y="-38" />
                                            <description textureId="bubble_blue" emitters="10" width="150" height="100" minPause="3.0" maxPause="6.0" minSpeed="20.0" maxSpeed="60.0" amplitude="5.0" period="10.0" blendMode="alpha" />
                                            <scale>
                                                <range min="0.00" max="0.00" />
                                                <range min="0.05" 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.05" max="0.10" />
                                                <range min="0.00" max="0.00" />
                                            </scale>
                                        </BubblesBackGround>
                                    </children>
                                </RectangleFrameControl>
                                <StaticTextControl>
                                    <position x="158" y="471" />
                                    <div fontName="Orange_19">
                                        <line resourceName="Options" />
                                    </div>
                                </StaticTextControl>
                                <StaticTextureControl>
                                    <position x="7" y="229" />
                                    <texture textureId="options_panel_glass" />
                                </StaticTextureControl>
                                <MessageButtonControl>
                                    <position x="213" y="300" />
                                    <textures normalId="options_credits_normal" activeId="options_credits_active" pressedId="options_credits_pressed" />
                                    <message value="[creditsMessage]" receiver="[creditsReceiver]" />
                                </MessageButtonControl>
                                <StaticTextControl>
                                    <position x="26" y="225" />
                                    <div fontName="Brown_16" align="left">
                                        <line resourceName="Sound" />
                                    </div>
                                </StaticTextControl>
                                <SliderControl>
                                    <position x="24" y="186" />
                                    <textures backNormalId="slider_back_normal" backActiveId="slider_back_normal" frontNormalId="slider_front_normal" frontActiveId="slider_front_normal" buttonNormalId="slider_button_normal" buttonActiveId="slider_button_active" />
                                    <button minX="-3" maxX="242" range="15" defaultDragX="15" />
                                    <variable name="Sound Volume" defaultValue="1.0" />
                                </SliderControl>
                                <StaticTextControl>
                                    <position x="26" y="187" />
                                    <div fontName="Brown_16" align="left">
                                        <line resourceName="Music" />
                                    </div>
                                </StaticTextControl>
                                <SliderControl>
                                    <position x="24" y="148" />
                                    <textures backNormalId="slider_back_normal" backActiveId="slider_back_normal" frontNormalId="slider_front_normal" frontActiveId="slider_front_normal" buttonNormalId="slider_button_normal" buttonActiveId="slider_button_active" />
                                    <button minX="-3" maxX="242" range="15" defaultDragX="15" />
                                    <variable name="Music Volume" defaultValue="1.0" />
                                </SliderControl>
                                <CheckBoxControl>
                                    <position x="25" y="114" />
                                    <textures uncheckedNormalId="fs_unchecked_normal" uncheckedActiveId="fs_unchecked_active" checkedNormalId="fs_checked_normal" checkedActiveId="fs_checked_active" />
                                    <variable name="isFullScreen" mode="global-local" defaultValue="true" />
                                </CheckBoxControl>
                                <CheckBoxControl>
                                    <position x="25" y="80" />
                                    <textures uncheckedNormalId="st_unchecked_normal" uncheckedActiveId="st_unchecked_active" checkedNormalId="st_checked_normal" checkedActiveId="st_checked_active" />
                                    <variable name="Show shop tips" mode="local" defaultValue="true" />
                                </CheckBoxControl>
                                <CheckBoxControl>
                                    <position x="168" y="98" />
                                    <textures uncheckedNormalId="cc_unchecked_normal" uncheckedActiveId="cc_unchecked_active" checkedNormalId="cc_checked_normal" checkedActiveId="cc_checked_active" />
                                    <variable name="isCursorCustom" mode="global-local" defaultValue="true" />
                                </CheckBoxControl>
                                <CheckBoxControl>
                                    <position x="25" y="45" />
                                    <textures uncheckedNormalId="sh_unchecked_normal" uncheckedActiveId="sh_unchecked_active" checkedNormalId="sh_checked_normal" checkedActiveId="sh_checked_active" />
                                    <variable name="Show game field hints" mode="local" defaultValue="true" />
                                </CheckBoxControl>
                                <CheckBoxControl>
                                    <position x="168" y="57" />
                                    <textures uncheckedNormalId="rm_unchecked_normal" uncheckedActiveId="rm_unchecked_active" checkedNormalId="rm_checked_normal" checkedActiveId="rm_checked_active" />
                                    <variable name="Relaxed game mode" mode="local" defaultValue="false" />
                                </CheckBoxControl>
                                <MessageButtonControl>
                                    <position x="38" y="-27" />
                                    <textures normalId="ok_normal" activeId="ok_active" pressedId="ok_pressed" />
                                    <message value="Options ok" receiver="Options dispatcher" />
                                </MessageButtonControl>
                                <MessageButtonControl>
                                    <position x="182" y="-27" />
                                    <textures normalId="cancel_normal" activeId="cancel_active" pressedId="cancel_pressed" />
                                    <message value="Options cancel" receiver="Options dispatcher" />
                                </MessageButtonControl>
                                <KeyListeningControl>
                                    <position x="0" y="0" />
                                    <keys>
                                        <key value="VK_RETURN" receiver="Options dispatcher" message="Options ok" />
                                        <key value="VK_ESCAPE" receiver="Options dispatcher" message="Options cancel" />
                                    </keys>
                                </KeyListeningControl>
                            </children>
                        </StaticTextureControl>
                    </children>
                </FixedChildrenListControl>
            </children>
        </InOutMovingControl>
    </Template>
</FinalTemplateCollection>
