<?xml version="1.0" ?>
<FinalTemplateCollection>
    <Template templateName="TutorialTextTemplate">
        <StaticTextControl>
            <position x="0" y="0" />
            <div fontName="White_14" resourceName="[resourceName]" />
        </StaticTextControl>
    </Template>
    <Template templateName="OkDialogTemplate">
        <StaticTextureControl>
            <position x="253" y="[dialogY]" />
            <texture textureId="one_button_panel" />
            <children>
                <StaticTextControl valign="true">
                    <position x="147" y="100" />
                    <div fontName="White_Brown_16" resourceName="[resourceName]" />
                </StaticTextControl>
                <KeyListeningControl>
                    <keys>
                        <key value="VK_RETURN" receiver="[dialogMessageReceiver]" message="[dialogMessage]" />
                        <key value="VK_ESCAPE" receiver="[dialogMessageReceiver]" message="[dialogMessage]" />
                    </keys>
                </KeyListeningControl>
                <MessageButtonControl>
                    <position x="103" y="-25" />
                    <textures normalId="ok_normal" activeId="ok_active" pressedId="ok_pressed" />
                    <message value="[dialogMessage]" receiver="[dialogMessageReceiver]" />
                </MessageButtonControl>
            </children>
        </StaticTextureControl>
    </Template>
    <Template templateName="YesNoDialogTemplate">
        <StaticTextureControl>
            <position x="253" y="160" />
            <texture textureId="two_buttons_panel" />
            <children>
                <StaticTextControl valign="true">
                    <position x="147" y="100" />
                    <div fontName="White_Brown_16" resourceName="[resourceName]" />
                </StaticTextControl>
                <KeyListeningControl>
                    <keys>
                        <key value="VK_RETURN" receiver="[dialogMessageReceiver]" message="[yesMessage]" />
                        <key value="VK_ESCAPE" receiver="[dialogMessageReceiver]" message="[noMessage]" />
                    </keys>
                </KeyListeningControl>
                <MessageButtonControl>
                    <position x="32" y="-25" />
                    <textures normalId="yes_normal" activeId="yes_active" pressedId="yes_pressed" />
                    <message value="[yesMessage]" receiver="[dialogMessageReceiver]" />
                </MessageButtonControl>
                <MessageButtonControl>
                    <position x="172" y="-25" />
                    <textures normalId="no_normal" activeId="no_active" pressedId="no_pressed" />
                    <message value="[noMessage]" receiver="[dialogMessageReceiver]" />
                </MessageButtonControl>
            </children>
        </StaticTextureControl>
    </Template>
    <Template templateName="TwoButtonsEditDialogTemplate">
        <InOutMovingControl time="0.4">
            <position x="0" y="500" />
            <namedPositions>
                <position x="0" y="0" name="in" />
                <position x="0" y="500" name="out" />
            </namedPositions>
            <path templateName="DialogPathTemplate" />
            <messageReceiver name="EditBoxDialogMover" />
            <children>
                <StaticTextureControl>
                    <position x="253" y="230" />
                    <texture textureId="two_buttons_edit_panel" />
                    <children>
                        <StaticTextControl>
                            <position x="147" y="153" />
                            <div fontName="White_Brown_16" resourceName="[resourceName]" />
                        </StaticTextControl>
                        <FixedChildrenListControl>
                            <position x="147" y="84" />
                            <children>
                                <EditControl>
                                    <position x="0" y="1" />
                                    <messageReceiver name="[editName]" />
                                    <width value="[editWidth]" />
                                    <font name="White_15" />
                                    <cursor width="2" color="#FFFFFF" />
                                    <disallowedSymbols template="true" textFormat="true" dos="false" extra="@" />
                                </EditControl>
                            </children>
                        </FixedChildrenListControl>
                        <FixedChildrenListControl>
                            <position x="0" y="0" />
                            <children>
                                <KeyListeningControl>
                                    <position x="0" y="0" />
                                    <keys>
                                        <key value="VK_RETURN" receiver="[dialogMessageReceiver]" message="[okMessage]" />
                                        <key value="VK_ESCAPE" receiver="[dialogMessageReceiver]" message="[cancelMessage]" />
                                    </keys>
                                </KeyListeningControl>
                                <MessageButtonControl>
                                    <position x="32" y="-25" />
                                    <textures normalId="ok_normal" activeId="ok_active" pressedId="ok_pressed" />
                                    <message value="[okMessage]" receiver="[dialogMessageReceiver]" />
                                </MessageButtonControl>
                                <MessageButtonControl>
                                    <position x="172" y="-25" />
                                    <textures normalId="cancel_normal" activeId="cancel_active" pressedId="cancel_pressed" />
                                    <message value="[cancelMessage]" receiver="[dialogMessageReceiver]" />
                                </MessageButtonControl>
                            </children>
                        </FixedChildrenListControl>
                    </children>
                </StaticTextureControl>
            </children>
        </InOutMovingControl>
    </Template>
    <Template templateName="TwoButtonsWonCupTemplate">
        <FixedChildrenListControl>
            <KeyListeningControl>
                <keys>
                    <key value="VK_RETURN" receiver="lua:ShopFunc" message="Won cup panel stay in shop button pressed" />
                    <key value="VK_ESCAPE" receiver="lua:ShopFunc" message="Won cup panel stay in shop button pressed" />
                    <key value="VK_SPACE" receiver="lua:ShopFunc" message="Won cup panel stay in shop button pressed" />
                </keys>
            </KeyListeningControl>
            <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="Cup panel mover" />
                <children>
                    <StaticTextureControl>
                        <position x="194" y="87" />
                        <texture textureId="won_cup_two_buttons_panel" />
                        <children>
                            <FixedChildrenListControl>
                                <position x="10" y="50" />
                                <children>
                                    <StaticTextureControl>
                                        <position x="65" y="340" />
                                        <texture textureId="won_cup_congratulations" />
                                    </StaticTextureControl>
                                    <ShowEffectControl effect="CupRays">
                                        <position x="200" y="210" />
                                    </ShowEffectControl>
                                    <StaticTextControl>
                                        <position x="200" y="340" />
                                        <div fontName="White_16" resourceName="[headerResource]" />
                                    </StaticTextControl>
                                    <StaticTextureControl>
                                        <position x="115" y="95" />
                                        <texture textureId="[cupTextureId]" />
                                    </StaticTextureControl>
                                    <StaticTextControl>
                                        <position x="200" y="90" />
                                        <div fontName="White_16" resourceName="[textResource]" />
                                    </StaticTextControl>
                                </children>
                            </FixedChildrenListControl>
                            <MessageButtonControl>
                                <position x="88" y="-23" />
                                <textures normalId="won_cup_choose_tank_normal" activeId="won_cup_choose_tank_active" pressedId="won_cup_choose_tank_pressed" />
                                <message value="Won cup panel choose tank button pressed" receiver="lua:ShopFunc" />
                            </MessageButtonControl>
                            <MessageButtonControl>
                                <position x="238" y="-23" />
                                <textures normalId="won_cup_continue_normal" activeId="won_cup_continue_active" pressedId="won_cup_continue_pressed" />
                                <message value="Won cup panel stay in shop button pressed" receiver="lua:ShopFunc" />
                            </MessageButtonControl>
                        </children>
                    </StaticTextureControl>
                </children>
            </InOutMovingControl>
            <FireWorkControl width="200" heigth="300" minPause="1.0" maxPause="3.0">
                <position x="50" y="200" />
                <sound soundId="fireWork" />
            </FireWorkControl>
            <FireWorkControl width="200" heigth="300" minPause="1.0" maxPause="3.0">
                <position x="550" y="200" />
                <sound soundId="fireWork" />
            </FireWorkControl>
        </FixedChildrenListControl>
    </Template>
</FinalTemplateCollection>
