<?xml version="1.0" encoding="utf-8" ?>
<Layout intermediate="true">
    <BkgImage name="bkg" x="0" y="0" image="/interface/bkg_4_3_book.jpg"/>
    
    <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="../*/facebook_button" scale="1 1"/> 
        <Item path="../*/twitter_button" scale="1 1"/>
        <Item path="../*/winshare_button" scale="1 1"/>
        <Item path="../*/wiki" scale="1 1"/>

    </GPToolbarController>

    <Button name="close" x="0" y="0" width="1024" height="768" image_editor_transparent="1">
        <!-- <aClick cmd="game_layout"/> -->
        <Click handler="cur_layout" cmd="back" />
        </Button>

    <Widget x="0" y="0">
        <PaneController name="status_bar" x="0" y="12">
            <Widget name="main" x="0" y="0" xml="/status_bar/groups_status_bar.xml"/>
            <Widget name="quest" x="0" y="0" xml="/status_bar/quest_status_bar.xml"/>
            <Widget name="puzzle" x="0" y="0" xml="/status_bar/puzzle_status_bar.xml"/>
        </PaneController>

        <!--Button x="0" y="0" width="1024" height="80"/-->
    </Widget>
    
    <Image name="planet_slots" x="195" y="636" image="/interface/planet_slots.png"/>
    <Widget x="200" y="643">
        <Button name="back" x="2" y="0">
            <Image x="0" y="0" image="/toolbar/button_toolbar_2.png"/>
            <Image x="0" y="0" image="/toolbar/back.png"/>
            
            <Click handler="cur_layout" cmd="back" />
            
            <SelectorController>
                <Action type="0" btn="13" cmd="press"/>
                <Container class="GPOnceContainer"/>
                <Item path=".." scale="1 1" alias="btn_b" offset="-10 12"/>
            </SelectorController>
            
        </Button>
        <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>
    </Widget>
    
    <Widget x="714" y="643" show_if="$config.p4rc_enabled == 1">
        <Image x="2" y="0" image="/toolbar/button_toolbar_2.png"/>
        <P4RCButton name="p4rc" x="0" y="1" xml="p4rc_button.xml">
            <Click cmd="p4rc"/>
        </P4RCButton>

        <AnimController autoPlay="1">
            <ActionChain>
                <EfxColor duration="0" to="00FFFFFF" />    
                <EfxWait delay="0.75"/>
                <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>
    </Widget>
    
    <Widget x="-20" y="38">
        <Image name="game_background" x="-9" y="0" image="book_scheme.png"/>
        <Image name="paper" x="278" y="70" image="paper_for_new_element.png"/>
        
<!--         <Image name="rays" x="180" y="-5" image="/interface/rays.png">

            <AnimController autoPlay="1" >
                <ActionChain>
                <EfxWait delay="0.5"/>
                    <ActionRepeat repeat="-1">
                        <EfxRotate from="0" to="3590" duration="1000"/>
                    </ActionRepeat>
                </ActionChain>
            </AnimController>
            
        </Image> -->
        

        <Image name="light" x="141" y="-196" image="/interface/rays_light.png">
        <AnimController autoPlay="1">
                <ActionChain>
                        <EfxColor duration="0.0" from="FFFFFFFF" to="00FFFFFF" />    
                </ActionChain>
            </AnimController>         
        </Image>

        <Widget name="groups" x="215" y="120" width="624" height="128"/>
        <Widget name="elements" x="214" y="253" width="624" height="96"/>

        <Text name="new_element" x="214" y="350" width="624" height="20" font="author" color="FFffba00" align="C" text="REACTION_RESULT_NEW_ELEMENT"/>
        <Text name="new_elements" x="214" y="350" width="624" height="20" font="author" color="FFffba00" align="C" text="REACTION_RESULT_NEW_ELEMENT_PLURAL"/>

        <Quote name="quote">
            <Widget name="quote_container" x="275" y="360" width="510" height="150">
                <Text name="quote_text" x="65" y="0" width="390" height="0" font="font" color="FFFFFFFF" align="NWs"/>
                <Text name="quote_author" x="65" y="15" width="390" height="0" font="author" color="FFFFFFFF" align="NEs"/>
            </Widget>
        </Quote>

    </Widget>

    <Widget name="share_container" x="299" y="550" width="413" height="64">
        <Button name="facebook_button" image="/interface/button_facebook.png" anchor="NW" show_if="$config.social_net_config_hidden != 1" create_if="$device.hasFacebookSupport == true">
            <Click cmd="share" param="facebook" handler="cur_layout"/>
        </Button>
        <Button name="twitter_button" image="/interface/button_twitter.png" anchor="NW" show_if="$config.social_net_config_hidden != 1" create_if="$device.hasTwitterSupport == true">
            <Click cmd="share" param="twitter" handler="cur_layout"/>
        </Button>
        <ReactionResultPromoWidget x="64" y="0" replace_button_with_name="twitter_button">
            <Image name="promo_image" content_mode="AspectFit" width="64" height="64" />
        </ReactionResultPromoWidget>
        <Button name="winshare_button" image="/interface/button_windows8.png" anchor="NW" show_if="$config.social_net_config_hidden != 1 * $device.getPlatform == WIN8">
            <Click cmd="share" param="ms_share" handler="cur_layout"/>
        </Button>
        <Button name="wiki" image="/interface/button_wikipedia.png" anchor="NE" show_if="$config.social_net_config_hidden != 1">
            <Click cmd="wiki" handler="cur_layout"/>
        </Button>
    </Widget>

    <aButton name="next_quote" x="481" y="545" image="/interface/arrow_r.png" debug="1">
        <Click cmd="reaction_result_next_quote" />
      <Text name="cur_quote_mode" text="random" x="0" y="20" align="W" font="author" color="FFFFFFFF" debug="1"/>
    </aButton>

    <Properties>
        <Property key="particleSystemName">elements/win8_new_element.ps</Property>
    </Properties>

</Layout>
