<?xml version="0.1" encoding="UTF8" ?>
<Goal id="LEVEL_24_GOAL" />
<Interface color="fbe5bdff" />
<Recharge noskip="0" skip="1"/>

<Effect name="slides_eff" after="slides" screen="1" particles="./ps/24_highlight.ps" visible="0" />
<Effect name="background_eff" after="background" screen="1" particles="./ps/24_proector.ps" visible="0" />
<Object name="dark_bg" visible="1" adx="584">
    <Click />
    <Apply />
    <Effects>
        <Idle />
    </Effects>
</Object>
<Object name="slide_ear" active="0">
    <Highlight type="hand_point_mask" />
    <Click />
    <Apply />
    <Effects>
        <Idle />
    </Effects>
</Object>
<Object name="slide_eyes" active="0">
    <Highlight type="hand_point_mask" />
    <Click />
    <Apply />
    <Effects>
        <Idle />
    </Effects>
</Object>
<Object name="slide_formofaface" active="0">
    <Highlight type="hand_point_mask" />
    <Click />
    <Apply />
    <Effects>
        <Idle />
    </Effects>
</Object>
<Object name="slide_mouth" active="0">
    <Highlight type="hand_point_mask" />
    <Click />
    <Apply />
    <Effects>
        <Idle />
    </Effects>
</Object>
<Object name="slide_nose" active="0">
    <Highlight type="hand_point_mask" />
    <Click />
    <Apply />
    <Effects>
        <Idle />
    </Effects>
</Object>
<Object name="zadvizhka" dx="-113" dy="-10">
    <Click />
    <Apply />
    <Effects>
        <Idle />
    </Effects>
</Object>
<!--
<Task name="turn_on" object="trigger" ahidden="1"/>
<Task name="load_nose" object="slide_nose" />
<Task name="load_mouth" object="slide_mouth" />
<Task name="load_face" object="slide_formofaface" />
<Task name="load_eyes" object="slide_eyes" />
<Task name="load_ears" object="slide_ear" />
-->
<Object name="trigger">
    <Highlight type="hand_point_mask" />
    <Layer name="button_power_off" active="1" />
    <Layer name="button_power_on" />
    <Click>
        <Action name="objectstate" active="0" sound="buttonclick" />
        <Action name="objectstate" target="slide_nose" active="1" />
        <Action name="objectstate" target="slide_mouth" active="1" />
        <Action name="objectstate" target="slide_formofaface" active="1" />
        <Action name="objectstate" target="slide_ear" active="1" />
        <Action name="objectstate" target="slide_eyes" active="1" />
        <Action name="switchlayer" />
        <Action name="starteffect" target="dark_bg" effect="move" dst_x="584" start="0.5" end="0.5" />
        <Action name="starteffect" target="dark_bg" effect="alpha" src="255" dst="0" start="0" end="0.4" />
        <Action name="starteffect" target_layer="light" effect="alpha" src="0" dst="255" start="0" end="0.4" />
        <Action name="layerstate" layer="background_eff" visible="1" />
        <Action name="layerstate" layer="slides_eff" visible="1" />
        <Action name="starteffect" target="dark_bg" effect="alpha" src="0" dst="255" start="0.7" end="0.7" />
        <Action name="timer" id="projector_on" time="1" />
    </Click>
    <OnTimer timer_id="projector_on">
        <Action name="changeflag" set="projector_on" />
        <Action name="completetask" task="turn_on" />
    </OnTimer>
    <FlagChanged state="skipped * !projector_on" once="1">
	<Action name="objectstate" active="0" />
        <Action name="changeflag" set="projector_on" />
        <Action name="completetask" task="turn_on" />
        <Action name="switchlayer" fade_time="0"/>
        <Action name="starteffect" target="dark_bg" effect="move" dst_x="584" start="0" end="0" />
        <Action name="starteffect" target="dark_bg" effect="alpha" src="255" dst="0" start="0" end="0" />
        <Action name="starteffect" target_layer="light" effect="alpha" src="0" dst="255" start="0" end="0" />
        <Action name="layerstate" layer="background_eff" visible="1" fade_time="0"/>
        <Action name="layerstate" layer="slides_eff" visible="1" />
        <Action name="starteffect" target="dark_bg" effect="alpha" src="0" dst="255" start="0" end="0" />
    </FlagChanged>
</Object>
<PhotoRobot dx="-584" on_text="LEVEL_24_GOAL_1" loaded_text="LEVEL_24_GOAL_2" id_font="./fonts/verdana10.txt" id_color="FFFFFFFF" lock_color="00FF00FF">
    <SlideDrop x="0" y="455" w="435" h="155" layer="projector1" />
    <Part stock="slide_formofaface" on_indicator="pictoram_face_on" buttons="1" id_pos="960, 150">
        <Slide layer="face_01" />
        <Slide layer="face_02" />
        <Slide layer="face_03" correct="1" />
        <Slide layer="face_04" />
        <Slide layer="face_05" />
    </Part>
    <Part stock="slide_eyes" on_indicator="pictoram_eye_on" buttons="2" id_pos="960, 182">
        <Slide layer="eyes_01" correct="1" />
        <Slide layer="eyes_02" />
        <Slide layer="eyes_03" />
        <Slide layer="eyes_04" />
        <Slide layer="eyes_05" />
    </Part>
    <Part stock="slide_ear" on_indicator="pictoram_ear_on" buttons="3" id_pos="962, 215">
        <Slide layer="ear_01" />
        <Slide layer="ear_02" />
        <Slide layer="ear_03" correct="1" />
        <Slide layer="ear_04" />
        <Slide layer="ear_05" />
    </Part>
    <Part stock="slide_nose" on_indicator="pictoram_nose_on" buttons="4" id_pos="963, 249">
        <Slide layer="nose_01" />
        <Slide layer="nose_02" />
        <Slide layer="nose_03" />
        <Slide layer="nose_04" correct="1" />
        <Slide layer="nose_05" />
    </Part>
    <Part stock="slide_mouth" on_indicator="pictoram_lips_on" buttons="5" id_pos="964, 284">
        <Slide layer="mouth_01" />
        <Slide layer="mouth_02" />
        <Slide layer="mouth_03" correct="1" />
        <Slide layer="mouth_04" />
        <Slide layer="mouth_05" />
    </Part>
    <SlideEffects>
        <Effect name="move" src_x="0" dst_x="-584" target_layer="prev" start="0" end="0.5" />
        <Effect name="move" src_x="0" dst_x="584" target_layer="next" start="0.5" end="1" />
        <Effect name="move" target_layer="dark_bg" src_x="0" dst_x="-584" start="0" end="0.5" />
        <Effect name="move" target_layer="dark_bg" src_x="-584" dst_x="0" start="0.5" end="1" />
        <Effect name="move" target_layer="zadvizhka" dst_x="113" dst_y="10" start="0" end="0.5" />
        <Effect name="move" target_layer="zadvizhka" src_x="113" src_y="10" dst_x="0" dst_y="0" start="0.5" end="1" />
    </SlideEffects>
    <Button id="5" layer="but_lips_next_up" hover="but_lips_next_over" pressed="but_lips_next_down" disabled="but_lips_next_upcopy" sound_pressed="buttonclick" />
    <Button id="-5" layer="but_lips_prev_up" hover="but_lips_prev_over" pressed="but_lips_prev_down" disabled="but_lips_prev_upcopy" sound_pressed="buttonclick" />
    <Button id="4" layer="but_nose_next_up" hover="but_nose_next_over" pressed="but_nose_next_down" disabled="but_nose_next_upcopy" sound_pressed="buttonclick" />
    <Button id="-4" layer="but_nose_prev_up" hover="but_nose_prev_over" pressed="but_nose_prev_down" disabled="but_nose_prev_upcopy" sound_pressed="buttonclick" />
    <Button id="3" layer="but_ears_next_up" hover="but_ears_next_over" pressed="but_ears_next_down" disabled="but_ears_next_upcopy" sound_pressed="buttonclick" />
    <Button id="-3" layer="but_ears_prev_up" hover="but_ears_prev_over" pressed="but_ears_prev_down" disabled="but_ears_prev_upcopy" sound_pressed="buttonclick" />
    <Button id="2" layer="but_eyes_next_up" hover="but_eyes_next_over" pressed="but_eyes_next_down" disabled="but_eyes_next_upcopy" sound_pressed="buttonclick" />
    <Button id="-2" layer="but_eyes_prev_up" hover="but_eyes_prev_over" pressed="but_eyes_prev_down" disabled="but_eyes_prev_upcopy" sound_pressed="buttonclick" />
    <Button id="1" layer="but_face_next_up" hover="but_face_next_over" pressed="but_face_next_down" disabled="but_face_next_upcopy" sound_pressed="buttonclick" />
    <Button id="-1" layer="but_face_prev_up" hover="but_face_prev_over" pressed="but_face_prev_down" disabled="but_face_prev_upcopy" sound_pressed="buttonclick" />
</PhotoRobot>
<Object name="light">
    <Click />
    <Apply />
    <Effects>
        <Idle />
    </Effects>
</Object>

<Sounds>
    <Sound id="slide_in" path="sounds/slide_in.ogg" />
</Sounds>

<FinishActions>
    <Action name="Journal" level="29.1"/>
</FinishActions>