<?xml version="1.0" encoding="utf-8" ?>
<Layout>
    <Button name="back" x="0" y="15">
        <Image x="0" y="0" image="button_toolbar_2.png"/>
        <Image x="-2" y="-6" image="back.png"/>
        <Click cmd="layout" param="back">
            <Param value="crossfade2"/>
        </Click>

        <AnimController autoPlay="1">
            <ActionChain>
                <EfxVisible visible="0"/>
                <EfxWait delay="0.1"/>
                <ActionGroup>
                    <EfxPlaySound sound="tool_bar_btn_appear"/>
                    <EfxMove from_x="-100" from_y="15" to_x="0" to_y="15" duration="0.1"/>
                    <EfxVisible visible="1"/>
                </ActionGroup>
            </ActionChain>
        </AnimController>

        <Properties>
            <Property key="sfx_btn_hover">button_hover</Property>
        </Properties>
    </Button>

    <Button name="credits" x="10" y="202" image="/toolbar/button_toolbar_2.png">
        <Image x="0" y="0" image="/toolbar/credits.png"/>
        <Click cmd="layout" param="Credits">
            <Param value="crossfade"/>
        </Click>

        <AnimController autoPlay="1">
            <ActionChain>
                <EfxVisible visible="0"/>
                <EfxWait delay="0.3"/>
                <ActionGroup>
                    <EfxPlaySound sound="tool_bar_btn_appear"/>
                    <EfxMove from_x="-100" from_y="151" to_x="0" to_y="151" duration="0.1"/>
                    <EfxVisible visible="1"/>
                </ActionGroup>
            </ActionChain>
        </AnimController>

        <Properties>
            <Property key="sfx_btn_hover">button_hover</Property>
        </Properties>
    </Button>

    <DoodleUniverseController x="0" y="287">
        <Button name="universe" x="0" y="0" show_if="$config.social_net_show_doodle_universe = 1">
            <Image x="0" y="0" width="136" height="136" image="../main_menu/go_mobile.png"/>

            <Text name="text_universe" x="0" y="94" width="136" height="40" font="small" text="MAINMENU_SCR_UNIVERSE_BTN" align="C" color="64000000"/>
            <Text name="text_universe" x="0" y="92" width="136" height="40" font="small" text="MAINMENU_SCR_UNIVERSE_BTN" align="C" />

            <Click cmd="layout" param="Universe">
                <Param value="crossfade"/>
            </Click>

            <AnimController autoPlay="1">
                <ActionChain>
                    <EfxVisible visible="0"/>
                    <EfxWait delay="0.65"/>
                    <ActionGroup>
                        <EfxScaleXY duration="0.5" from_x="0.3" from_y="0.3" to_x="1" to_y="1" modifier="bounce" />
                        <EfxVisible visible="1"/>
                    </ActionGroup>
                </ActionChain>
            </AnimController>

            <Properties>
                <Property key="sfx_btn_hover">button_hover</Property>
            </Properties>
        </Button>
    </DoodleUniverseController>

    <Button name="advertising" x="0" y="422" create_if="$config.ad_enabled == 1 * $config.ad_button_enabled == 1" show_if="$device.hasNeededAdsAvail == true">
        <Image x="0" y="0" image="button_toolbar_2.png"/>
        <Image x="-1" y="2" image="advertisement.png"/>

        <AnimController autoPlay="1">
            <ActionChain>
                <EfxColor duration="0" to="00FFFFFF" />
                <EfxWait delay="1.2"/>
                <ActionGroup>
                    <EfxScaleXY duration="0.5" from_x="0.3" from_y="0.3" to_x="1" to_y="1" modifier="bounce" />
                    <EfxColor duration="0.5" from="00FFFFFF" to="FFFFFFFF" />
                </ActionGroup>
            </ActionChain>
        </AnimController>

        <Properties>
            <Property key="sfx_btn_hover">button_hover</Property>
        </Properties>
        <Event id="event_ad_action"/>
    </Button>
</Layout>

