<?xml version="1.0" encoding="utf-8"?>
<Layout rotation="0">
    <BkgImage name="bkg" x="0" y="-56" image="/interface/bkg_4_3.png"/>

    <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_main" scale="1 1" cID="def_circle"/>
        <Item path="../*/universe" scale="1 1" cID="def_circle"/>
        <Item path="../*/shopmoney" scale="1 1" cID="def_circle"/>
    </GPToolbarController>

    <SelectorController>
        <Action type="1" axis="0" use_val="1" val="-0.75" cmd="left"/>
        <Action type="1" axis="0" use_val="1" val="0.75" cmd="right"/>
        <Action type="1" axis="1" use_val="1" val="-0.75" cmd="up"/>
        <Action type="1" axis="1" use_val="1" val="0.75" cmd="down"/>
        <Action type="0" btn="12" cmd="press"/>

        <Container class="GPGraphContainer"/>

        <Item path="../the_whole_page/lock/bets/rate_0" scale="2 1.5"/>
        <Item path="../the_whole_page/lock/bets/rate_1" scale="2 1.5" def="1"/>
        <Item path="../the_whole_page/lock/bets/rate_2" scale="2 1.5"/>

        <Item path="../the_whole_page/lock/status_bar_item/icon_off/button_buy_luck" scale="2 1.5"/>

        <Item path="../the_whole_page/lock/status_bar_energy/button" scale="2 1.5"/>

        <Item path="../the_whole_page/lock/clear" scale="2 1.5"/>
        <Item path="../the_whole_page/lock/spin" scale="2 1.5"/>

        <!--
        <Item path="../the_whole_page/lock/lever" scale="2 1.5"/>
        -->

        <Item path="../the_whole_page/lock/table/tabwidet/help" scale="2 1.5"/>
        <Item path="../the_whole_page/lock/table/tabwidet/log" scale="2 1.5"/>

    </SelectorController>

    <GPScrollViewController>
        <Action type="1" axis="3" use_val="1" val="-0.5" cmd="up"/>
        <Action type="1" axis="3" use_val="1" val="0.5" cmd="down"/>

        <ActionProcessor class="GPPressedAction"/>

        <ScrollView path="../the_whole_page/lock/table/panecontroller/log/log"/>
    </GPScrollViewController>

    <Widget name="the_whole_page" x="128" y="-15">

    <!--Particles name="ps_fire" x="250" y="200" width="64" height="64" file="/main_menu/win8_main_menu_dd.ps" visible="0" scale="0.5"/-->
    <Particles name="ps_fire" x="280" y="250" width="64" height="64" file="/particles/win8_slotmachine_dd.ps" visible="1" scale="1.0"/>

    <LockWidget name="lock" x="32" y="-138">

        <Image x="202" y="436" image="slots_elements.png"/>

        <Widget name="field" x="214" y="445">
            <!-- row 0 -->

            <Widget name="0_0" x="0" y="0" width="96" height="96" scale="0.9">
                <!--Image x="0" y="0" image="/elements/border_solid.png" visible="1"/-->
            </Widget>
            <Widget name="1_0" x="105" y="0" width="96" height="96" scale="0.9">
                <!--Image x="0" y="0" image="/elements/border_solid.png" visible="1"/-->
            </Widget>
            <Widget name="2_0" x="213" y="0" width="96" height="96" scale="0.9">
                <!--Image x="0" y="0" image="/elements/border_solid.png" visible="1"/-->
            </Widget>

            <!-- row 1 -->

            <Widget name="0_1" x="0" y="90" width="96" height="96" scale="0.9">
                <!--Image x="0" y="0" image="/elements/border_solid.png" visible="1"/-->
            </Widget>
            <Widget name="1_1" x="105" y="90" width="96" height="96" scale="0.9">
                <!--Image x="0" y="0" image="/elements/border_solid.png" visible="1"/-->
            </Widget>
            <Widget name="2_1" x="213" y="90" width="96" height="96" scale="0.9">
                <!--Image x="0" y="0" image="/elements/border_solid.png" visible="1"/-->
            </Widget>

            <!-- row 2 -->

            <Widget name="0_2" x="0" y="195" width="96" height="96" scale="0.9">
                <!--Image x="0" y="0" image="/elements/border_solid.png" visible="1"/-->
            </Widget>
            <Widget name="1_2" x="105" y="195" width="96" height="96" scale="0.9">
                <!--Image x="0" y="0" image="/elements/border_solid.png" visible="1"/-->
            </Widget>
            <Widget name="2_2" x="213" y="195" width="96" height="96" scale="0.9">
                <!--Image x="0" y="0" image="/elements/border_solid.png" visible="1"/-->
            </Widget>
        </Widget>

        <DrumWidget x="202" y="436">
            <Animation name="left" x="0" y="0" duration="0.15s">
                <Frame image="row_left_01.png"/>
                <Frame image="row_left_02.png"/>
            </Animation>

            <Animation name="middle" x="111" y="0" duration="0.15s">
                <Frame image="row_middle_01.png"/>
                <Frame image="row_middle_02.png"/>
            </Animation>

            <Animation name="right" x="220" y="0" duration="0.15s">
                <Frame image="row_right_01.png"/>
                <Frame image="row_right_02.png"/>
            </Animation>

            <Properties>
                <Property key="sfx_drum_roll">sm_drum_roll</Property>
                <Property key="sfx_drum_stop">sm_drum_stop</Property>
            </Properties>
        </DrumWidget>

        <Image name="box" x="0" y="0" image="slot_machine.png"/>

        <StatusBarItem name="status_bar_item" x="-4" y="284" commodity="luck">
            <Image name="icon_on" x="0" y="0" image="/interface/luck.png"/>
            <Widget name="icon_off" x="0" y="0">
                <Image name="icon_off_alpha" x="0" y="0" color="FF969696" image="/interface/luck.png"/>

                <Button name="button_buy_luck" x="62" y="54" image="plus_luck.png">
                    <!--Click cmd="plus_luck" handler="cur_layout"/-->
                    <Event id="e_buy_luck">{"commodity": "luck"}</Event>
                </Button>
            </Widget>
        </StatusBarItem>

        <Image name="" x="201" y="435" image="over_elements.png"/>

        <Animation name="hotspot" x="200" y="435" duration="0.05s" loop="1" color="40ffffff" width="330" height="303">
            <Frame image="" duration="10"/>
            <Frame image="hotspot_01.png"/>
            <Frame image="hotspot_02.png"/>
            <Frame image="hotspot_03.png"/>
            <Frame image="hotspot_04.png"/>
            <Frame image="hotspot_05.png"/>
            <Frame image="hotspot_06.png"/>
            <Frame image="hotspot_07.png"/>
        </Animation>

        <Image name="glass" x="201" y="436" image="glass.png"/>

        <Widget x="164" y="415">
            <Image name="win_glow_0" x="0" y="-4" image="win_glow.png" visible="0" color="00FFFFFF">
                <AnimController autoPlay="1" events="e_sm_win_glow_hide">
                    <ActionChain>
                        <EfxVisible visible="0"/>
                        <EfxColor from="00FFFFFF" to="00FFFFFF"/>
                    </ActionChain>
                </AnimController>

                <AnimController autoPlay="0" events="e_sm_win_glow_0">
                    <ActionRepeat repeat="1">
                        <ActionChain>
                            <!--EfxPlaySound sound="sm_win"/-->
                            <EfxVisible visible="1"/>
                            <EfxColor delay="0" duration="0.2" from="00FFFFFF" to="FFFFFFFF"/>
                            <ActionRepeat repeat="3">
                                <ActionChain>
                                    <EfxColor duration="0.2" from="FFFFFFFF" to="00FFFFFF"/>
                                    <EfxColor duration="0.2" from="00FFFFFF" to="FFFFFFFF"/>
                                </ActionChain>
                            </ActionRepeat>
                            <EfxColor duration="0.2" from="FFFFFFFF" to="00FFFFFF"/>
                            <EfxVisible visible="0"/>
                        </ActionChain>
                    </ActionRepeat>
                </AnimController>
            </Image>

            <Image name="win_glow_1" x="0" y="87" image="win_glow.png" visible="0" color="00FFFFFF">
                <AnimController autoPlay="1" events="e_sm_win_glow_hide">
                    <ActionChain>
                        <EfxVisible visible="0"/>
                        <EfxColor from="00FFFFFF" to="00FFFFFF"/>
                    </ActionChain>
                </AnimController>

                <AnimController autoPlay="0" events="e_sm_win_glow_1">
                    <ActionRepeat repeat="1">
                        <ActionChain>
                            <!--EfxPlaySound sound="sm_win"/-->
                            <EfxVisible visible="1"/>
                            <EfxColor delay="0" duration="0.2" from="00FFFFFF" to="FFFFFFFF"/>
                            <ActionRepeat repeat="3">
                                <ActionChain>
                                    <EfxColor duration="0.2" from="FFFFFFFF" to="00FFFFFF"/>
                                    <EfxColor duration="0.2" from="00FFFFFF" to="FFFFFFFF"/>
                                </ActionChain>
                            </ActionRepeat>
                            <EfxColor duration="0.2" from="FFFFFFFF" to="00FFFFFF"/>
                            <EfxVisible visible="0"/>
                        </ActionChain>
                    </ActionRepeat>
                </AnimController>
            </Image>

            <Image name="win_glow_2" x="0" y="192" image="win_glow.png" visible="0" color="00FFFFFF">
                <AnimController autoPlay="1" events="e_sm_win_glow_hide">
                    <ActionChain>
                        <EfxVisible visible="0"/>
                        <EfxColor from="00FFFFFF" to="00FFFFFF"/>
                    </ActionChain>
                </AnimController>

                <AnimController autoPlay="0" events="e_sm_win_glow_2">
                    <ActionRepeat repeat="1">
                        <ActionChain>
                            <!--EfxPlaySound sound="sm_win"/-->
                            <EfxVisible visible="1"/>
                            <EfxColor delay="0" duration="0.2" from="00FFFFFF" to="FFFFFFFF"/>
                            <ActionRepeat repeat="3">
                                <ActionChain>
                                    <EfxColor duration="0.2" from="FFFFFFFF" to="00FFFFFF"/>
                                    <EfxColor duration="0.2" from="00FFFFFF" to="FFFFFFFF"/>
                                </ActionChain>
                            </ActionRepeat>
                            <EfxColor duration="0.2" from="FFFFFFFF" to="00FFFFFF"/>
                            <EfxVisible visible="0"/>
                        </ActionChain>
                    </ActionRepeat>
                </AnimController>
            </Image>
        </Widget>

        <Image name="lines" x="192" y="448" image="lines.png"/>

        <LeverWidget name="lever" x="552" y="517">
            <Image name="up" x="0" y="0" image="lever_n.png" visible="1"/>
            <Image name="middle" x="0" y="90" image="lever_p.png" visible="0"/>
            <Image name="down" x="0" y="110" image="lever_n.png" flip_y="1" visible="0"/>
        </LeverWidget>

        <Widget name="table" x="616" y="209">
            <PaneController name="panecontroller" x="0" y="0" handler="table" >
                <Widget name="pay">
                    <Image x="0" y="0" image="pay_table.png" visible="1"/>
                    <Text x="86" y="8" width="330" height="52" align="C" font="font" color="FFFFFFFF" text="SM_PAYOUTS"/>
                    <Text x="110" y="124" width="80" height="20" align="W" font="author" color="FFFFFFFF" text="SM_ANY_SIN"/>
                    <Text x="98" y="122" width="15" height="20" align="W" font="author" color="FFFFFFFF" text="-"/>
                </Widget>

                <Widget name="log">
                    <Image x="0" y="0" image="pay_table_log.png" visible="1"/>
                    <Text x="86" y="8" width="330" height="52" align="C" font="font" color="FFFFFFFF" text="SM_LOG"/>
                    <SMLogView name="log" x="49" y="75" width="390" height="525" item="/slot_machine/sm_log_item.xml" clip="1"/>
                </Widget>
            </PaneController>

            <TabWidget name="tabwidet" x="27" y="634">
                <Button name="help" x="15" y="0" image="btn_tab_n.png">
                    <State name="selected" image="btn_tab_p.png"/>
                    <Click cmd="change" handler="table" param="pay"/>
                    <Text x="16" y="0" width="174" height="52" align="C" font="font" scale="0.9" color="FFFFFFFF" text="SM_PAYOUTS"/>
                </Button>

                <Button name="log" x="225" y="0" image="btn_tab_n.png">
                    <State name="selected" image="btn_tab_p.png"/>
                    <Click cmd="change" handler="table" param="log"/>
                    <Text x="19" y="1" width="174" height="52" align="C" font="font" scale="0.8" lineHeight="17" color="FFFFFFFF" text="SM_LOG"/>
                </Button>
            </TabWidget>
        </Widget>

        <Image name="jeckpot" x="84" y="104" image="jeckpot.png" visible="0" color="00FFFFFF">
            <AnimController autoPlay="1">
                <ActionChain>
                    <EfxVisible visible="0"/>
                    <EfxColor from="00FFFFFF" to="00FFFFFF"/>
                </ActionChain>
            </AnimController>

            <AnimController autoPlay="0" events="e_sm_jeckpot">
                <ActionRepeat repeat="1">
                    <ActionChain>
                        <EfxPlaySound sound="sm_jackpot"/>
                        <EfxVisible visible="1"/>
                        <EfxColor delay="0" duration="0.2" from="00FFFFFF" to="FFFFFFFF"/>
                        <ActionRepeat repeat="3">
                            <ActionChain>
                                <EfxColor duration="0.2" from="FFFFFFFF" to="00FFFFFF"/>
                                <EfxColor duration="0.2" from="00FFFFFF" to="FFFFFFFF"/>
                            </ActionChain>
                        </ActionRepeat>
                        <EfxColor duration="0.2" from="FFFFFFFF" to="00FFFFFF"/>
                        <EfxVisible visible="0"/>
                    </ActionChain>
                </ActionRepeat>
            </AnimController>
        </Image>

        <Button name="spin" x="238" y="775" image="btn_spin_n.png" sound="button_spin_01">
            <Click cmd="spin" handler="cur_layout"/>
            <Text x="20" y="1" width="214" height="65" align="C" font="font" color="FFFFFFFF" text="SM_SPIN"/>
        </Button>

        <Button name="clear" x="31" y="783" image="btn_clear_n.png">
            <Click cmd="bet_clear" handler="cur_layout"/>
            <Text x="13" y="1" width="135" height="55" align="C" font="font" color="FFFFFFFF" text="SM_CLEAR"/>
        </Button>

        <Widget name="bets" x="13" y="419">
            <Button name="rate_0" x="0" y="0" image="btn_rate_n.png">
                <Click cmd="bet_inc" param="0" handler="cur_layout"/>
                <Text name="value" x="90" y="60" width="50" height="22" align="C" font="font" color="FFFFFFFF" text="0"/>
            </Button>

            <Button name="rate_1" x="0" y="107" image="btn_rate_n.png">
                <Click cmd="bet_inc" param="1" handler="cur_layout"/>
                <Text name="value" x="90" y="60" width="50" height="22" align="C" font="font" color="FFFFFFFF" text="0"/>
            </Button>

            <Button name="rate_2" x="0" y="214" image="btn_rate_n.png">
                <Click cmd="bet_inc" param="2" handler="cur_layout"/>
                <Text name="value" x="90" y="60" width="50" height="22" align="C" font="font" color="FFFFFFFF" text="0"/>
            </Button>
        </Widget>

        <Button name="status_bar_energy" x="432" y="273" scale="0.8" create_if="$device.hasInAppSupport == true">
            <!--Image name="button" x="0" y="0" image="/interface/plus_energy_bkg.png">
                <AnimController autoPlay="1">
                    <ActionChain>
                        <ActionRepeat repeat="-1">
                            <ActionChain>
                                <EfxWait delay="20"/>
                                <ActionRepeat repeat="3">
                                    <ActionChain>
                                        <ActionGroup>
                                            <EfxRotate from="0" to="180" duration="2.5"/>
                                            <EfxColor duration="2.5" from="FFFFFFFF" to="80FFFFFF" modifier="sindiminish"/>
                                        </ActionGroup>
                                        <ActionGroup>
                                            <EfxRotate from="181" to="360" duration="2.5"/>
                                            <EfxColor duration="2.5" from="80FFFFFF" to="FFFFFFFF" modifier="sindiminish"/>
                                        </ActionGroup>
                                    </ActionChain>
                                </ActionRepeat>
                            </ActionChain>
                        </ActionRepeat>
                    </ActionChain>
                </AnimController>
            </Image-->
            <Image name="button" x="0" y="0" image="/interface/plus_energy.png" />
            <Click cmd="layout" param="ShopMoney">
                <Param value="crossfade"/>
            </Click>
        </Button>

        <SMMoneyWidget name="money" x="294" y="300">
            <Text name="value" x="0" y="0" width="150" height="22" align="E" font="medium" color="FFFFFFFF" text="0"/>
        </SMMoneyWidget>

        <TutorialArrow name="tutorial_arrow" x="170" y="485" xml="/tutorial/tutorial_arrow_left.xml">
            <Properties>
                <Property key="msg">SM_NO_BETS</Property>
            </Properties>
        </TutorialArrow>
    </LockWidget>
    </Widget>

    <!-- <Widget name="status_bar" x="0" y="12" xml="/status_bar/slotmachine_status_bar.xml"/> -->
    <Widget name="toolbar" x="5" y="40" xml="/toolbar/toolbar_slot_machine.xml"/>

    <TutorialArrow name="tutorial_setbet" x="335" y="445" xml="/tutorial/tutorial_arrow_left.xml" text="SM_NO_BETS" visible="0" />
    <TutorialArrow name="tutorial_spin" x="529" y="630" xml="/tutorial/tutorial_arrow_down.xml" text="SM_TRY_LUCK" visible="0" />
    <TutorialArrow name="tutorial_wintable" x="780" y="185" width="308" height="172" speed="3 0" text="SM_WIN_TABLE" visible="0">
        <Image name="arrow_dialog" x="-314" y="-86" image="/tutorial/dialog_help.png">
            <Text name="text" x="32" y="23" width="243" height="116" font="font" align="C" color="FF2D109A"/>
        </Image>
        <Image name="arrow" x="-28" y="-17" image="/tutorial/dialog_help_arrow_right.png"/>
    </TutorialArrow>

    <AnimController autoPlay="1">
        <ActionChain>
            <EfxPlaySound sound="ui_devilslots_slide_01"/>
        </ActionChain>
    </AnimController>

    <Properties>
        <Property key="sfx_sm_win">sm_win</Property>
    </Properties>
    <MiniShop event="e_buy_luck"/>
</Layout>
