RPI/Mathactivity/XML/goal mockup

From OLPC
< RPI‎ | Mathactivity‎ | XML
Jump to: navigation, search
<goal id="house">
<title>My House</title>
<display modify="self">
<image id="house_picture" x="0" y="0" fixed="true">
<svgblock>
#Insert SVG here
</svgblock>
<svgblock id="house_paint_color">
#555555
</svgblock>
<svgblock>
#Rest of SVG here
</svgblock>
</image>
</display>
<materials>
<material id="stone" quantity="10" />
<material id="sand" quantity="10" />
<material id="wood" quantity="20" />
</materials>
<problems>
<problem id="make_house" />
</problems>
<subgoals>
<subgoal id="paint" stage="1" />
<subgoal id="frame" stage="0" />
<subgoal id="roof" stage="0" />
<subgoal id="barn" stage="2" />
</subgoals>
</goal>
<goal id="paint" require="house" >
<title>Paint</title>
<display modify="parent">
<mod_image id="house_picture">
<svgblock id="house_paint_color">
<choice default="red" />
<option id="red">
<title>Red Paint</title>
<value>#FF0000</value>
</option>
<option id="green">
<title>Green Paint</title>
<value>#00FF00</value>
</option>
<option id="blue">
<title>Blue Paint</title>
<value>#0000FF</value>
</option>
</choice>
</svgblock>
</mod_image>
</display>
<materials>
<material id="colored_berries" quantity="10" />
</materials>
</goal>
<goal id="barn" require="house" >
<title>Barn</title>
<display modify="self">
<image id="barn_picture" x="30" y="0" fixed="true">
<svgblock>
#Insert SVG here
</svgblock>
</image>
</display>
<materials>
<material id="stone" quantity="5" />
<material id="sand" quantity="5" />
<material id="wood" quantity="10" />
</materials>
</goal>