Commit 9266a194 authored by Nathan Bonnemberger's avatar Nathan Bonnemberger
Browse files

Urban planning: .xml file begun

parent 24d77e7e
<?xml version="1.0" encoding="UTF-8"?>
<scenario>
<scenes>
<!-- Template Scene: Copy for each scene -->
<scene>
<name>Background0</name> <!-- The name of the scene -->
<image>scenarios/image.png</image> <!-- The image file name: needs to be 1920x1080 px -->
<sound>scenarios/sound.wav</sound> <!-- The sound file name -->
<triggerCondition>output &gt; 100</triggerCondition> <!-- Condition: &gt; &lt; == != &amp;&amp; -->
<drawPriority>0</drawPriority> <!-- Smaller drawing priority is occluded by bigger drawing priority -->
</scene>
</scenes>
<objects>
<!-- Template Widget: Copy for each widget -->
<object>
<type>ValueWidget</type>
<name>variable</name> <!-- change to name of the variable/widget -->
<lowerBound>0</lowerBound> <!-- lowerbound: min value -->
<upperBound>100</upperBound> <!-- upperbound: max value -->
<stepSize>1</stepSize> <!-- stepsize -->
<lowerStopAngle>0</lowerStopAngle>
<upperStopAngle>3.141592653589793</upperStopAngle>
<modifyValueOnRotation>true</modifyValueOnRotation> <!-- if false then it is a placement widget -->
<handles>
<handle>0</handle> <!-- Marker ID -->
</handles>
<variable>
<name>variable</name> <!-- name of the variable/widget -->
<value>0</value> <!-- value (for placement widget) -->
<unit>gr</unit> <!-- unit -->
</variable>
<coronas>
<!-- Template TextBox -->
<corona>
<handle>0</handle> <!-- Marker ID: needs to be the same for a same widget -->
<type>TextBox</type>
<drawPriority>272</drawPriority> <!-- needs to be different for each corona -->
<rotateWithHandle>false</rotateWithHandle> <!-- if true it rotates with the object -->
<lineWidth>200</lineWidth> <!-- width of one line in pixel -->
<font>Arial-20</font> <!-- Font and size -->
<centred>true</centred> <!-- if true is centered -->
<text></text> <!-- insert here text it should show some -->
<assignable>true</assignable> <!-- if true it shows the value of the variable, otherwise it shows the content of the "text" field -->
<initialTranslation>
<x>-2</x><y>51</y><z>0</z> <!-- in pixel -->
<state>ScreenCoordinates</state>
</initialTranslation>
</corona>
<!-- Template Gauge -->
<corona>
<handle>0</handle> <!-- Marker ID: needs to be the same for a same widget -->
<type>Gauge</type>
<width>200</width> <!-- width of the gauge -->
<height>200</height><!-- height of the gauge -->
<lowerBound>0</lowerBound> <!-- lowerbound: min value -->
<upperBound>2000</upperBound> <!-- upperbound: max value -->
<drawPriority>270</drawPriority> <!-- needs to be different for each corona -->
<scale>1</scale>
<title/>
<unit/>
<rotateWithHandle>false</rotateWithHandle>
<style>0</style> <!-- can be 0 1 2 or 3 -->
<colourscheme>0</colourscheme> <!-- can be 0 1 or 2 -->
<initialTranslation>
<x>-100</x><y>-100</y><z>0</z> <!-- in pixel -->
<state>ScreenCoordinates</state>
</initialTranslation>
</corona>
<!-- Template Image -->
<corona>
<handle>0</handle> <!-- Marker ID: needs to be the same for a same widget -->
<type>ConditionalCorona</type>
<drawPriority>273</drawPriority> <!-- needs to be different for each corona -->
<rotateWithHandle>false</rotateWithHandle> <!-- if true it rotates with the object -->
<image>scenarios/image2.png</image> <!-- The image file name -->
<triggerCondition>true</triggerCondition> <!-- Condition: &gt; &lt; == != &amp;&amp; -->
<spinOnCoronaCentre>false</spinOnCoronaCentre>
<triggers>
<trigger>variable</trigger> <!-- insert each variable you use for the trigger condition -->
</triggers>
<initialTranslation>
<x>-158</x><y>-141</y><z>0</z> <!-- in pixel -->
<state>ScreenCoordinates</state>
</initialTranslation>
</corona>
</coronas>
</object>
</objects>
<system>
<outputs>
<output> <!-- copy for each of the output variables -->
<name>output</name> <!-- insert output variable name -->
<unit></unit> <!-- unit of the output variable -->
</output>
</outputs>
<equations>
<equation> <!-- copy for each equation -->
<name>equation</name> <!-- name of the equation -->
<invoke>variable * 2</invoke> <!-- equation -->
<parameters>
<parameter> <!-- copy for each of the variables needed in the equation -->
<name>variable</name> <!-- insert variable name -->
<unit>gr</unit> <!-- unit of the variable -->
</parameter>
</parameters>
<results>
<result>
<name>output</name> <!-- insert output variable name -->
</result>
</results>
</equation>
</equations>
</system>
</scenario>
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment