<?xml version="1.0" encoding="utf-8" ?>
<Layout x="214" y="175" width="595" height="417" animate="EfxPopup">
    <Image name="bkg" x="-50" y="-40" image="dialog.png"/>
    
    <SelectorController>
        <Action type="1" axis="0" val="-0.5" use_val="1" cmd="left"/>
        <Action type="1" axis="0" val="0.5" use_val="1" cmd="right"/>
        <Action type="1" axis="1" val="-0.5" use_val="1" cmd="up"/>
        <Action type="1" axis="1" val="0.5" use_val="1" cmd="down"/>
        <Action type="0" btn="8" cmd="press"/>
        
        <Container class="GPGraphContainer"/>
        
        <Item path="../*/facebook_button" scale="1 1" def="1" />
        <Item path="../*/twitter_button" scale="1 1" />
        <Item path="../*/googleplus_button" scale="1 1" />
        <Item path="../*/winshare_button" scale="1 1" />
        
    </SelectorController>

    <Widget x="61" y="85" name="icons">
    
        <Image name="icon" x="11" y="-30" image="/achievements/2x/lock_achievement.png"/>
        <Text name="caption" x="180" y="-20" width="300" height="50" text="Brilliant Inventor" font="medium" align="W" color="FFFFFFFF"/>
        <Text name="desc" x="180" y="40" width="300" height="100" text="blaka,jhsk ldjhgal skhglkaj sdga" font="font" align="W" color="FFFFFFFF"/>
        
        <AnimController autoPlay="0" handler="move_icon">
            <ActionChain>
                <ActionGroup>
                    <EfxMove duration="0.0" mode="fty" from_y="85" to_y="136"/>
                </ActionGroup>
            </ActionChain>
        </AnimController>
        
        <AnimController autoPlay="0" handler="move_back">
            <ActionChain>
                <ActionGroup>
                    <EfxMove duration="0.0" mode="fty" from_y="136" to_y="85"/>
                </ActionGroup>
            </ActionChain>
        </AnimController>        
        
    </Widget>

    <!--Widget name="message_field" x="280" y="130" width="320" height="110">
        <Text name="message" text="MESSAGEBOX_SHARE_ARTIFACT" x="0" y="0" width="320" height="110" font="font" align="C" color="FFFFFFFF" />
        <PriceTag name="price" x="0" y="120" width="260" height="20" font="font" align="C" color="FFFFFFFF" />
    </Widget-->

    <SocialSelector x="50" y="215" name="sharing" width="500" height="100">
    
        <GPPanel x="10" y="40">
            <GPPanelIcon x="0" y="0" alias="ls" auto_visible="0"/>
            <GPPanelIcon x="40" y="0" alias="btn_lb" auto_visible="0"/>
        </GPPanel>
    
        <Text name="message" text="MESSAGEBOX_SHARE_ACHIEVEMENT" x="0" y="0" width="520" height="30" font="author" align="N" color="FFFFFFFF" />
        <SocialCheck social_id="facebook" name="facebook_button" x="0" y="30" image="facebook_off.png" create_if="$device.hasFacebookSupport == true" show_if="$config.social_net_config_hidden != 1">
            <State name="OFF" image="facebook_off.png"/>
            <State name="ON" image="facebook_on.png"/>
            <Properties>
                <Property key="sfx_btn_hover">button_hover</Property>
            </Properties>
        </SocialCheck>

        <SocialCheck social_id="twitter" name="twitter_button" x="5" y="30" image="twitter_off.png" create_if="$device.hasTwitterSupport == true" show_if="$config.social_net_config_hidden != 1">
            <State name="OFF" x="0" y="0" image="twitter_off.png" visible="false"/>
            <State name="ON" x="0" y="0" image="twitter_on.png"/>
            <Properties>
                <Property key="sfx_btn_hover">button_hover</Property>
            </Properties>
        </SocialCheck>

        <SocialCheck social_id="ms_share" name="winshare_button" x="10" y="30" image="winshare_off.png" create_if="$device.getPlatform == WIN8" >
            <State name="OFF" x="0" y="0" image="winshare_off.png" visible="false"/>
            <State name="ON" x="0" y="0" image="winshare_on.png"/>
            <Properties>
                <Property key="sfx_btn_hover">button_hover</Property>
            </Properties>
        </SocialCheck>
    </SocialSelector>

    <Widget x="0" y="35">
        <Button name="left" x="85" y="256" image="/hint/button_small_green.png" scale="1.0">
            <Text name="left_text" x="43" y="16" width="120" height="48" font="font" align="C" text="MESSAGEBOX_YES" color="FFffffff" />
            <Properties>
                <Property key="sfx_btn_hover">button_hover</Property>
            </Properties>
            
            <SelectorController>
                <Action type="0" btn="12" cmd="press"/>
                <Container class="GPOnceContainer"/>
                <Item path=".." scale="1 1" alias="btn_a" offset="190 20"/>
            </SelectorController>
        </Button>

        <Button name="right" x="297" y="256" image="/hint/button_small_orange.png" scale="1.0">
            <Text name="right_text" x="43" y="16" width="120" height="48" font="font" align="C" text="MESSAGEBOX_NO" color="FFffffff" />
            <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="190 20"/>
            </SelectorController>
        </Button>
    </Widget>
    <Button name="middle" x="177" y="291" image="/hint/button_big_orange.png" scale="1.0">
        <Text name="middle_text" x="48" y="10" width="150" height="48" font="font" align="C" text="DISMISS" color="FFffffff" />
        <Properties>
            <Property key="sfx_btn_hover">button_hover</Property>
        </Properties>
        
        <SelectorController>
            <Action type="0" btn="12" cmd="press"/>
            <Container class="GPOnceContainer"/>
            <Item path=".." scale="1 1" alias="btn_a" offset="215 20"/>
        </SelectorController>
    </Button>

    <Properties>
        <Property key="sfx_dlg_appear">dialog_open</Property>
        <Property key="use_2x">true</Property>
    </Properties>
</Layout>
