Commit 39a7ade5 authored by Nathan Bonnemberger's avatar Nathan Bonnemberger
Browse files

Modification made based on file sfrom Nico branch (bugged)

parent bac62ed6
......@@ -34,6 +34,7 @@ import lu.list.itis.dkd.tui.exception.BuildException;
import lu.list.itis.dkd.tui.scenario.bootstrapping.SceneBootstrapper;
import lu.list.itis.dkd.tui.utility.PropertiesFetcher;
import lu.list.itis.dkd.tui.widget.BaseWidget;
import lu.list.itis.dkd.tui.widget.PositionWidget;
import lu.list.itis.dkd.tui.widget.ValueWidget;
import lu.list.itis.dkd.tui.widget.corona.ConditionalCorona;
......@@ -138,6 +139,14 @@ public class Scenario {
final TangibleNumericalVariable variable = retrieveVariableByName(((ValueWidget) widget).getVariable().getName());
((ValueWidget) widget).setVariable(variable);
for (final ConditionalCorona corona : widget.getCoronas(ConditionalCorona.class)) {
corona.getTriggers().forEach(trigger -> corona.addVariable(retrieveVariableByName(trigger)));
}
}
if (widget instanceof PositionWidget) {
final TangibleNumericalVariable variable = retrieveVariableByName(((PositionWidget) widget).getVariable().getName());
((PositionWidget) widget).setVariable(variable);
for (final ConditionalCorona corona : widget.getCoronas(ConditionalCorona.class)) {
corona.getTriggers().forEach(trigger -> corona.addVariable(retrieveVariableByName(trigger)));
}
......
......@@ -56,7 +56,7 @@
<x>-158</x><y>-141</y><z>0</z> <!-- in pixel -->
<state>ScreenCoordinates</state>
</initialTranslation>
<triggerCondition>x &gt; 0</triggerCondition> <!-- Condition: &gt; &lt; == != &amp;&amp; -->
<triggerCondition>x &gt; 0.5</triggerCondition> <!-- Condition: &gt; &lt; == != &amp;&amp; -->
</corona>
</coronas>
</object>
......
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