<?xml version="1.0" encoding="UTF-8"?>
<otrunk id="33754150-b594-11d9-9669-0800200aaa66" >

  <imports>
    <import class="org.concord.otrunk.OTSystem"/>
	<import class="org.concord.otrunk.view.OTViewEntry" />
	<import class="org.concord.otrunk.view.OTViewBundle" />
    <import class="org.concord.otrunk.view.OTViewEntry"/>
    <import class="org.concord.otrunk.view.OTViewService"/>
    <import class="org.concord.otrunk.ui.OTText"/>
    <import class="org.concord.otrunk.view.OTFolderObject"/>
    <import class="org.concord.otrunk.view.document.OTCompoundDoc"/>
	<import class="org.concord.otrunk.script.ui.OTScriptObject" />
	<import class="org.concord.otrunk.script.ui.OTScriptVariable" />
	<import class="org.concord.otrunk.script.ui.OTScriptVariableView" />
	<import class="org.concord.otrunk.script.ui.OTScriptVariableComponent" />
	<import class="org.concord.otrunk.script.js.OTJavascript" />
	<import class="org.concord.otrunk.script.OTScriptEngineBundle" />
	<import class="org.concord.otrunk.script.OTScriptEngineEntry" />
	<import class="org.concord.otrunk.ui.OTCardContainer" />
	<import class="org.concord.otrunk.ui.OTTextPane" />
	<import class="org.concord.otrunk.ui.question.OTQuestion"/>
	<import class="org.concord.otrunk.collisions.ui.OTGUIPanelViewConfig"/>
    <import class="org.concord.otrunk.collisions.OTGUIPanel"/>
    <import class="org.concord.data.ui.OTStartableToolBar"/>
  </imports>
  
  <objects>
    <OTSystem>
    
      <bundles>
        <OTScriptEngineBundle>
          <engines>
             <OTScriptEngineEntry 
             	objectClass="org.concord.otrunk.script.js.OTJavascript"
             	engineClass="org.concord.otrunk.script.js.OTJavascriptEngine"/>
          </engines>
        </OTScriptEngineBundle>
		<OTViewBundle id="f53ec800-af5b-11dd-ad8b-0800200c9a66">
          <viewEntries>
            <OTViewEntry local_id="text-edit"
              objectClass="org.concord.otrunk.ui.OTText" 
              viewClass="org.concord.otrunk.ui.swing.OTTextEditView"/>
            <OTViewEntry local_id="text-label"
              objectClass="org.concord.otrunk.ui.OTText" 
              viewClass="org.concord.otrunk.ui.swing.OTTextView"/>
            <OTViewEntry 
              objectClass="org.concord.otrunk.view.document.OTCompoundDoc"
              viewClass="org.concord.otrunk.view.document.OTDocumentView"/>               
            <OTViewEntry 
              objectClass="org.concord.data.ui.OTStartableToolBar"
              viewClass="org.concord.data.ui.OTStartableToolBarView"/>               
			<OTViewEntry
				objectClass="org.concord.otrunk.script.ui.OTScriptObject"
				viewClass="org.concord.otrunk.script.ui.OTScriptObjectView" />
			<OTViewEntry
            	objectClass="org.concord.otrunk.view.OTFolderObject"
            	viewClass="org.concord.otrunk.view.OTFolderObjectView"/>
			<OTViewEntry
				objectClass="org.concord.otrunk.ui.OTCardContainer"
				viewClass="org.concord.otrunk.ui.swing.OTCardContainerView" />
			<OTViewEntry
				objectClass="org.concord.otrunk.ui.OTTextPane"
				viewClass="org.concord.otrunk.ui.swing.OTTextPaneView" />
			<OTViewEntry
				objectClass="org.concord.otrunk.ui.question.OTQuestion"
				viewClass="org.concord.otrunk.ui.question.OTQuestionView" />
	        <OTViewEntry
	        	objectClass="org.concord.otrunk.collisions.OTGUIPanel"
	        	viewClass="org.concord.otrunk.collisions.ui.OTGUIPanelView"/>               
          </viewEntries>
        </OTViewBundle>
      </bundles>
      
      <root>
	      <OTFolderObject name="Treasure Hunt Activity - Step 1">
	  		<children>
		      	<OTCompoundDoc name="Activity with NO script">
		      		<bodyText>
				        <object refid="${dynamica_panel}"/>
				        <br/>
				        <object refid="${flow_buttons}"/>
				    </bodyText>
		        </OTCompoundDoc>
		      	<OTCompoundDoc id="e9807ea0-af5b-11dd-ad8b-0800200c9a66" name="Activity with script">
		      		<bodyText>
				        <object refid="${dynamica_panel}"/>
				        <object refid="${activity_script}"/>
				        <br/>
				        <object refid="${flow_buttons}"/>
				        <br/>
				        <object refid="${feedback_area}"/>
				    </bodyText>
		        </OTCompoundDoc>
		      	<OTCompoundDoc name="Question">
		      		<bodyText>
				        <object refid="${dynamica_panel}" viewid="${guipanel_non_editable}"/>
				        <br/>
				        The object above shows the path you did in the previous step.
				        <object refid="${question_object}"/>
				    </bodyText>
		        </OTCompoundDoc>
	  		</children>
	      </OTFolderObject>
      </root>
      
      <library>
    	<OTGUIPanel name="collisions" local_id="dynamica_panel" 
    		width="525" height="325" authoredDataURL="treasure_hunt_dynamica.xml"
    		saveWorkingData="true"/>
    	<OTStartableToolBar local_id="flow_buttons">
    		<startable><object refid="${dynamica_panel}"/></startable>
    	</OTStartableToolBar>
		<OTScriptObject local_id="activity_script">
			<variables>
				<OTScriptVariableComponent name="objView" reference="${dynamica_panel}" />
				<OTScriptVariable name="feedbackArea" reference="${feedback_area}" />
			</variables>
			<script>
				<OTJavascript src="treasure_hunt_activity.js"  />
			</script>
		</OTScriptObject>
		<OTCardContainer local_id="feedback_area">
			<cards>
				<object refid="${intro_text}"/>
				<object refid="${win_text}"/>
				<object refid="${noStartArrow_text}"/>
				<object refid="${arrowsOutside_text}"/>
				<object refid="${arrowsDisconnected_text}"/>
			</cards>
		</OTCardContainer>
		<OTTextPane local_id="intro_text">
			<text><html><blockquote><p><font size="4" face="Verdana">
			To find the treasure, drag the arrows to make a path for Bluebeard.
			</font></p></blockquote></html></text>
		</OTTextPane>
		<OTTextPane local_id="win_text">
			<text><html><blockquote><p><font size="4" face="Verdana">
			Good job. You found the treasure!
			</font></p></blockquote></html></text>
		</OTTextPane>
		<OTTextPane local_id="noStartArrow_text">
			<text><html><blockquote><p><font size="4" face="Verdana">
			Place the tail of the first <FONT color='2222FF'>blue</FONT> vector arrow 
			in the <FONT color='000000'>black</FONT> cross, so Bluebeard can start walking.
			</font></p></blockquote></html></text>
		</OTTextPane>
		<OTTextPane local_id="arrowsOutside_text">
			<text><html><blockquote><p><font size="4" face="Verdana">
			Place ALL the <FONT color='2222FF'>blue</FONT> vector arrows
			in the map, to make a continuous path for Bluebeard.
			</font></p></blockquote></html></text>
		</OTTextPane>
		<OTTextPane local_id="arrowsDisconnected_text">
			<text><html><blockquote><p><font size="4" face="Verdana">
			The <FONT color='2222FF'>blue</FONT> vector arrows 
			should make a continuous path for Bluebeard.
			</font></p></blockquote></html></text>
		</OTTextPane>
		<OTQuestion local_id="question_object">
			<prompt>
				<OTCompoundDoc>
		      		<bodyText>
		      		Q. Do you think you can try again with a different path and still find the treasure?
		      		</bodyText>
		      	</OTCompoundDoc>
		    </prompt>
			<input><OTText/></input>
		</OTQuestion>
        <OTGUIPanelViewConfig local_id="guipanel_non_editable" editable="false"
          objectClass="org.concord.otrunk.collisions.OTGUIPanel"
          viewClass="org.concord.otrunk.collisions.ui.OTGUIPanelView"/>               
	  </library>
    </OTSystem>
  </objects>
</otrunk>
