<?xml version="1.0" encoding="utf-8" ?>
<Layout preload="Reaction,ReactionResult">
    <BkgImage name="bkg" x="0" y="0" image="/interface/bkg_4_3_book.jpg"/>
    
    <Widget x="-20" y="38">
        
        <!-- <Image name="game_background" x="-9" y="0" image="book_scheme.png"/> -->
        
        <GroupLandscapeGameWidget name="game" x="60" y="0">
            <PaneController name="left" x="-35" y="60" width="510" height="500" >
                <Widget name="game" x="20" y="0" width="450" height="500">
                    <GroupLandscapeWidgetElements name="elements" x="5" y="0" width="450" height="500" xml="group_widget_left.xml"/>
                    <GroupLandscapeWidgetGroups name="groups" x="20" y="0" width="450" height="500"/>
                </Widget>

                <LayoutAlphabetView name="search_panel" x="-20" y="0" width="450" height="500" xml="/alphabet/alphabet_layout_left.xml" />
                <Widget name="log_panel" x="0" y="0" width="500" height="600" xml="/interface/reaction_log.xml">
                    <Properties>
                        <Property key="toggle">1</Property>
                    </Properties>
                </Widget>
                <Widget name="hints" x="32" y="22" width="500" height="600" xml="/hint/hints_layout.xml">
                    <Properties>
                        <Property key="toggle">1</Property>
                    </Properties>
                </Widget>

            </PaneController>
            
            <PaneController name="right" x="472" y="60" width="510" height="500" >
                <Widget name="game" x="0" y="0" width="450" height="500">
                    <GroupLandscapeWidgetElements name="elements" x="43" y="0" width="450" height="500" xml="group_widget_right.xml"/>
                    <GroupLandscapeWidgetGroups name="groups" x="17" y="0" width="450" height="500"/>
                </Widget>
                <LayoutHint1 name="hint1" x="0" y="0" width="450" height="500" xml="hint1.xml"/>
                <LayoutAlphabetView name="search_panel" x="13" y="0" width="500" height="500" xml="/alphabet/alphabet_layout_right.xml" />
            </PaneController>

            <Button name="search_button_left" x="17" y="50" flip_x="1" image="/interface/button_find.png">
                <State name="close" image="/interface/button_close.png"/>
                <SelectorController>
                    <Action type="0" btn="8" cmd="press"/>
                    <Container class="GPOnceContainer"/>
                    <Item path=".." scale="1 1" alias="btn_lb" offset="-16 16"/>
                </SelectorController>
            </Button>
            <Button name="search_button_right" x="888" y="50" flip_x="0" image="/interface/button_find.png">
                <State name="close" image="/interface/button_close.png"/>
                <SelectorController>
                    <Action type="0" btn="9" cmd="press"/>
                    <Container class="GPOnceContainer"/>
                    <Item path=".." scale="1 1" alias="btn_rb" offset="64 16"/>
                </SelectorController>
            </Button>
            
        </GroupLandscapeGameWidget>
    </Widget>
    
    <Widget x="0" y="12" xml="/status_bar/groups_status_bar.xml"/>
    <Widget name="toolbar" x="0" y="626" xml="/toolbar/toolbar_groups.xml"/>

    <Notification name="notification" x="0" y="12" xml="/achievements/achievement_sb.xml"/>
    <ActionNotification/>
    
    <CommodityPresenter>
        <Properties>
            <Property key="event">event_element_opened</Property>
            <Property key="rewards">hint1</Property>
            <Property key="openedNumber">10</Property>
            <Property key="quantity">1</Property>
            <Property key="format">%s %s</Property>
            <Property key="name">HINT_DLG_HINT_1</Property>
            <Property key="title">HINT1_TITLE</Property>
            <Property key="icon">/interface/game_prezent.png</Property>
        </Properties>
    </CommodityPresenter>
    
    <CommodityPresenter>
        <Properties>
            <Property key="event">event_element_opened</Property>
            <Property key="rewards">hint2</Property>
            <Property key="openedNumber">20</Property>
            <Property key="quantity">1</Property>
            <Property key="format">%s %s</Property>
            <Property key="name">HINT_DLG_HINT_2</Property>
            <Property key="title">HINT1_TITLE</Property>
            <Property key="icon">/interface/game_prezent.png</Property>
        </Properties>
    </CommodityPresenter>

    <OnceOnlyCommodityPresenter>
        <Properties>
            <Property key="gameID">main_game_2</Property>
            <Property key="rewards">hint3</Property>
            <Property key="quantity">1</Property>
            <Property key="format">%s %s</Property>
            <Property key="name">HINT_DLG_HINT_3</Property>
            <Property key="title">HINT1_TITLE</Property>
            <Property key="icon">/interface/game_prezent.png</Property>
        </Properties>
    </OnceOnlyCommodityPresenter>
    
    <!-- <OnceOnlyCommodityPresenter>
        <Properties>
            <Property key="gameID">main_game_3</Property>
            <Property key="rewards">hint3</Property>
            <Property key="quantity">1</Property>
            <Property key="format">%s %s</Property>
            <Property key="name">HINT_DLG_HINT_3</Property>
            <Property key="title">HINT1_TITLE</Property>
            <Property key="icon">/interface/game_prezent.png</Property>
        </Properties>
    </OnceOnlyCommodityPresenter>
    
    <OnceOnlyCommodityPresenter>
        <Properties>
            <Property key="gameID">main_game_4</Property>
            <Property key="rewards">hint3</Property>
            <Property key="quantity">1</Property>
            <Property key="format">%s %s</Property>
            <Property key="name">HINT_DLG_HINT_3</Property>
            <Property key="title">HINT1_TITLE</Property>
            <Property key="icon">/interface/game_prezent.png</Property>
        </Properties>
    </OnceOnlyCommodityPresenter> -->

    <Widget x="400" y="70">
        <ChestButton  name="chestbutton">
            <Image x="-28" y="-32" image="chest_rays.png">
                <AnimController autoPlay="1" >
                    <ActionChain>
                        <ActionRepeat repeat="-1">
                            <EfxRotate from="0" to="-3590" duration="600"/>
                        </ActionRepeat>
                    </ActionChain>
                </AnimController>
            </Image>

            <Image name="chest" image="chest_icon.png" />
            <Text name="timer_text" x="16" y="132" width="120" height="20" font="author" align="C" color="ff85540e" text="12h 10m 15s"/>
        </ChestButton>

        <AnimController name="ani_show" autoPlay="1" events="chest_show">>
            <ActionChain>
                <ActionGroup>         
                    <EfxVisible visible="1"/>                    
                    <EfxMove duration="0.2" from_x="1100" from_y="35" to_x="860" to_y="35" />
                </ActionGroup>
            </ActionChain>
        </AnimController>

        <AnimController name="ani_hide" autoPlay="0" events="chest_hide">
            <ActionChain>
                <ActionGroup>                         
                    <EfxMove duration="0.2" from_x="860" to_x="1100" />
                </ActionGroup>
            </ActionChain>
        </AnimController>
    </Widget>
    
     <GPPanel name="gp_help" x="0" y="635">
        <GPPanelIcon x="25" y="0" alias="ls" auto_visible="0"/>
        <GPPanelIcon x="85" y="0" alias="lt" auto_visible="0"/>
        <GPPanelIcon x="905" y="0" alias="rs" auto_visible="0"/>
        <GPPanelIcon x="965" y="0" alias="rt" auto_visible="0" />
    </GPPanel>
    
</Layout>
