<?xml version="0.1" encoding="UTF8" ?>
<Layer name="statusbar_bg" x="0" y="0" path="./images/statusbar/statusbar_bg" />
<Layer name="statusbar_line" x="-210" y="3" path="./images/statusbar/statusbar_line" />
<Layer name="statusbar_forground" x="0" y="0" path="./images/statusbar/statusbar_forground" />
<Object name="status_bar">
    <Functions>
        <Function name="sb_move_40">
            <Action name="StartEffect" target_layer="statusbar_line" effect="move" dst_x="40" end="0.5" />
        </Function>
    </Functions>
</Object>
<Object name="dust_brush">
    <Inventory image="./images/inventory/dust_brush" present="1" cursor="web" />
</Object>
<Object name="anti_mold">
    <Inventory image="./images/inventory/anti_mold" present="1" cursor="spray" />
</Object>
<Object name="magic_key">
    <Inventory image="./images/inventory/key" present="1" cursor="key" />
</Object>
<Object name="chainik01">
    <Clicker />
</Object>
<Object name="clock">
    <Clicker />
</Object>
<Object name="clock_01">
    <Clicker />
</Object>
<Object name="for_music">
    <Clicker />
</Object>
<Object name="hat">
    <Clicker />
</Object>
<Object name="kreslo">
    <Clicker />
</Object>
<Object name="picture">
    <Clicker />
	<Click>
		<Action condition="![hat_completed]" name="StartEffect" effect="move" target="hat" dst_y="105" end="0.5" />
	</Click>
</Object>
<Object name="vase">
    <Clicker />
</Object>
<Object name="weapon01" shadow="weapon01_shadow">
    <Clicker />
</Object>
<Object name="lampa">
    <Effects>
        <Idle>
            <Effect name="particle" align="center" path="./ps/10_lamp_anim.ps" y="33" x="-2" />
        </Idle>
    </Effects>
</Object>

<Object name="level_control">
    <FlagChanged>
        <Flags state="[chainik01_completed] * [clock_completed] * [clock_01_completed] * [for_music_completed] * [hat_completed] * [kreslo_completed] * [picture_completed] * [vase_completed] * [weapon01_completed]" once="1">
            <Action name="function" target="status_bar" function="sb_move_40" />
			<Action name="Timer" id="timer_cw" time="0.5" />
        </Flags>
        <Flags state="[global]s1_completed" once="1">
            <Action name="function" target="status_bar" function="sb_move_40" />
			<Action name="Timer" id="timer_s2" time="0.5" />
        </Flags>
        <Flags state="[global]s2_completed" once="1">
            <Action name="function" target="status_bar" function="sb_move_40" />
			<Action name="Timer" id="timer_s3" time="0.5" />
        </Flags>
        <Flags state="[global]s3_completed" once="1">
            <Action name="function" target="status_bar" function="sb_move_40" />
			<Action name="Timer" id="timer_s" time="0.5" />
        </Flags>
    </FlagChanged>
    <OnTimer>
        <Timer timer_id="timer_cw">
			<Action name="Sublocation" location="clue_window" />
        </Timer>
        <Timer timer_id="timer_s">
			<Action name="CompleteTask" task="idle_task" />
        </Timer>
        <Timer timer_id="timer_s1">
			<Action name="Call" function="SwitchTab" params="inv" /> 
            <Action name="Sublocation" location="solitaire1" />
        </Timer>
        <Timer timer_id="timer_s2">
            <Action name="Sublocation" location="solitaire2" />
        </Timer>
        <Timer timer_id="timer_s3">
            <Action name="Sublocation" location="solitaire3" />
        </Timer>
    </OnTimer>
</Object>

<Layer name="clue_window_bg" x="200" y="75" path="./images/clue_window/clue_window_bg" />
<Layer name="found_item" x="439" y="296" path="./images/clue_window/museum_items" transparent="1" />
<Layer name="clue_text" class="text" font="./fonts/SegoePrint18Bold.txt" color="FFFFFFFF" loc_text="CLUE_MUSEUM_ITEMS" abs_pos="315,195" width="390" fixed="1" />
<Layer name="click_text" class="text" font="./fonts/SegoePrint18Bold.txt" color="FFFFFFFF" loc_text="CLUE_CLICK_TEXT" abs_pos="437,568" width="250" />
<SubLocation name="clue_window" type="embedded_ispy" close_outside="0">
    <Fade bkg_color="000000c0" time="0.6" />
	<Layer name="clue_window_bg" />
	<Layer name="found_item" />
	<Layer name="clue_text" />
	<Layer name="click_text" />
</SubLocation>
<Object name="clue_window_bg">
    <Click>
        <Action name="Sublocation" location="clue_window" show="0" />
        <Action name="Timer" id="timer_s1" time="0.5" />
    </Click>
</Object>

<Task name="idle_task" object="" hidden="1" />

<Layer name="placeholders1" x="748" y="39" path="./images/cards/restart_button" />
<Layer class="solitaire" name="solitaire_layer1" onFinish="finish_solitaire1">
    <Cards path="./kasko2/cards_img.xml" after="" />
    <Game type="fairway" hint_time="5" lock_hint="1" hl_delay="1" result="fairway" win_condition="MagicCards">
        <Deck position="430, 465" offset="0.1,-0.1" threshold="2,2" finish="600, 900" holder="placeholders1" h_offset="-30,-30" opened="555, 465" />
        <Final position="350, 310" offset="101.5, 0" holder="placeholders1" h_offset="-91,-32" final="350,800" hidden="350,310" />

        <Group position="195, 180" offset="0, 17" count="5" />
        <Group position="295, 160" offset="0, 17" count="4" />
        <Group position="395, 180" offset="0, 17" count="5" />
        <Group position="495, 160" offset="0, 17" count="4" />
        <Group position="595, 180" offset="0, 17" count="5" />
        <Group position="695, 160" offset="0, 17" count="4" />
        <Group position="795, 180" offset="0, 17" count="5" />
        <Effects move="./ps/divination_move.ps">
            <Highlight particles="./ps/divination_select.ps" scale_loop="1, 1.1, 0.5" />
        </Effects>

        <State group="0" pos="4" state="web" image="./images/cards/loc_web" />
        <State group="1" pos="2" state="moss" image="./images/cards/loc_moss" />
        <State group="2" pos="3" state="lock" image="./images/cards/loc_lock" />
        <State group="3" pos="2" state="moss" image="./images/cards/loc_moss" />
        <State group="4" pos="3" state="lock" image="./images/cards/loc_lock" />
        <State group="5" pos="2" state="moss" image="./images/cards/loc_moss" />
        <State group="6" pos="4" state="web" image="./images/cards/loc_web" />
        <Solver state="web" object="dust_brush" effect="composite_file" path="./images/cards/brush_eff.xml" begin="1" end="1.5" />
        <Solver state="moss" object="anti_mold" effect="composite_file" path="./images/cards/spray_eff.xml" begin="1" end="1.5" />
        <Solver state="lock" object="magic_key" effect="composite_file" path="./images/cards/key_eff.xml" begin="1" end="1.5" />

        <MagicCard group="0" pos="0" custom_image="images/magic_cards/spades_3" />
        <MagicCard group="6" pos="0" custom_image="images/magic_cards/diamonds_9" />

        <WrongClick font="./fonts/icambria28.txt" color="FFFFFFFF" />
    </Game>
</Layer>
<Layer name="placeholders2" x="748" y="39" path="./images/cards/restart_button" />
<Layer class="solitaire" name="solitaire_layer2" onFinish="finish_solitaire2">
    <Cards path="./kasko2/cards_img.xml" after="" />
    <Game type="fairway" hint_time="5" lock_hint="1" hl_delay="1" result="fairway" win_condition="MagicCards">
        <Deck position="430, 465" offset="0.1,-0.1" threshold="2,2" finish="600, 900" holder="placeholders2" h_offset="-30,-30" opened="555, 465" />
        <Final position="350, 310" offset="101.5, 0" holder="placeholders2" h_offset="-91,-32" final="350,800" hidden="350,310" />

        <Group position="195, 180" offset="0, 17" count="5" />
        <Group position="295, 160" offset="0, 17" count="4" />
        <Group position="395, 180" offset="0, 17" count="5" />
        <Group position="495, 160" offset="0, 17" count="4" />
        <Group position="595, 180" offset="0, 17" count="5" />
        <Group position="695, 160" offset="0, 17" count="4" />
        <Group position="795, 180" offset="0, 17" count="5" />
        <Effects move="./ps/divination_move.ps">
            <Highlight particles="./ps/divination_select.ps" scale_loop="1, 1.1, 0.5" />
        </Effects>
        <WrongClick font="./fonts/icambria28.txt" color="FFFFFFFF" />

        <State group="0" pos="4" state="lock" image="./images/cards/loc_lock" />
        <State group="1" pos="2" state="web" image="./images/cards/loc_web" />
        <State group="2" pos="3" state="lock" image="./images/cards/loc_lock" />
        <State group="3" pos="2" state="moss" image="./images/cards/loc_moss" />
        <State group="4" pos="3" state="lock" image="./images/cards/loc_lock" />
        <State group="5" pos="2" state="web" image="./images/cards/loc_web" />
        <State group="6" pos="4" state="lock" image="./images/cards/loc_lock" />
        <Solver state="web" object="dust_brush" effect="composite_file" path="./images/cards/brush_eff.xml" begin="1" end="1.5" />
        <Solver state="moss" object="anti_mold" effect="composite_file" path="./images/cards/spray_eff.xml" begin="1" end="1.5" />
        <Solver state="lock" object="magic_key" effect="composite_file" path="./images/cards/key_eff.xml" begin="1" end="1.5" />

        <MagicCard group="4" pos="0" custom_image="images/magic_cards/clubs_6" />
        <MagicCard group="0" pos="0" custom_image="images/magic_cards/hearts_a" />
        <MagicCard group="2" pos="0" custom_image="images/magic_cards/clubs_4" />
    </Game>
</Layer>
<Layer name="placeholders3" x="748" y="39" path="./images/cards/restart_button" />
<Layer class="solitaire" name="solitaire_layer3" onFinish="finish_solitaire3">
    <Cards path="./kasko2/cards_img.xml" after="" />
    <Game type="fairway" hint_time="5" lock_hint="1" hl_delay="1" result="fairway" win_condition="MagicCards">
        <Deck position="430, 465" offset="0.1,-0.1" threshold="2,2" finish="600, 900" holder="placeholders3" h_offset="-30,-30" opened="555, 465" />
        <Final position="350, 310" offset="101.5, 0" holder="placeholders3" h_offset="-91,-32" final="350,800" hidden="350,310" />

        <Group position="195, 180" offset="0, 17" count="5" />
        <Group position="295, 160" offset="0, 17" count="4" />
        <Group position="395, 180" offset="0, 17" count="5" />
        <Group position="495, 160" offset="0, 17" count="4" />
        <Group position="595, 180" offset="0, 17" count="5" />
        <Group position="695, 160" offset="0, 17" count="4" />
        <Group position="795, 180" offset="0, 17" count="5" />
        <Effects move="./ps/divination_move.ps">
            <Highlight particles="./ps/divination_select.ps" scale_loop="1, 1.1, 0.5" />
        </Effects>

        <State group="0" pos="4" state="moss" image="./images/cards/loc_moss" />
        <State group="1" pos="2" state="web" image="./images/cards/loc_web" />
        <State group="2" pos="3" state="lock" image="./images/cards/loc_lock" />
        <State group="3" pos="2" state="web" image="./images/cards/loc_web" />
        <State group="4" pos="3" state="lock" image="./images/cards/loc_lock" />
        <State group="5" pos="2" state="moss" image="./images/cards/loc_moss" />
        <State group="6" pos="4" state="lock" image="./images/cards/loc_lock" />
        <Solver state="web" object="dust_brush" effect="composite_file" path="./images/cards/brush_eff.xml" begin="1" end="1.5" />
        <Solver state="moss" object="anti_mold" effect="composite_file" path="./images/cards/spray_eff.xml" begin="1" end="1.5" />
        <Solver state="lock" object="magic_key" effect="composite_file" path="./images/cards/key_eff.xml" begin="1" end="1.5" />

        <MagicCard group="3" pos="0" custom_image="images/magic_cards/hearts_10" />
        <MagicCard group="4" pos="0" custom_image="images/magic_cards/spades_5" />
        <MagicCard group="2" pos="0" custom_image="images/magic_cards/diamonds_q" />

        <WrongClick font="./fonts/icambria28.txt" color="FFFFFFFF" />
    </Game>
</Layer>
<SubLocation name="solitaire1" type="embedded_ispy" close_outside="0">
    <Fade bkg_color="000000c0" time="0.1" />
    <Layer name="placeholders1" />
    <Layer name="solitaire_layer1" />
<ActionList name="finish_solitaire1">
	<Action name="Journal" level="10.1" />
	<Action name="Journal" level="10.2" />
    <Action name="Sublocation" location="solitaire1" show="0" />
	<Action name="Sublocation" location="clue_window1" />
</ActionList>
</SubLocation>
<SubLocation name="solitaire2" type="embedded_ispy" close_outside="0">
    <Fade bkg_color="000000c0" time="0.1" />
    <Layer name="placeholders2" />
    <Layer name="solitaire_layer2" />
<ActionList name="finish_solitaire2">
	<Action name="Journal" level="10.3" />
	<Action name="Journal" level="10.4" />
	<Action name="Journal" level="10.5" />
    <Action name="Sublocation" location="solitaire2" show="0" />
	<Action name="Sublocation" location="clue_window2" />
</ActionList>
</SubLocation>
<SubLocation name="solitaire3" type="embedded_ispy" close_outside="0">
    <Fade bkg_color="000000c0" time="0.1" />
    <Layer name="placeholders3" />
    <Layer name="solitaire_layer3" />
<ActionList name="finish_solitaire3">
	<Action name="Journal" level="10.6" />
	<Action name="Journal" level="10.7" />
	<Action name="Journal" level="10.8" />
    <Action name="Sublocation" location="solitaire3" show="0" />
	<Action name="Sublocation" location="clue_window3" />
</ActionList>
</SubLocation>
<Layer name="clue_window_bg1" x="200" y="75" path="./images/clue_window/clue_window_bg" />
<Layer name="found_item1" x="400" y="268" path="./images/clue_mcards/spades_3" transparent="1" />
<Layer name="found_item12" x="460" y="278" path="./images/clue_mcards/diamonds_9" transparent="1" />
<Layer name="clue_text1" class="text" font="./fonts/SegoePrint18Bold.txt" color="FFFFFFFF" loc_text="CLUE_MCARD21" abs_pos="315,195" width="390" fixed="1" />
<Layer name="click_text1" class="text" font="./fonts/SegoePrint18Bold.txt" color="FFFFFFFF" loc_text="CLUE_CLICK_TEXT" abs_pos="437,568" width="250" />
<SubLocation name="clue_window1" type="embedded_ispy" close_outside="0">
    <Fade bkg_color="00000000" time="0.1" />
	<Object name="clue_window_bg1" />
	<Layer name="clue_window_bg1" />
	<Layer name="found_item1" />
	<Layer name="found_item12" />
	<Layer name="clue_text1" />
	<Layer name="click_text1" />
</SubLocation>
<Object name="clue_window_bg1">
    <Click>
		<Action name="ChangeFlag" set="[global]s1_completed" />
		<Action name="Timer" id="timer_s1c" time="0.1" />
    </Click>
    <OnTimer>
        <Timer timer_id="timer_s1c">
            <Action name="Sublocation" location="clue_window1" show="0" />
        </Timer>
    </OnTimer>
</Object>
<Layer name="clue_window_bg2" x="200" y="75" path="./images/clue_window/clue_window_bg" />
<Layer name="found_item2" x="370" y="263" path="./images/clue_mcards/clubs_4" transparent="1" />
<Layer name="found_item22" x="430" y="273" path="./images/clue_mcards/hearts_a" transparent="1" />
<Layer name="found_item23" x="490" y="283" path="./images/clue_mcards/clubs_6" transparent="1" />
<Layer name="clue_text2" class="text" font="./fonts/SegoePrint18Bold.txt" color="FFFFFFFF" loc_text="CLUE_MCARD22" abs_pos="315,195" width="390" fixed="1" />
<Layer name="click_text2" class="text" font="./fonts/SegoePrint18Bold.txt" color="FFFFFFFF" loc_text="CLUE_CLICK_TEXT" abs_pos="437,568" width="250" />
<SubLocation name="clue_window2" type="embedded_ispy" close_outside="0">
    <Fade bkg_color="00000000" time="0.1" />
	<Object name="clue_window_bg2" />
	<Layer name="clue_window_bg2" />
	<Layer name="found_item2" />
	<Layer name="found_item22" />
	<Layer name="found_item23" />
	<Layer name="clue_text2" />
	<Layer name="click_text2" />
</SubLocation>
<Object name="clue_window_bg2">
    <Click>
		<Action name="ChangeFlag" set="[global]s2_completed" />
		<Action name="Timer" id="timer_s2c" time="0.1" />
    </Click>
    <OnTimer>
        <Timer timer_id="timer_s2c">
            <Action name="Sublocation" location="clue_window2" show="0" />
        </Timer>
    </OnTimer>
</Object>
<Layer name="clue_window_bg3" x="200" y="75" path="./images/clue_window/clue_window_bg" />
<Layer name="found_item3" x="370" y="263" path="./images/clue_mcards/spades_5" transparent="1" />
<Layer name="found_item32" x="430" y="273" path="./images/clue_mcards/diamonds_q" transparent="1" />
<Layer name="found_item33" x="490" y="283" path="./images/clue_mcards/hearts_10" transparent="1" />
<Layer name="clue_text3" class="text" font="./fonts/SegoePrint18Bold.txt" color="FFFFFFFF" loc_text="CLUE_MCARD23" abs_pos="315,195" width="390" fixed="1" />
<Layer name="click_text3" class="text" font="./fonts/SegoePrint18Bold.txt" color="FFFFFFFF" loc_text="CLUE_CLICK_TEXT" abs_pos="437,568" width="250" />
<SubLocation name="clue_window3" type="embedded_ispy" close_outside="0">
    <Fade bkg_color="00000000" time="0.1" />
	<Object name="clue_window_bg3" />
	<Layer name="clue_window_bg3" />
	<Layer name="found_item3" />
	<Layer name="found_item32" />
	<Layer name="found_item33" />
	<Layer name="clue_text3" />
	<Layer name="click_text3" />
</SubLocation>
<Object name="clue_window_bg3">
    <Click>
		<Action name="ChangeFlag" set="[global]s3_completed" />
		<Action name="Timer" id="timer_s3c" time="0.1" />
    </Click>
    <OnTimer>
        <Timer timer_id="timer_s3c">
            <Action name="Sublocation" location="clue_window3" show="0" />
        </Timer>
    </OnTimer>
</Object>

<Sounds>
    <Sound id="cards_deal" path="sounds/cards_deal.ogg" />
    <Sound id="card_activate" path="sounds/card_activate.ogg" />
    <Sound id="cards_disappear" path="sounds/cards_disappear.ogg" />
    <Sound id="div_card_wrong" path="sounds/div_card_wrong.ogg" />
    <Sound id="div_card_sel" path="sounds/div_card_sel.ogg" />
</Sounds>
