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

    <Button name="back" 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" />
        <AnimController autoPlay="1">
            <ActionChain>
                <EfxColor duration="0" to="00FFFFFF" />
                <EfxWait delay="0.3"/>
                <ActionGroup>
                    <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="advertising" x="330" 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>

    <Button name="restore" x="714" y="17" create_if="$device.getGameType != PAID * ($device.getPlatform != WIN8 | $config.restore_btn_enabled == 1)">
        <Image x="0" y="0" image="button_toolbar_2.png"/>
        <Image x="0" y="0" image="restore.png"/>
        <Click cmd="restore_inapps"/>
        <AnimController autoPlay="1">
            <ActionChain>
                <EfxColor duration="0" to="00FFFFFF" />
                <EfxWait delay="0.45"/>
                <ActionGroup>
                    <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>

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

</Layout>
