<?xml version="1.0" encoding="utf-8" ?>
<Layout preload="ShopMoney,Groups,GroupsQHween">
    <Image name="bkg" x="0" y="-161" image="/interface/bkg_4_3_book.jpg"/>

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

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

        <Container class="GPButtonsContainer"/>

        <Item path="../*/back" scale="1 1" cID="def_circle"/>
        <Item path="../*/shopmoney" scale="1 1" cID="def_circle"/>
        <Item path="../*/advertising" scale="1 1" cID="def_circle"/>
        <Item path="../*/tapjoy" scale="1 1" cID="def_circle"/>
    </GPToolbarController>

    <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="12" cmd="press"/>

        <Container class="GPGraphContainer"/>

        <Item path="../left_page_scroll_field/hint1/*/but/buy" scale="1.5 1.5" def="1" />
        <Item path="../left_page_scroll_field/hint1/*/but/sell" scale="1.5 1.5" />
        <Item path="../left_page_scroll_field/hint1/*/but/disabled" scale="1.5 1.5" />
        <Item path="../left_page_scroll_field/hint1/*/but/timer" scale="1.5 1.5" />

        <Item path="../left_page_scroll_field/hint2/*/but/buy" scale="1.5 1.5" />
        <Item path="../left_page_scroll_field/hint2/*/but/sell" scale="1.5 1.5" />
        <Item path="../left_page_scroll_field/hint2/*/but/disabled" scale="1.5 1.5" />
        <Item path="../left_page_scroll_field/hint2/*/but/timer" scale="1.5 1.5" />

        <Item path="../left_page_scroll_field/*/hint3/*/but/buy" scale="1.5 1.5" />
        <Item path="../left_page_scroll_field/*/hint3/*/but/sell" scale="1.5 1.5" />
        <Item path="../left_page_scroll_field/*/hint3/*/but/disabled" scale="1.5 1.5" />
        <Item path="../left_page_scroll_field/*/hint3/*/but/timer" scale="1.5 1.5" />

        <Item path="../left_page_scroll_field/inapp_hint3/*/but/buy" scale="1.5 1.5" />
        <Item path="../left_page_scroll_field/inapp_hint3/*/but/sell" scale="1.5 1.5" />
        <Item path="../left_page_scroll_field/inapp_hint3/*/but/disabled" scale="1.5 1.5" />
        <Item path="../left_page_scroll_field/inapp_hint3/*/but/timer" scale="1.5 1.5" />

        <Item path="../left_page_scroll_field/dotted/*/but/buy" scale="1.5 1.5" />
        <Item path="../left_page_scroll_field/dotted/*/but/sell" scale="1.5 1.5" />
        <Item path="../left_page_scroll_field/dotted/*/but/disabled" scale="1.5 1.5" />
        <Item path="../left_page_scroll_field/dotted/*/but/timer" scale="1.5 1.5" />

        <Item path="../left_page_scroll_field/gray/*/but/buy" scale="1.5 1.5" />
        <Item path="../left_page_scroll_field/gray/*/but/sell" scale="1.5 1.5" />
        <Item path="../left_page_scroll_field/gray/*/but/disabled" scale="1.5 1.5" />
        <Item path="../left_page_scroll_field/gray/*/but/timer" scale="1.5 1.5" />

        <Item path="../right_page_scroll_field/*/disable_repetitions/*/but/buy" scale="1.5 1.5" />
        <Item path="../right_page_scroll_field/*/disable_repetitions/*/but/sell" scale="1.5 1.5" />
        <Item path="../right_page_scroll_field/*/disable_repetitions/*/but/disabled" scale="1.5 1.5" />
        <Item path="../right_page_scroll_field/*/disable_repetitions/*/but/timer" scale="1.5 1.5" />

        <Item path="../right_page_scroll_field/light1/*/but/buy" scale="1.5 1.5" />
        <Item path="../right_page_scroll_field/light1/*/but/sell" scale="1.5 1.5" />
        <Item path="../right_page_scroll_field/light1/*/but/disabled" scale="1.5 1.5" />
        <Item path="../right_page_scroll_field/light1/*/but/timer" scale="1.5 1.5" />

        <Item path="../right_page_scroll_field/light2/*/but/buy" scale="1.5 1.5" />
        <Item path="../right_page_scroll_field/light2/*/but/sell" scale="1.5 1.5" />
        <Item path="../right_page_scroll_field/light2/*/but/disabled" scale="1.5 1.5" />
        <Item path="../right_page_scroll_field/light2/*/but/timer" scale="1.5 1.5" />

        <Item path="../right_page_scroll_field/light3_widget/light3/*/but/buy" scale="1.5 1.5" />
        <Item path="../right_page_scroll_field/light3_widget/light3/*/but/sell" scale="1.5 1.5" />
        <Item path="../right_page_scroll_field/light3_widget/light3/*/but/disabled" scale="1.5 1.5" />
        <Item path="../right_page_scroll_field/light3_widget/light3/*/but/timer" scale="1.5 1.5" />

        <Item path="../right_page_scroll_field/inapp_pentagram/*/but/buy" scale="1.5 1.5" />
        <Item path="../right_page_scroll_field/inapp_pentagram/*/but/sell" scale="1.5 1.5" />
        <Item path="../right_page_scroll_field/inapp_pentagram/*/but/disabled" scale="1.5 1.5" />
        <Item path="../right_page_scroll_field/inapp_pentagram/*/but/timer" scale="1.5 1.5" />

        <Item path="../right_page_scroll_field/add_container/add_bonuspack_rm/inapp_bonuspack/*/but/buy" scale="1.5 1.5" />
        <Item path="../right_page_scroll_field/add_container/add_bonuspack_rm/inapp_bonuspack/*/but/sell" scale="1.5 1.5" />
        <Item path="../right_page_scroll_field/add_container/add_bonuspack_rm/inapp_bonuspack/*/but/disabled" scale="1.5 1.5" />
        <Item path="../right_page_scroll_field/add_container/add_bonuspack_rm/inapp_bonuspack/*/but/timer" scale="1.5 1.5" />

        <Item path="../right_page_scroll_field/add_container/add_bonuspack/bonuspack/*/but/buy" scale="1.5 1.5" />
        <Item path="../right_page_scroll_field/add_container/add_bonuspack/bonuspack/*/but/sell" scale="1.5 1.5" />
        <Item path="../right_page_scroll_field/add_container/add_bonuspack/bonuspack/*/but/disabled" scale="1.5 1.5" />
        <Item path="../right_page_scroll_field/add_container/add_bonuspack/bonuspack/*/but/timer" scale="1.5 1.5" />

        <Item path="../*/fortune/but/buy" scale="1.5 1.5" />

    </SelectorController>

    <Widget name="left_page_scroll_field"  x="190" y="127" width="510" height="530" >
        <ShopItem name="hint1" x="0" y="-46" xml="shop_item_template.xml" commodity="hint1" image="hint_1_sign.png" title="SHOP_HINT1_TITLE" desc="SHOP_HINT1_DESC" longdesc="SHOP_HINT1_LONGDESC" qty="10" price="price_shop_hint1" buy_message="SHOP_HINT1_BUY"   visible="0">

            <AnimController autoPlay="1">
                <ActionChain>
                    <EfxVisible visible="0"/>
                    <EfxWait delay="0.4"/>
                    <ActionGroup>
                        <EfxMove from_x="0" from_y="-100" to_x="0" to_y="-46" duration="0.1"/>
                        <EfxColor duration="0.1" from="00FFFFFF" to="FFFFFFFF"/>
                        <EfxVisible visible="1"/>
                    </ActionGroup>
                </ActionChain>
            </AnimController>
        </ShopItem>

        <ShopItem name="hint2" x="0" y="73" xml="shop_item_template.xml" commodity="hint2" image="hint_2_sign.png" title="SHOP_HINT2_TITLE" desc="SHOP_HINT2_DESC" longdesc="SHOP_HINT2_LONGDESC" qty="10" price="price_shop_hint2" buy_message="SHOP_HINT2_BUY"  visible="0">
            <AnimController autoPlay="1">
                <ActionChain>
                    <EfxVisible visible="0"/>
                    <EfxWait delay="0.3"/>
                    <ActionGroup>
                        <EfxMove from_x="0" from_y="-100" to_x="0" to_y="73" duration="0.1"/>
                        <EfxColor duration="0.1" from="00FFFFFF" to="FFFFFFFF"/>
                        <EfxVisible visible="1"/>
                    </ActionGroup>
                </ActionChain>
            </AnimController>
        </ShopItem>

        <Widget x="0" y="191">
            <ShopItem name="hint3" x="0" y="0" xml="shop_item_template.xml" commodity="hint3"
                image="hint_3_sign.png" title="SHOP_HINT3_TITLE" desc="SHOP_HINT3_DESC" longdesc="SHOP_HINT3_LONGDESC"
                qty="10" price="price_shop_hint3" buy_message="SHOP_HINT3_BUY"
                create_if="$config.social_net_hint3_commodity == mana" />

                <InAppWidget name="inapp_hint3" x="0" y="0" xml="shop_item_hint3_rm.xml" create_if="$config.social_net_hint3_commodity == rm"/>

                <AnimController autoPlay="1">
                    <ActionChain>
                        <EfxVisible visible="0"/>
                        <EfxWait delay="0.2"/>
                        <ActionGroup>
                            <EfxMove from_x="0" from_y="-100" to_x="0" to_y="191" duration="0.1"/>
                            <EfxColor duration="0.1" from="00FFFFFF" to="FFFFFFFF"/>
                            <EfxVisible visible="1"/>
                        </ActionGroup>
                    </ActionChain>
                </AnimController>
            </Widget>

            <ShopItem name="dotted" x="0" y="309" xml="shop_item_template.xml" commodity="dotted" image="dotted_border_sign.png" title="SHOP_DOTTED_TITLE" desc="SHOP_DOTTED_DESC" longdesc="SHOP_DOTTED_LONGDESC" price="price_shop_dotted" buy_message="SHOP_DOTTED_BUY" sell_message="SHOP_DOTTED_SELL"  visible="0">
                <FrameItemTimer x="405" y="100" commodity="dotted" event="commodity_cgf_changed">
                    <Text name="time" x="0" y="0" width="100" height="24" font="author" text="" align="C" color="FFFFFFFF"/>
                </FrameItemTimer>

                <AnimController autoPlay="1">
                    <ActionChain>
                        <EfxVisible visible="0"/>
                        <EfxWait delay="0.1"/>
                        <ActionGroup>
                            <EfxMove from_x="0" from_y="-100" to_x="0" to_y="309" duration="0.1"/>
                            <EfxColor duration="0.1" from="00FFFFFF" to="FFFFFFFF"/>
                            <EfxVisible visible="1"/>
                        </ActionGroup>
                    </ActionChain>
                </AnimController>
            </ShopItem>

            <ShopItem name="gray" x="0" y="427" xml="shop_item_template.xml" commodity="gray" image="gray_border_sign.png" title="SHOP_GRAY_TITLE" desc="SHOP_GRAY_DESC" longdesc="SHOP_GRAY_LONGDESC" price="price_shop_gray" buy_message="SHOP_GRAY_BUY" sell_message="SHOP_GRAY_SELL"  visible="0">
                <FrameItemTimer x="405" y="100" commodity="gray" event="commodity_cgf_changed">
                    <Text name="time" x="0" y="0" width="100" height="24" font="author" text="" align="C" color="FFFFFFFF"/>
                </FrameItemTimer>

                <AnimController autoPlay="1">
                    <ActionChain>
                        <EfxVisible visible="0"/>
                        <EfxWait delay="0.0"/>
                        <ActionGroup>
                            <EfxMove from_x="0" from_y="-100" to_x="0" to_y="427" duration="0.1"/>
                            <EfxColor duration="0.1" from="00FFFFFF" to="FFFFFFFF"/>
                            <EfxVisible visible="1"/>
                        </ActionGroup>
                    </ActionChain>
                </AnimController>
            </ShopItem>
        </Widget>

        <Widget name="right_page_scroll_field" x="770" y="127" width="510" height="530">
            <ShopItem name="disable_repetitions"  x="0" y="-46" xml="shop_item_template.xml" commodity="disable_repetitions" image="not_repeat_sign.png" title="SHOP_NO_REPEAT_TITLE" desc="SHOP_NO_REPEAT_DESC" longdesc="SHOP_NO_REPEAT_LONGDESC" price="price_shop_no_repeat" buy_message="SHOP_NO_REPEAT_BUY" sell_message="SHOP_NO_REPEAT_SELL" >
                <AnimController autoPlay="1">
                    <ActionChain>
                        <EfxVisible visible="0"/>
                        <EfxWait delay="0.5"/>
                        <ActionGroup>
                            <EfxMove from_x="0" from_y="-100" to_x="0" to_y="-46" duration="0.1"/>
                            <EfxColor duration="0.1" from="00FFFFFF" to="FFFFFFFF"/>
                            <EfxVisible visible="1"/>
                        </ActionGroup>
                    </ActionChain>
                </AnimController>
            </ShopItem>

            <ShopItem name="luck" x="0" y="73" xml="shop_item_template.xml" commodity="luck" image="luck_sign.png"
                title="SHOP_LUCK_TITLE" desc="SHOP_LUCK_DESC" longdesc="SHOP_LUCK_LONGDESC"
                price="price_shop_luck" buy_message="SHOP_LUCK_BUY" sell_message="SHOP_LUCK_SELL">

                <FrameItemTimer x="411" y="70" commodity="luck" event="commodity_cgf_changed">
                    <Text name="time" x="0" y="0" width="100" height="24" font="author" text="" align="C" color="FFFFFFFF"/>
                </FrameItemTimer>

                <AnimController autoPlay="1">
                    <ActionChain>
                        <EfxVisible visible="0"/>
                        <EfxWait delay="0.4"/>
                        <ActionGroup>
                            <EfxMove from_x="0" from_y="-100" to_x="0" to_y="73" duration="0.1"/>
                            <EfxColor duration="0.1" from="00FFFFFF" to="FFFFFFFF"/>
                            <EfxVisible visible="0"/>
                        </ActionGroup>
                    </ActionChain>
                </AnimController>

            </ShopItem>

            <ShopItem name="key" x="0" y="191" xml="shop_item_template.xml" commodity="key" image="key_sign.png" title="SHOP_KEY_TITLE"
                desc="SHOP_KEY_DESC" longdesc="SHOP_KEY_LONGDESC"
                price="price_shop_key" qty="5" buy_message="SHOP_KEY_BUY" sell_message="SHOP_KEY_SELL">

                <AnimController autoPlay="1">
                    <ActionChain>
                        <EfxVisible visible="0"/>
                        <EfxWait delay="0.3"/>
                        <ActionGroup>
                            <EfxMove from_x="0" from_y="-100" to_x="0" to_y="191" duration="0.1"/>
                            <EfxColor duration="0.1" from="00FFFFFF" to="FFFFFFFF"/>
                            <EfxVisible visible="0"/>
                        </ActionGroup>
                    </ActionChain>
                </AnimController>

            </ShopItem>

            <SPentagramItem show_if="$device.getGameType == f2p | $device.getGameType == blitz | $device.getGameType == freeblitz" name="light1" x="0" y="73" xml="shop_item_template.xml" commodity="light1" image="light1_sign.png" title="SHOP_LIGHT1_TITLE" desc="SHOP_LIGHT1_DESC" longdesc="SHOP_LIGHT1_LONGDESC"  price="price_shop_light1" buy_message="SHOP_LIGHT1_BUY">
                <PercentPentagram x="405" y="100" type="1">
                    <Text name="value" x="0" y="0" width="100" height="24" font="author" text="" align="C" color="FFFFFFFF"/>
                </PercentPentagram>
                <AnimController autoPlay="1">
                    <ActionChain>
                        <EfxVisible visible="0"/>
                        <EfxWait delay="0.4"/>
                        <ActionGroup>
                            <EfxMove from_x="0" from_y="-100" to_x="0" to_y="73" duration="0.1"/>
                            <EfxColor duration="0.1" from="00FFFFFF" to="FFFFFFFF"/>
                            <EfxVisible visible="1"/>
                        </ActionGroup>
                    </ActionChain>
                </AnimController>
            </SPentagramItem>

            <SPentagramItem show_if="$device.getGameType == f2p | $device.getGameType == blitz | $device.getGameType == freeblitz" name="light2" x="0" y="191" xml="shop_item_template.xml" commodity="light2" image="light2_sign.png" title="SHOP_LIGHT2_TITLE" desc="SHOP_LIGHT2_DESC" longdesc="SHOP_LIGHT2_LONGDESC"  price="price_shop_light2" buy_message="SHOP_LIGHT2_BUY">
                <PercentPentagram x="405" y="100" type="2">
                    <Text name="value" x="0" y="0" width="100" height="24" font="author" text="" align="C" color="FFFFFFFF"/>
                </PercentPentagram>
                <AnimController autoPlay="1">
                    <ActionChain>
                        <EfxVisible visible="0"/>
                        <EfxWait delay="0.3"/>
                        <ActionGroup>
                            <EfxMove from_x="0" from_y="-100" to_x="0" to_y="191" duration="0.1"/>
                            <EfxColor duration="0.1" from="00FFFFFF" to="FFFFFFFF"/>
                            <EfxVisible visible="1"/>
                        </ActionGroup>
                    </ActionChain>
                </AnimController>
            </SPentagramItem>

            <Widget name="light3_widget" x="0" y="309">
                <SPentagramItem show_if="($device.getGameType == f2p | $device.getGameType == blitz | $device.getGameType == freeblitz) * $config.social_net_light3_commodity == mana" name="light3" x="0" y="0" xml="shop_item_template.xml" commodity="light3"
                    image="light3_sign.png" title="SHOP_LIGHT3_TITLE" desc="SHOP_LIGHT3_DESC" longdesc="SHOP_LIGHT3_LONGDESC"
                    price="price_shop_light3" buy_message="SHOP_LIGHT3_BUY" sell_message="SHOP_LIGHT3_SELL">

                    <PercentPentagram x="405" y="100" type="3">
                        <Text name="value" x="0" y="0" width="100" height="24" font="author" text="" align="C" color="FFFFFFFF"/>
                    </PercentPentagram>
                </SPentagramItem>

                <InAppWidget show_if="($device.getGameType == f2p | $device.getGameType == blitz | $device.getGameType == freeblitz) * $config.social_net_light3_commodity == rm" name="inapp_pentagram" x="0" y="0" xml="shop_item_pentagram_rm.xml"/>

                <AnimController autoPlay="1">
                    <ActionChain>
                        <EfxVisible visible="0"/>
                        <EfxWait delay="0.2"/>
                        <ActionGroup>
                            <EfxMove from_x="0" from_y="-100" to_x="0" to_y="309" duration="0.1"/>
                            <EfxColor duration="0.1" from="00FFFFFF" to="FFFFFFFF"/>
                            <EfxVisible visible="1"/>
                        </ActionGroup>
                    </ActionChain>
                </AnimController>
            </Widget>

            <AdditionalControll name="add_container" x="0" y="428" show_if="$device.getGameType == f2p | $device.getGameType == blitz | $device.getGameType == freeblitz">
            <!--Widget name="add_pentagram_rm" visible="0">
                <InAppWidget name="inapp_pentagram" xml="shop_item_pentagram_rm.xml" />
            </Widget-->

            <Widget name="add_bonuspack_rm" visible="1">
                <InAppWidget name="inapp_bonuspack" xml="shop_item_bonuspack_rm.xml" />
            </Widget>

            <Widget name="add_bonuspack" visible="1">
                <ShopItem name="bonuspack" commodity="bonuspack" image="chest_sign.png"
                  title="SHOP_BONUSPACK_TITLE" desc="SHOP_BONUSPACK_DESC" longdesc="SHOP_BONUSPACK_LONGDESC" qty="1"
                  price="price_shop_bonuspack" buy_message="SHOP_BONUSPACK_BUY"
                  xml="shop_item_bonuspack.xml" />
              </Widget>
          </AdditionalControll>
      </Widget>

      <Widget name="status_bar" x="0" y="12" xml="/status_bar/shop_status_bar.xml"/>

      <AnimController autoPlay="1">
        <ActionChain>
            <EfxPlaySound sound="mana_screen_transistion"/>
            <EfxSendEvent event="event_shop_open"/>
        </ActionChain>
    </AnimController>

    <!--Particles name="ps_star1" x="100" y="200" file="/main_menu/win8_far_star.ps" />
    <Particles name="ps_star2" x="20" y="500" file="/main_menu/win8_far_star.ps" />
    <Particles name="ps_star3" x="700" y="750" file="/main_menu/win8_far_star.ps" /-->

        <Widget name="toolbar" x="5" y="40" xml="/toolbar/toolbar_shop.xml"/>
    </Layout>
