<?xml version="1.0" encoding="utf-8" ?>
<Layout>
    <Image name="planet_slots" x="195" y="10" image="/interface/planet_slots.png"/>

    <Button name="back_main" x="202" y="17">
        <Image x="0" y="0" image="button_toolbar_2.png"/>
        <Image x="0" y="0" image="back.png"/>
        <Click cmd="layout" param="back">
            <Param value="crossfade"/>
        </Click>

        <AnimController autoPlay="1">
            <ActionChain>
                <EfxColor duration="0" to="00FFFFFF" />
                <EfxWait delay="0.3"/>
                <ActionGroup>
                    <EfxPlaySound sound="tool_bar_btn_appear"/>
                    <EfxScaleXY duration="0.3" from_x="0.3" from_y="0.3" to_x="1" to_y="1" modifier="bounce" />
                    <EfxColor duration="0.3" from="00FFFFFF" to="FFFFFFFF" />
                </ActionGroup>
            </ActionChain>
        </AnimController>
        <Properties>
            <Property key="sfx_btn_hover">button_hover</Property>
        </Properties>

        <SelectorController>
            <Action type="0" btn="13" cmd="press"/>
            <Container class="GPOnceContainer"/>
            <Item path=".." scale="1 1" alias="btn_b" offset="-12 10"/>
        </SelectorController>
    </Button>

    <Button name="shopmoney" x="330" y="17" create_if="$device.hasInAppSupport == true">
        <Image x="0" y="0" image="button_toolbar_2.png"/>
        <Image name="button" x="0" y="0" image="/toolbar/shop_money.png"/>
        <Click cmd="layout" param="ShopMoney">
            <Param value="crossfade"/>
        </Click>

        <AnimController autoPlay="1">
            <ActionChain>
                <EfxColor duration="0" to="00FFFFFF" />
                <EfxWait delay="0.45"/>
                <ActionGroup>
                    <EfxPlaySound sound="tool_bar_btn_appear"/>
                    <EfxScaleXY duration="0.3" from_x="0.3" from_y="0.3" to_x="1" to_y="1" modifier="bounce" />
                    <EfxColor duration="0.3" from="00FFFFFF" to="FFFFFFFF" />
                </ActionGroup>
            </ActionChain>
        </AnimController>
        <Properties>
            <Property key="sfx_btn_hover">button_hover</Property>
        </Properties>

        <SelectorController>
            <Action type="0" btn="14" cmd="press"/>
            <Container class="GPOnceContainer"/>
            <Item path=".." scale="1 1" alias="btn_x" offset="-12 10"/>
        </SelectorController>
    </Button>

<!--     <Button name="tapjoy" x="584" y="17" show_if="$config.shop_tapjoy_button == 1">
        <Image x="0" y="0" image="button_toolbar_2.png"/>
        <Image x="22" y="34" image="/interface/energy_infinity_big.png" />
        <Text name="free" x="26" y="60" width="60" height="25" lineHeight="20" font="font" align="C" text="Free"/>

        <AnimController autoPlay="1">
            <ActionChain>
                <EfxColor duration="0" to="00FFFFFF" />
                <EfxWait delay="0.5"/>
                <ActionGroup>
                    <EfxPlaySound sound="tool_bar_btn_appear"/>
                    <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="shop_tapjoy_button"/>
    </Button> -->

    <Button name="advertising" x="714" y="17" 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" width="109" height="109" image="/toolbar/advertisement.png"/>

        <AnimController autoPlay="1">
            <ActionChain>
                <EfxColor duration="0" to="00FFFFFF" />
                <EfxWait delay="1.2"/>
                <ActionGroup>
                    <EfxPlaySound sound="tool_bar_btn_appear"/>
                    <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>
