<?xml version="1.0" encoding="utf-8" ?>
<c2eventsheet>
    <!--All the 'name' attributes are ignored by Construct 2 - they are there for readability only.-->
    <name>ui es</name>
    <events>
        <event-group description="" sid="846721200320582" title="ui blur">
            <sub-events>
                <event-block sid="676309841905737">
                    <conditions>
                        <condition id="-2" name="On start of layout" sid="972752760438131" type="System" />
                    </conditions>
                    <actions>
                        <action id="0" name="Call function" sid="332536758054122" type="Function">
                            <param id="0" name="Name">&quot;blur layer create&quot;</param>
                            <param id="1" name="Parameter {n}"></param>
                        </action>
                    </actions>
                </event-block>
                <event-block sid="255478860882544">
                    <conditions>
                        <condition id="0" name="On function" sid="442941927535581" type="Function">
                            <param id="0" name="Name">&quot;blur layer create&quot;</param>
                        </condition>
                    </conditions>
                    <actions>
                        <action id="-9" name="Destroy" sid="624579364028697" type="blur" />
                    </actions>
                    <sub-events>
                        <event-block sid="179250092814874">
                            <conditions />
                            <actions>
                                <action id="-3" name="Create object" sid="507275186422791" type="System">
                                    <param id="0" name="Object to create">blur</param>
                                    <param id="1" name="Layer">&quot;blur&quot;</param>
                                    <param id="2" name="X">0</param>
                                    <param id="3" name="Y">0</param>
                                </action>
                                <action id="-7" name="Set size" sid="792728734102053" type="blur">
                                    <param id="0" name="Width">1920</param>
                                    <param id="1" name="Height">1080</param>
                                </action>
                                <action id="-15" name="Set visible" sid="483997947487454" type="blur">
                                    <param id="0" name="Visibility">0</param>
                                </action>
                                <action id="-10" name="Set value" sid="806868773237325" type="blur">
                                    <param id="0" name="Instance variable">stack</param>
                                    <param id="1" name="Value">0</param>
                                </action>
                            </actions>
                        </event-block>
                    </sub-events>
                </event-block>
                <event-block sid="911775442480113">
                    <conditions>
                        <condition id="0" name="On function" sid="471318552133256" type="Function">
                            <param id="0" name="Name">&quot;blur layer show&quot;</param>
                        </condition>
                    </conditions>
                    <actions>
                        <action id="-15" name="Set visible" sid="481642288185680" type="blur">
                            <param id="0" name="Visibility">1</param>
                        </action>
                        <action id="-11" name="Add to" sid="533959037819776" type="blur">
                            <param id="0" name="Instance variable">stack</param>
                            <param id="1" name="Value">1</param>
                        </action>
                    </actions>
                    <sub-events>
                        <event-block sid="112110022719642">
                            <conditions>
                                <condition id="-14" name="Compare variable" sid="144459756603518" type="System">
                                    <param id="0" name="Variable">gameStatus</param>
                                    <param id="1" name="Comparison">0</param>
                                    <param id="2" name="Value">STATUS_PAUSE</param>
                                </condition>
                            </conditions>
                            <actions>
                                <action id="-26" name="Move to layer" sid="331821174936316" type="blur">
                                    <param id="0" name="Layer">&quot;blur&quot;</param>
                                </action>
                            </actions>
                        </event-block>
                        <event-block sid="852228588144889">
                            <conditions>
                                <condition id="-22" name="Else" sid="259685462081028" type="System" />
                                <condition id="-14" name="Compare variable" sid="704408958907428" type="System">
                                    <param id="0" name="Variable">gameStatus</param>
                                    <param id="1" name="Comparison">0</param>
                                    <param id="2" name="Value">STATUS_GAMEOVER</param>
                                </condition>
                            </conditions>
                            <actions>
                                <action id="-26" name="Move to layer" sid="599083763240931" type="blur">
                                    <param id="0" name="Layer">&quot;blur2&quot;</param>
                                </action>
                            </actions>
                        </event-block>
                    </sub-events>
                </event-block>
                <event-block sid="224046557551718">
                    <conditions>
                        <condition id="0" name="On function" sid="435128475723499" type="Function">
                            <param id="0" name="Name">&quot;blur layer hide&quot;</param>
                        </condition>
                    </conditions>
                    <actions />
                    <sub-events>
                        <event-block sid="967398924774660">
                            <conditions>
                                <condition id="-7" name="Compare instance variable" sid="174332311770345" type="blur">
                                    <param id="0" name="Instance variable">stack</param>
                                    <param id="1" name="Comparison">4</param>
                                    <param id="2" name="Value">0</param>
                                </condition>
                            </conditions>
                            <actions>
                                <action id="-12" name="Subtract from" sid="651308224231792" type="blur">
                                    <param id="0" name="Instance variable">stack</param>
                                    <param id="1" name="Value">1</param>
                                </action>
                            </actions>
                        </event-block>
                        <event-block sid="264225775572523">
                            <conditions>
                                <condition id="-22" name="Else" sid="983686424305835" type="System" />
                            </conditions>
                            <actions>
                                <action id="-10" name="Set value" sid="616807090005635" type="blur">
                                    <param id="0" name="Instance variable">stack</param>
                                    <param id="1" name="Value">0</param>
                                </action>
                            </actions>
                        </event-block>
                        <event-block sid="762345397888595">
                            <conditions>
                                <condition id="-7" name="Compare instance variable" sid="604211483675122" type="blur">
                                    <param id="0" name="Instance variable">stack</param>
                                    <param id="1" name="Comparison">0</param>
                                    <param id="2" name="Value">0</param>
                                </condition>
                            </conditions>
                            <actions>
                                <action id="-15" name="Set visible" sid="760692748061800" type="blur">
                                    <param id="0" name="Visibility">0</param>
                                </action>
                                <action id="-26" name="Move to layer" sid="323885182282667" type="blur">
                                    <param id="0" name="Layer">&quot;blur&quot;</param>
                                </action>
                            </actions>
                        </event-block>
                    </sub-events>
                </event-block>
            </sub-events>
        </event-group>
        <event-group description="" sid="876347973253467" title="ui button">
            <sub-events>
                <event-block sid="784117310667209">
                    <conditions>
                        <condition id="0" name="On function" sid="625994188963883" type="Function">
                            <param id="0" name="Name">&quot;ui.buttons.create&quot;</param>
                        </condition>
                    </conditions>
                    <actions />
                    <sub-events>
                        <event-block sid="278313194727140">
                            <conditions />
                            <actions>
                                <action id="-9" name="Destroy" sid="207417754463367" type="btnPauseInMain" />
                                <action id="-9" name="Destroy" sid="525813631023837" type="btnDescInMain" />
                                <action id="-9" name="Destroy" sid="238550169743383" type="btnMusicInMain" />
                                <action id="-9" name="Destroy" sid="293545401861071" type="btnRestartInMain" />
                                <action id="-9" name="Destroy" sid="970124944169387" type="btnHomeInMain" />
                            </actions>
                        </event-block>
                        <event-block sid="524656993027623">
                            <conditions />
                            <actions>
                                <action id="-3" name="Create object" sid="383412476006475" type="System">
                                    <param id="0" name="Object to create">btnMusicInMain</param>
                                    <param id="1" name="Layer">&quot;ui button&quot;</param>
                                    <param id="2" name="X">1810</param>
                                    <param id="3" name="Y">970</param>
                                </action>
                                <action id="-15" name="Set visible" sid="242868138327475" type="btnMusicInMain">
                                    <param id="0" name="Visibility">0</param>
                                </action>
                                <action id="2" name="Stop" sid="476705599520918" type="btnMusicInMain" />
                                <action id="-10" name="Set value" sid="467142805973492" type="btnMusicInMain">
                                    <param id="0" name="Instance variable">fromX</param>
                                    <param id="1" name="Value">Self.X</param>
                                </action>
                                <action id="-10" name="Set value" sid="748048139248267" type="btnMusicInMain">
                                    <param id="0" name="Instance variable">fromY</param>
                                    <param id="1" name="Value">Self.Y</param>
                                </action>
                            </actions>
                        </event-block>
                        <event-block sid="997121386173416">
                            <conditions />
                            <actions>
                                <action id="-3" name="Create object" sid="852654255418004" type="System">
                                    <param id="0" name="Object to create">btnDescInMain</param>
                                    <param id="1" name="Layer">&quot;ui button&quot;</param>
                                    <param id="2" name="X">1810</param>
                                    <param id="3" name="Y">970</param>
                                </action>
                                <action id="-15" name="Set visible" sid="838215939311506" type="btnDescInMain">
                                    <param id="0" name="Visibility">0</param>
                                </action>
                                <action id="-10" name="Set value" sid="877830501144970" type="btnDescInMain">
                                    <param id="0" name="Instance variable">fromX</param>
                                    <param id="1" name="Value">Self.X</param>
                                </action>
                                <action id="-10" name="Set value" sid="383004429197782" type="btnDescInMain">
                                    <param id="0" name="Instance variable">fromY</param>
                                    <param id="1" name="Value">Self.Y</param>
                                </action>
                            </actions>
                        </event-block>
                        <event-block sid="997916892598170">
                            <conditions />
                            <actions>
                                <action id="-3" name="Create object" sid="807709697739267" type="System">
                                    <param id="0" name="Object to create">btnRestartInMain</param>
                                    <param id="1" name="Layer">&quot;ui button&quot;</param>
                                    <param id="2" name="X">1810</param>
                                    <param id="3" name="Y">970</param>
                                </action>
                                <action id="-15" name="Set visible" sid="114696725353294" type="btnRestartInMain">
                                    <param id="0" name="Visibility">0</param>
                                </action>
                                <action id="-10" name="Set value" sid="419720045989865" type="btnRestartInMain">
                                    <param id="0" name="Instance variable">fromX</param>
                                    <param id="1" name="Value">Self.X</param>
                                </action>
                                <action id="-10" name="Set value" sid="199574427030969" type="btnRestartInMain">
                                    <param id="0" name="Instance variable">fromY</param>
                                    <param id="1" name="Value">Self.Y</param>
                                </action>
                            </actions>
                        </event-block>
                        <event-block sid="859953961567909">
                            <conditions />
                            <actions>
                                <action id="-3" name="Create object" sid="253502199598802" type="System">
                                    <param id="0" name="Object to create">btnHomeInMain</param>
                                    <param id="1" name="Layer">&quot;ui button&quot;</param>
                                    <param id="2" name="X">1810</param>
                                    <param id="3" name="Y">970</param>
                                </action>
                                <action id="-15" name="Set visible" sid="923533980896914" type="btnHomeInMain">
                                    <param id="0" name="Visibility">0</param>
                                </action>
                                <action id="-10" name="Set value" sid="127140101368830" type="btnHomeInMain">
                                    <param id="0" name="Instance variable">fromX</param>
                                    <param id="1" name="Value">Self.X</param>
                                </action>
                                <action id="-10" name="Set value" sid="651835868003217" type="btnHomeInMain">
                                    <param id="0" name="Instance variable">fromY</param>
                                    <param id="1" name="Value">Self.Y</param>
                                </action>
                            </actions>
                        </event-block>
                        <event-block sid="450665791640120">
                            <conditions />
                            <actions>
                                <action id="-3" name="Create object" sid="272201708981147" type="System">
                                    <param id="0" name="Object to create">btnPauseInMain</param>
                                    <param id="1" name="Layer">&quot;ui button&quot;</param>
                                    <param id="2" name="X">1810</param>
                                    <param id="3" name="Y">970</param>
                                </action>
                                <action id="-10" name="Set value" sid="837510528110983" type="btnPauseInMain">
                                    <param id="0" name="Instance variable">fromX</param>
                                    <param id="1" name="Value">Self.X</param>
                                </action>
                                <action id="-10" name="Set value" sid="374513311439014" type="btnPauseInMain">
                                    <param id="0" name="Instance variable">fromY</param>
                                    <param id="1" name="Value">Self.Y</param>
                                </action>
                                <action id="-10" name="Set value" sid="566911720781406" type="btnPauseInMain">
                                    <param id="0" name="Instance variable">isReady</param>
                                    <param id="1" name="Value">1</param>
                                </action>
                            </actions>
                        </event-block>
                    </sub-events>
                </event-block>
                <event-block sid="303299583104862">
                    <conditions>
                        <condition id="0" name="On function" sid="134453462959308" type="Function">
                            <param id="0" name="Name">&quot;ui button hide&quot;</param>
                        </condition>
                    </conditions>
                    <actions />
                    <sub-events>
                        <event-block sid="610271204544693">
                            <conditions />
                            <actions>
                                <action id="0" name="Call function" sid="286171897733242" type="Function">
                                    <param id="0" name="Name">&quot;blur layer hide&quot;</param>
                                    <param id="1" name="Parameter {n}"></param>
                                </action>
                                <action id="-15" name="Set visible" sid="117447218423246" type="btnRestartInMain">
                                    <param id="0" name="Visibility">0</param>
                                </action>
                                <action id="-10" name="Set value" sid="269037674692363" type="btnRestartInMain">
                                    <param id="0" name="Instance variable">isReady</param>
                                    <param id="1" name="Value">0</param>
                                </action>
                                <action id="-15" name="Set visible" sid="403537129662004" type="btnMusicInMain">
                                    <param id="0" name="Visibility">0</param>
                                </action>
                                <action id="-10" name="Set value" sid="775746825506029" type="btnMusicInMain">
                                    <param id="0" name="Instance variable">isReady</param>
                                    <param id="1" name="Value">0</param>
                                </action>
                                <action id="-15" name="Set visible" sid="972348322967332" type="btnDescInMain">
                                    <param id="0" name="Visibility">0</param>
                                </action>
                                <action id="-10" name="Set value" sid="448572223332020" type="btnDescInMain">
                                    <param id="0" name="Instance variable">isReady</param>
                                    <param id="1" name="Value">0</param>
                                </action>
                                <action id="-15" name="Set visible" sid="649272890642909" type="btnHomeInMain">
                                    <param id="0" name="Visibility">0</param>
                                </action>
                                <action id="-10" name="Set value" sid="294658884169606" type="btnHomeInMain">
                                    <param id="0" name="Instance variable">isReady</param>
                                    <param id="1" name="Value">0</param>
                                </action>
                            </actions>
                        </event-block>
                    </sub-events>
                </event-block>
                <event-block sid="398654407926798">
                    <conditions>
                        <condition id="0" name="On function" sid="375378969244190" type="Function">
                            <param id="0" name="Name">&quot;ui button show&quot;</param>
                        </condition>
                    </conditions>
                    <actions />
                    <sub-events>
                        <variable constant="1" name="offsetY" sid="948181959144449" static="0" type="number">50</variable>
                        <event-block sid="352898256711354">
                            <conditions />
                            <actions>
                                <action id="0" name="Call function" sid="235587486171698" type="Function">
                                    <param id="0" name="Name">&quot;blur layer show&quot;</param>
                                    <param id="1" name="Parameter {n}"></param>
                                </action>
                                <action id="-15" name="Set visible" sid="467344452740845" type="btnDescInMain">
                                    <param id="0" name="Visibility">1</param>
                                </action>
                                <action id="-3" name="Set position" sid="708085063895769" type="btnDescInMain">
                                    <param id="0" name="X">Self.fromX</param>
                                    <param id="1" name="Y">Self.targetY + OFFSETY</param>
                                </action>
                                <action behavior="LiteTween" id="10" name="Start" sid="913425541498641" type="btnDescInMain">
                                    <param id="0" name="Start Mode">0</param>
                                    <param id="1" name="Force use current">1</param>
                                </action>
                                <action id="-15" name="Set visible" sid="894511185343004" type="btnMusicInMain">
                                    <param id="0" name="Visibility">1</param>
                                </action>
                                <action id="-3" name="Set position" sid="634024978479009" type="btnMusicInMain">
                                    <param id="0" name="X">Self.fromX</param>
                                    <param id="1" name="Y">Self.targetY + OFFSETY</param>
                                </action>
                                <action behavior="LiteTween" id="10" name="Start" sid="374713944004402" type="btnMusicInMain">
                                    <param id="0" name="Start Mode">0</param>
                                    <param id="1" name="Force use current">1</param>
                                </action>
                                <action id="-15" name="Set visible" sid="827743273723718" type="btnRestartInMain">
                                    <param id="0" name="Visibility">1</param>
                                </action>
                                <action id="-3" name="Set position" sid="126081242226639" type="btnRestartInMain">
                                    <param id="0" name="X">Self.fromX</param>
                                    <param id="1" name="Y">Self.targetY + OFFSETY</param>
                                </action>
                                <action behavior="LiteTween" id="10" name="Start" sid="747553654700136" type="btnRestartInMain">
                                    <param id="0" name="Start Mode">0</param>
                                    <param id="1" name="Force use current">1</param>
                                </action>
                                <action id="-15" name="Set visible" sid="739132013756401" type="btnHomeInMain">
                                    <param id="0" name="Visibility">1</param>
                                </action>
                                <action id="-3" name="Set position" sid="172175009056646" type="btnHomeInMain">
                                    <param id="0" name="X">Self.fromX</param>
                                    <param id="1" name="Y">Self.targetY + OFFSETY</param>
                                </action>
                                <action behavior="LiteTween" id="10" name="Start" sid="484074214732558" type="btnHomeInMain">
                                    <param id="0" name="Start Mode">0</param>
                                    <param id="1" name="Force use current">1</param>
                                </action>
                            </actions>
                        </event-block>
                        <event-block sid="109415776618825">
                            <conditions>
                                <condition id="-14" name="Compare variable" sid="372208374283814" type="System">
                                    <param id="0" name="Variable">allowPlayMusic</param>
                                    <param id="1" name="Comparison">0</param>
                                    <param id="2" name="Value">0</param>
                                </condition>
                            </conditions>
                            <actions>
                                <action id="5" name="Set frame" sid="956107844950645" type="btnMusicInMain">
                                    <param id="0" name="Frame number">0</param>
                                </action>
                            </actions>
                        </event-block>
                        <event-block sid="368319514576178">
                            <conditions>
                                <condition id="-22" name="Else" sid="174818429216879" type="System" />
                            </conditions>
                            <actions>
                                <action id="5" name="Set frame" sid="188363613601545" type="btnMusicInMain">
                                    <param id="0" name="Frame number">1</param>
                                </action>
                            </actions>
                        </event-block>
                    </sub-events>
                </event-block>
                <event-block sid="555168788765719">
                    <conditions>
                        <condition id="0" name="On function" sid="810705625652112" type="Function">
                            <param id="0" name="Name">&quot;ui button pause hide&quot;</param>
                        </condition>
                    </conditions>
                    <actions />
                    <sub-events>
                        <event-block sid="437526972589324">
                            <conditions />
                            <actions>
                                <action id="-15" name="Set visible" sid="473520727526870" type="btnPauseInMain">
                                    <param id="0" name="Visibility">0</param>
                                </action>
                            </actions>
                        </event-block>
                    </sub-events>
                </event-block>
                <event-block sid="550090973721352">
                    <conditions>
                        <condition id="0" name="On function" sid="760722087784481" type="Function">
                            <param id="0" name="Name">&quot;ui button pause show&quot;</param>
                        </condition>
                    </conditions>
                    <actions />
                    <sub-events>
                        <event-block sid="196930726521103">
                            <conditions />
                            <actions>
                                <action id="-15" name="Set visible" sid="528540026683218" type="btnPauseInMain">
                                    <param id="0" name="Visibility">1</param>
                                </action>
                            </actions>
                        </event-block>
                    </sub-events>
                </event-block>
                <event-block sid="192352050222973">
                    <conditions>
                        <condition behavior="LiteTween" id="4" name="On tween end" sid="141346358066429" type="btnDescInMain" />
                    </conditions>
                    <actions>
                        <action id="-10" name="Set value" sid="132687793405901" type="btnDescInMain">
                            <param id="0" name="Instance variable">isReady</param>
                            <param id="1" name="Value">1</param>
                        </action>
                    </actions>
                </event-block>
                <event-block sid="637407639515285">
                    <conditions>
                        <condition behavior="LiteTween" id="4" name="On tween end" sid="618500687125431" type="btnMusicInMain" />
                    </conditions>
                    <actions>
                        <action id="-10" name="Set value" sid="665938315555780" type="btnMusicInMain">
                            <param id="0" name="Instance variable">isReady</param>
                            <param id="1" name="Value">1</param>
                        </action>
                    </actions>
                </event-block>
                <event-block sid="880245917081164">
                    <conditions>
                        <condition behavior="LiteTween" id="4" name="On tween end" sid="155065663977190" type="btnRestartInMain" />
                    </conditions>
                    <actions>
                        <action id="-10" name="Set value" sid="598541211239301" type="btnRestartInMain">
                            <param id="0" name="Instance variable">isReady</param>
                            <param id="1" name="Value">1</param>
                        </action>
                    </actions>
                </event-block>
                <event-block sid="316923919738827">
                    <conditions>
                        <condition behavior="LiteTween" id="4" name="On tween end" sid="856169800574739" type="btnHomeInMain" />
                    </conditions>
                    <actions>
                        <action id="-10" name="Set value" sid="273674547212972" type="btnHomeInMain">
                            <param id="0" name="Instance variable">isReady</param>
                            <param id="1" name="Value">1</param>
                        </action>
                    </actions>
                </event-block>
                <event-group description="" sid="944317155621832" title="ui button event">
                    <sub-events>
                        <event-group description="" sid="378303557190390" title="ui button event mouse">
                            <sub-events>
                                <event-block sid="365385835187317">
                                    <conditions>
                                        <condition behavior="MouseEvent" id="1" name="On Mouse Leave" sid="393703007706174" type="FamilyUIButton" />
                                    </conditions>
                                    <actions />
                                    <sub-events>
                                        <event-block sid="613266668739687">
                                            <conditions />
                                            <actions>
                                                <action id="0" name="Set cursor style" sid="635911483413662" type="Mouse">
                                                    <param id="0" name="Cursor style">0</param>
                                                </action>
                                            </actions>
                                        </event-block>
                                    </sub-events>
                                </event-block>
                                <event-block sid="917575749894680">
                                    <conditions>
                                        <condition behavior="MouseEvent" id="0" name="On Mouse Over" sid="362287940431931" type="FamilyUIButton" />
                                    </conditions>
                                    <actions />
                                    <sub-events>
                                        <event-block sid="702533092755205">
                                            <conditions>
                                                <condition id="-7" name="Compare instance variable" sid="577642490762638" type="FamilyUIButton">
                                                    <param id="0" name="Instance variable">isReady</param>
                                                    <param id="1" name="Comparison">0</param>
                                                    <param id="2" name="Value">1</param>
                                                </condition>
                                            </conditions>
                                            <actions>
                                                <action id="0" name="Set cursor style" sid="758845435698165" type="Mouse">
                                                    <param id="0" name="Cursor style">1</param>
                                                </action>
                                            </actions>
                                        </event-block>
                                    </sub-events>
                                </event-block>
                            </sub-events>
                        </event-group>
                        <event-group description="" sid="832250010887038" title="ui button event touch">
                            <sub-events>
                                <event-block sid="734809453045600">
                                    <conditions>
                                        <condition behavior="MouseEvent" id="2" name="On Mouse Down" sid="292442923416721" type="btnPauseInMain" />
                                    </conditions>
                                    <actions />
                                    <sub-events>
                                        <event-block sid="188804843166577">
                                            <conditions>
                                                <condition id="-14" name="Compare variable" sid="528821579009756" type="System">
                                                    <param id="0" name="Variable">gameStatus</param>
                                                    <param id="1" name="Comparison">1</param>
                                                    <param id="2" name="Value">STATUS_GAMEOVER</param>
                                                </condition>
                                                <condition id="-14" name="Compare variable" sid="866553199098825" type="System">
                                                    <param id="0" name="Variable">gameStatus</param>
                                                    <param id="1" name="Comparison">1</param>
                                                    <param id="2" name="Value">STATUS_QST</param>
                                                </condition>
                                                <condition id="-14" name="Compare variable" sid="219593251608391" type="System">
                                                    <param id="0" name="Variable">gameStatus</param>
                                                    <param id="1" name="Comparison">1</param>
                                                    <param id="2" name="Value">STATUS_POPUP</param>
                                                </condition>
                                                <condition id="-9" name="Is visible" sid="856814319441996" type="btnPauseInMain" />
                                            </conditions>
                                            <actions />
                                            <sub-events>
                                                <event-block sid="452943390706935">
                                                    <conditions>
                                                        <condition id="-14" name="Compare variable" sid="479270804006260" type="System">
                                                            <param id="0" name="Variable">gameStatus</param>
                                                            <param id="1" name="Comparison">0</param>
                                                            <param id="2" name="Value">STATUS_PAUSE</param>
                                                        </condition>
                                                    </conditions>
                                                    <actions>
                                                        <action id="5" name="Set frame" sid="832997200150185" type="btnPauseInMain">
                                                            <param id="0" name="Frame number">0</param>
                                                        </action>
                                                    </actions>
                                                    <sub-events>
                                                        <event-block sid="873891807698474">
                                                            <conditions>
                                                                <condition id="-14" name="Compare variable" sid="197330319141844" type="System">
                                                                    <param id="0" name="Variable">gameStatusPre</param>
                                                                    <param id="1" name="Comparison">0</param>
                                                                    <param id="2" name="Value">STATUS_PLAYING</param>
                                                                </condition>
                                                            </conditions>
                                                            <actions>
                                                                <action id="0" name="Call function" sid="981665222041180" type="Function">
                                                                    <param id="0" name="Name">&quot;audio.stopQuestionVOByTip&quot;</param>
                                                                    <param id="1" name="Parameter {n}"></param>
                                                                </action>
                                                            </actions>
                                                        </event-block>
                                                        <event-block sid="232562576845345">
                                                            <conditions />
                                                            <actions>
                                                                <action id="0" name="Call function" sid="691555504651514" type="Function">
                                                                    <param id="0" name="Name">&quot;ui button hide&quot;</param>
                                                                    <param id="1" name="Parameter {n}"></param>
                                                                </action>
                                                                <action id="0" name="Call function" sid="142826255271295" type="Function">
                                                                    <param id="0" name="Name">&quot;main.game.resume&quot;</param>
                                                                    <param id="1" name="Parameter {n}"></param>
                                                                </action>
                                                            </actions>
                                                        </event-block>
                                                    </sub-events>
                                                </event-block>
                                                <event-block sid="379805567787014">
                                                    <conditions>
                                                        <condition id="-22" name="Else" sid="935709363334734" type="System" />
                                                    </conditions>
                                                    <actions>
                                                        <action id="5" name="Set frame" sid="370805158224900" type="btnPauseInMain">
                                                            <param id="0" name="Frame number">1</param>
                                                        </action>
                                                        <action id="0" name="Call function" sid="545567965546843" type="Function">
                                                            <param id="0" name="Name">&quot;ui button show&quot;</param>
                                                            <param id="1" name="Parameter {n}"></param>
                                                        </action>
                                                        <action id="0" name="Call function" sid="913913008431460" type="Function">
                                                            <param id="0" name="Name">&quot;main.game.pause&quot;</param>
                                                            <param id="1" name="Parameter {n}"></param>
                                                        </action>
                                                    </actions>
                                                </event-block>
                                            </sub-events>
                                        </event-block>
                                    </sub-events>
                                </event-block>
                                <event-block sid="367568718912455">
                                    <conditions>
                                        <condition behavior="MouseEvent" id="2" name="On Mouse Down" sid="678181118548737" type="btnHomeInMain" />
                                    </conditions>
                                    <actions />
                                    <sub-events>
                                        <event-block sid="473737443321918">
                                            <conditions>
                                                <condition id="-7" name="Compare instance variable" sid="493153057555498" type="btnHomeInMain">
                                                    <param id="0" name="Instance variable">isReady</param>
                                                    <param id="1" name="Comparison">0</param>
                                                    <param id="2" name="Value">1</param>
                                                </condition>
                                                <condition id="-9" name="Is visible" sid="768941842150982" type="btnHomeInMain" />
                                            </conditions>
                                            <actions>
                                                <action id="0" name="Call function" sid="952324760646697" type="Function">
                                                    <param id="0" name="Name">&quot;audio.stopQuestionVOByTip&quot;</param>
                                                    <param id="1" name="Parameter {n}"></param>
                                                </action>
                                                <action id="0" name="Call function" sid="486531094805769" type="Function">
                                                    <param id="0" name="Name">&quot;main.fsm.goto&quot;</param>
                                                    <param id="1" name="Parameter {n}">STATUS_TITLE</param>
                                                </action>
                                                <action id="-9" name="Set value" sid="355299628194906" type="System">
                                                    <param id="0" name="Variable">adjustVolume</param>
                                                    <param id="1" name="Value">NORMAL_VOLUME</param>
                                                </action>
                                                <action id="-9" name="Set value" sid="924488491481466" type="System">
                                                    <param id="0" name="Variable">allowPlayMusic</param>
                                                    <param id="1" name="Value">0</param>
                                                </action>
                                                <action id="-2" name="Go to layout" sid="878403211038765" type="System">
                                                    <param id="0" name="Layout">menu</param>
                                                </action>
                                            </actions>
                                        </event-block>
                                    </sub-events>
                                </event-block>
                                <event-block sid="978432647162810">
                                    <conditions>
                                        <condition behavior="MouseEvent" id="2" name="On Mouse Down" sid="665527694996086" type="btnRestartInMain" />
                                    </conditions>
                                    <actions />
                                    <sub-events>
                                        <event-block sid="820466696270828">
                                            <conditions>
                                                <condition id="-7" name="Compare instance variable" sid="346374250688511" type="btnRestartInMain">
                                                    <param id="0" name="Instance variable">isReady</param>
                                                    <param id="1" name="Comparison">0</param>
                                                    <param id="2" name="Value">1</param>
                                                </condition>
                                                <condition id="-9" name="Is visible" sid="863894616191511" type="btnRestartInMain" />
                                            </conditions>
                                            <actions>
                                                <action id="0" name="Call function" sid="743230553012987" type="Function">
                                                    <param id="0" name="Name">&quot;audio.stopQuestionVOByTip&quot;</param>
                                                    <param id="1" name="Parameter {n}"></param>
                                                </action>
                                                <action id="0" name="Call function" sid="483723210506059" type="Function">
                                                    <param id="0" name="Name">&quot;main.fsm.goto&quot;</param>
                                                    <param id="1" name="Parameter {n}">STATUS_RESTART</param>
                                                </action>
                                                <action id="-26" name="Restart layout" sid="538136861353648" type="System" />
                                            </actions>
                                        </event-block>
                                    </sub-events>
                                </event-block>
                                <event-block sid="181512545260232">
                                    <conditions>
                                        <condition behavior="MouseEvent" id="2" name="On Mouse Down" sid="726763477733552" type="btnMusicInMain" />
                                    </conditions>
                                    <actions />
                                    <sub-events>
                                        <event-block sid="297275932537607">
                                            <conditions>
                                                <condition id="-7" name="Compare instance variable" sid="617530526979923" type="btnMusicInMain">
                                                    <param id="0" name="Instance variable">isReady</param>
                                                    <param id="1" name="Comparison">0</param>
                                                    <param id="2" name="Value">1</param>
                                                </condition>
                                                <condition id="-9" name="Is visible" sid="544440207444245" type="btnMusicInMain" />
                                            </conditions>
                                            <actions />
                                            <sub-events>
                                                <comment>math , set volume to -infinity to silence all sounds</comment>
                                                <event-block sid="883460465155969">
                                                    <conditions>
                                                        <condition id="-14" name="Compare variable" sid="545971413744282" type="System">
                                                            <param id="0" name="Variable">allowPlayMusic</param>
                                                            <param id="1" name="Comparison">0</param>
                                                            <param id="2" name="Value">0</param>
                                                        </condition>
                                                    </conditions>
                                                    <actions>
                                                        <action id="-9" name="Set value" sid="627193622840410" type="System">
                                                            <param id="0" name="Variable">allowPlayMusic</param>
                                                            <param id="1" name="Value">1</param>
                                                        </action>
                                                        <action id="5" name="Set frame" sid="456026430630757" type="btnMusicInMain">
                                                            <param id="0" name="Frame number">1</param>
                                                        </action>
                                                        <action disabled="1" id="-9" name="Set value" sid="816350708311156" type="System">
                                                            <param id="0" name="Variable">adjustVolume</param>
                                                            <param id="1" name="Value">-Infinity</param>
                                                        </action>
                                                        <action id="0" name="Call function" sid="643547231522518" type="Function">
                                                            <param id="0" name="Name">&quot;audio.stopQuestionVOByTip&quot;</param>
                                                            <param id="1" name="Parameter {n}"></param>
                                                        </action>
                                                    </actions>
                                                </event-block>
                                                <event-block sid="756560859007071">
                                                    <conditions>
                                                        <condition id="-22" name="Else" sid="638669939544653" type="System" />
                                                    </conditions>
                                                    <actions>
                                                        <action id="-9" name="Set value" sid="446256068361258" type="System">
                                                            <param id="0" name="Variable">allowPlayMusic</param>
                                                            <param id="1" name="Value">0</param>
                                                        </action>
                                                        <action id="5" name="Set frame" sid="632862685188357" type="btnMusicInMain">
                                                            <param id="0" name="Frame number">0</param>
                                                        </action>
                                                        <action id="-9" name="Set value" sid="911205888716745" type="System">
                                                            <param id="0" name="Variable">adjustVolume</param>
                                                            <param id="1" name="Value">NORMAL_VOLUME</param>
                                                        </action>
                                                    </actions>
                                                </event-block>
                                            </sub-events>
                                        </event-block>
                                    </sub-events>
                                </event-block>
                                <event-block sid="919679241951829">
                                    <conditions>
                                        <condition behavior="MouseEvent" id="2" name="On Mouse Down" sid="129999861542234" type="btnDescInMain" />
                                    </conditions>
                                    <actions />
                                    <sub-events>
                                        <event-block sid="701947116724249">
                                            <conditions>
                                                <condition id="-7" name="Compare instance variable" sid="645310682035666" type="btnDescInMain">
                                                    <param id="0" name="Instance variable">isReady</param>
                                                    <param id="1" name="Comparison">0</param>
                                                    <param id="2" name="Value">1</param>
                                                </condition>
                                                <condition id="-9" name="Is visible" sid="263342949689866" type="btnDescInMain" />
                                            </conditions>
                                            <actions>
                                                <action id="0" name="Call function" sid="344837499644999" type="Function">
                                                    <param id="0" name="Name">&quot;audio.playQuestionVOByTip&quot;</param>
                                                    <param id="1" name="Parameter {n}"></param>
                                                </action>
                                            </actions>
                                        </event-block>
                                    </sub-events>
                                </event-block>
                            </sub-events>
                        </event-group>
                    </sub-events>
                </event-group>
            </sub-events>
        </event-group>
    </events>
</c2eventsheet>
