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

    <Image name="status_bar_bkg" x="0" y="12" image="/interface/up_board_2.png"/>
    <Text name="achi_percent" x="208" y="5" width="600" height="50" font="font" text="" align="C"/>

    <GPSharedActions>
        <Action type="0" btn="12" cmd="press"/>
    </GPSharedActions>

    <GPToolbarController>
        <Action type="0" btn="2" cmd="left"/>
        <Action type="0" btn="3" cmd="right"/>
        <Action type="0" btn="12" cmd="press"/>

        <Container class="GPButtonsContainer"/>

        <Item path="../back" scale="1 1" cID="def_circle"/>
        <Item path="../reset" scale="1 1" cID="def_circle"/>
        <Item path="../advertising" scale="1 1" cID="def_circle"/>
        <Item path="../game_center" scale="1 1" cID="def_circle"/>
    </GPToolbarController>

    <SelectorController>
        <Action type="1" axis="0" use_val="1" val="-0.75" cmd="left"/>
        <Action type="1" axis="0" use_val="1" val="0.75" cmd="right"/>
        <Action type="1" axis="1" use_val="1" val="-0.75" cmd="up"/>
        <Action type="1" axis="1" use_val="1" val="0.75" cmd="down"/>
        <Action type="0" btn="12" cmd="press"/>

        <Container class="GPGridContainer"/>

        <Item path="../*/a701312/icon" scale="2 1.5"/>
        <Item path="../*/a701322/icon" scale="2 1.5"/>
        <Item path="../*/a701332/icon" scale="2 1.5"/>
        <Item path="../*/a701302/icon" scale="2 1.5"/>
        <Item path="../*/a701292/icon" scale="2 1.5"/>
        <Item path="../*/a699252/icon" scale="2 1.5"/>
        <Item path="../*/a701342/icon" scale="2 1.5"/>
        <Item path="../*/a701352/icon" scale="2 1.5"/>
        <Item path="../*/a701362/icon" scale="2 1.5"/>
        <Item path="../*/a701372/icon" scale="2 1.5"/>
        <Item path="../*/a701382/icon" scale="2 1.5"/>
        <Item path="../*/a701392/icon" scale="2 1.5"/>
        <Item path="../*/a701402/icon" scale="2 1.5"/>
        <Item path="../*/a701412/icon" scale="2 1.5"/>
        <Item path="../*/a701422/icon" scale="2 1.5"/>
        <Item path="../*/a701432/icon" scale="2 1.5"/>
        <Item path="../*/a701442/icon" scale="2 1.5"/>
        <!--
        <Item path="../*/a610000/icon" scale="2 1.5"/>
        <Item path="../*/a605982/icon" scale="2 1.5"/>
        <Item path="../*/a605992/icon" scale="2 1.5"/>
        <Item path="../*/a740512/icon" scale="2 1.5"/>
        <Item path="../*/a844452/icon" scale="2 1.5"/>
        <Item path="../*/a605942/icon" scale="2 1.5"/>
        <Item path="../*/a610001/icon" scale="2 1.5"/>
    -->
</SelectorController>

<Button name="back" x="202" y="643">
    <Image x="0" y="0" image="/toolbar/button_toolbar_2.png"/>
    <Image x="0" y="0" image="/toolbar/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>

    <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="reset" x="330" y="643">
    <Image x="0" y="0" image="/toolbar/button_toolbar_2.png"/>
    <Image x="0" y="0" image="/toolbar/reset.png"/>
    <Click cmd="reset" param="reset_achi" handler="cur_layout"/>

    <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>

    <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="game_center" x="458" y="643" create_if="$device.hasSystemAchievementsScreen == true">
    <Image x="0" y="0" image="/toolbar/button_toolbar_2.png"/>
    <Image x="0" y="0" image="/toolbar/game_center.png" />
    <Click cmd="goto_game_center" param="goto_game_center" handler="cur_layout"/>

    <AnimController autoPlay="1">
        <ActionChain>
            <EfxColor duration="0" to="00FFFFFF" />
            <EfxWait delay="0.6"/>
            <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>

</Button>

<Button name="advertising" x="714" y="643" create_if="$config.ad_enabled == 1 * $config.ad_button_enabled == 1" show_if="$device.hasNeededAdsAvail == true">
    <Image x="0" y="0" image="/toolbar/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>

<AnimController autoPlay="1">
    <ActionChain>
        <EfxPlaySound sound="acheivement_screen_transition"/>
        <EfxSendEvent event="play_menu_left_page_loaded"/>
        <EfxSendCmd handler="anim_ep_but" cmd="play"/>
        <EfxSendCmd handler="anim_qu_but" cmd="play"/>
        <EfxSendCmd handler="anim_pu_but" cmd="play"/>
        <EfxSendCmd handler="anim_ar_but" cmd="play"/>
        <EfxSendCmd handler="anim_mg_but" cmd="play"/>
    </ActionChain>
</AnimController>

<Widget name="left" x="147" y="86">
    <Widget name="left_col1" x="0" y="0" xml="item.xml" width="225" height="500">
        <Button name="a701312" x="0" y="0" xml="item.xml"/>
        <Button name="a701322" x="0" y="85" xml="item.xml"/>
        <Button name="a701332" x="0" y="170" xml="item.xml"/>
        <Button name="a701382" x="0" y="255" xml="item.xml"/>
        <Button name="a701392" x="0" y="340" xml="item.xml"/>
    </Widget>

    <Widget name="left_col2" x="230" y="0" xml="item.xml" width="225" height="500">
    </Widget>
</Widget>


<Widget name="right" x="620" y="86">
    <Widget name="right_col1" x="0" y="0" width="225" height="500">
        <Button name="a701402" x="0" y="0" xml="item.xml"/>
        <Button name="a701422" x="0" y="85" xml="item.xml"/>
        <Button name="a701432" x="0" y="170" xml="item.xml"/>
        <Button name="a701442" x="0" y="255" xml="item.xml"/>
        <Button name="a610000" x="0" y="340" xml="item.xml"/>
    </Widget>
    <Widget name="right_col2" x="230" y="0" xml="item.xml" width="225" height="500">
        <Button name="a605982" x="0" y="0" xml="item.xml"/>
        <Button name="a605992" x="0" y="85" xml="item.xml"/>
        <Button name="a740512" x="0" y="170" xml="item.xml"/>
        <Button name="a844452" x="0" y="255" xml="item.xml"/>
        <Button name="a605942" x="0" y="340" xml="item.xml"/>
        <Button name="a610001" x="0" y="425" xml="item.xml"/>
    </Widget>
</Widget>

</Layout>
