<table><tr><td style="">rudranilbasu created this revision.<br />rudranilbasu added reviewers: jjazeix, timotheegiet.<br />Restricted Application added a subscriber: KDE Edu.<br />Restricted Application added a project: KDE Edu.
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D9475" rel="noreferrer">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>Since most of the Animation Components attached to each of the Vannes of the<br />
Ballast tanks do the same function, it is replaced with two functions ballastTankOnAnim<br />
and ballastTankOffAnim, which is called via the updateVannes() function.</p>

<p>The updateVannes() function is also called from Submarine.qml, to fix the error of<br />
the animations not being called via the keyboard controls.</p>

<p>Also fixed Vannes' state not updating on level changes by adding a reset() method<br />
which sets the angle of the visible Vannes to zero</p>

<div class="remarkup-code-block" style="margin: 12px 0;" data-code-lang="text" data-sigil="remarkup-code-block"><pre class="remarkup-code" style="font: 11px/15px "Menlo", "Consolas", "Monaco", monospace; padding: 12px; margin: 0; background: rgba(71, 87, 120, 0.08);">rotateLeftFill.angle = 0
rotateLeftFlush.angle = 0

rotateCentralFill.angle = 0
rotateCentralFlush.angle = 0

rotateRightFill.angle = 0
rotateRightFlush.angle = 0</pre></div></div></div><br /><div><strong>REPOSITORY</strong><div><div>R2 GCompris</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D9475" rel="noreferrer">https://phabricator.kde.org/D9475</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>src/activities/submarine/Controls.qml<br />
src/activities/submarine/Submarine.qml<br />
src/activities/submarine/submarine.js</div></div></div><br /><div><strong>To: </strong>rudranilbasu, jjazeix, timotheegiet<br /><strong>Cc: </strong>KDE Edu, narvaez, apol<br /></div>