<?xml version="1.0" encoding="utf-8" ?>
<Layout preload="ReactionResult,Shop">
    <!--Image name="bkg" x="0" y="-161" image="/interface/bkg_4_3.png"/>
    <Image x="115" y="35" image="/interface/book_2.png" /-->
        <Image name="bkg" x="0" y="-161" image="/interface/bkg_4_3_book.jpg" />


        <Widget x="115" y="35">

            <!-- <Image name="game_background" x="-9" y="0" image="book_scheme.png"/> -->

            <GroupLandscapeGameWidget name="game" x="0" y="0">
                <PaneController name="left" x="80" y="60" width="500" height="600">
                    <Widget name="game" x="0" y="0" width="500" height="600">
                        <GroupLandscapeWidgetElements name="elements" x="8" y="0" width="500" height="600" xml="group_widget_left.xml"/>
                        <GroupLandscapeWidgetGroups name="groups" x="0" y="0" width="500" height="600">
                            <Properties>
                                <Property key="group_id">left</Property>
                            </Properties>
                        </GroupLandscapeWidgetGroups>
                    </Widget>
                    <LayoutAlphabetView name="search_panel" x="0" y="0" width="500" height="600" 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="0" y="25" width="500" height="600" xml="/hint/hints_layout.xml">
                        <Properties>
                            <Property key="toggle">1</Property>
                        </Properties>
                    </Widget>
                </PaneController>

                <PaneController name="right" x="665" y="60" width="530" height="600">
                    <Widget name="game" x="0" y="0" width="500" height="600">
                        <GroupLandscapeWidgetElements name="elements" x="0" y="0" width="500" height="600" xml="group_widget_right.xml"/>
                        <GroupLandscapeWidgetGroups name="groups" x="0" y="0" width="500" height="600">
                            <Properties>
                                <Property key="group_id">right</Property>
                            </Properties>
                        </GroupLandscapeWidgetGroups>
                    </Widget>
                    <LayoutHint1 name="hint1" x="0" y="0" width="500" height="600" xml="hint1.xml"/>
                    <LayoutAlphabetView name="search_panel" x="0" y="0" width="600" height="600" xml="/alphabet/alphabet_layout_right.xml" />
                </PaneController>

                <Button name="search_button_left" x="75" 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="1135" y="56" 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="5" y="40" 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="1450" from_y="35" to_x="1200" to_y="35" />
                </ActionGroup>
            </ActionChain>
        </AnimController>

        <AnimController name="ani_hide" autoPlay="0" events="chest_hide">
            <ActionChain>
                <ActionGroup>
                    <EfxMove duration="0.2" from_x="1200" to_x="1450" />
                </ActionGroup>
            </ActionChain>
        </AnimController>
    </Widget>

    <GPPanel name="gp_help" x="150" y="725">
       <GPPanelIcon x="280" y="0" alias="ls" auto_visible="0"/>
       <GPPanelIcon x="240" y="0" alias="lt" auto_visible="0"/>
       <GPPanelIcon x="850" y="0" alias="rs" auto_visible="0"/>
       <GPPanelIcon x="890" y="0" alias="rt" auto_visible="0"/>
   </GPPanel>

</Layout>
