|
|
|
|
<?xml version="1.0" encoding="utf-8" ?>
|
|
|
|
|
<c2eventsheet>
|
|
|
|
|
<!--All the 'name' attributes are ignored by Construct 2 - they are there for readability only.-->
|
|
|
|
|
<name>ES - Preloader</name>
|
|
|
|
|
<events>
|
|
|
|
|
<comment>Import CSS and other Files</comment>
|
|
|
|
|
<event-block sid="106094978557666">
|
|
|
|
|
<conditions>
|
|
|
|
|
<condition id="-2" name="On start of layout" sid="301759806984551" type="System" />
|
|
|
|
|
</conditions>
|
|
|
|
|
<actions>
|
|
|
|
|
<action id="0" name="Import file" sid="394684443977430" type="Import">
|
|
|
|
|
<param id="0" name="Import file">"buttonstyles.css"</param>
|
|
|
|
|
</action>
|
|
|
|
|
<action id="2" name="Set CSS style" sid="624064939754692" type="PreloaderBar">
|
|
|
|
|
<param id="0" name="Property name">"background-color"</param>
|
|
|
|
|
<param id="1" name="Value">"#000000"</param>
|
|
|
|
|
</action>
|
|
|
|
|
<action id="2" name="Set CSS style" sid="205936326275221" type="PreloaderBar">
|
|
|
|
|
<param id="0" name="Property name">"color"</param>
|
|
|
|
|
<param id="1" name="Value">"#0000FF"</param>
|
|
|
|
|
</action>
|
|
|
|
|
</actions>
|
|
|
|
|
</event-block>
|
|
|
|
|
<comment>Progress bar and loading</comment>
|
|
|
|
|
<event-block sid="407600447699784">
|
|
|
|
|
<conditions>
|
|
|
|
|
<condition id="-2" name="On start of layout" sid="521637378565393" type="System" />
|
|
|
|
|
</conditions>
|
|
|
|
|
<actions>
|
|
|
|
|
<action id="-16" name="Wait" sid="715071429959216" type="System">
|
|
|
|
|
<param id="0" name="Seconds">0.2</param>
|
|
|
|
|
</action>
|
|
|
|
|
</actions>
|
|
|
|
|
</event-block>
|
|
|
|
|
<event-block sid="354924583797983">
|
|
|
|
|
<conditions>
|
|
|
|
|
<condition id="-1" name="Every tick" sid="335819371251369" type="System" />
|
|
|
|
|
</conditions>
|
|
|
|
|
<actions>
|
|
|
|
|
<action id="3" name="Set progress" sid="725026166485727" type="PreloaderBar">
|
|
|
|
|
<param id="0" name="Value">round(loadingprogress * 100)</param>
|
|
|
|
|
</action>
|
|
|
|
|
</actions>
|
|
|
|
|
</event-block>
|
|
|
|
|
<comment>Handle data load completion and start the game</comment>
|
|
|
|
|
<event-block sid="707634872286812">
|
|
|
|
|
<conditions>
|
|
|
|
|
<condition id="-25" name="On loader layout complete" sid="986128008632173" type="System" />
|
|
|
|
|
<condition id="-8" name="Compare two values" sid="426367472133409" type="System">
|
|
|
|
|
<param id="0" name="First value">loadingprogress</param>
|
|
|
|
|
<param id="1" name="Comparison">0</param>
|
|
|
|
|
<param id="2" name="Second value">1</param>
|
|
|
|
|
</condition>
|
|
|
|
|
</conditions>
|
|
|
|
|
<actions>
|
|
|
|
|
<action id="3" name="Set progress" sid="960649115845165" type="PreloaderBar">
|
|
|
|
|
<param id="0" name="Value">round(loadingprogress * 100)</param>
|
|
|
|
|
</action>
|
|
|
|
|
<action id="-16" name="Wait" sid="431223496906133" type="System">
|
|
|
|
|
<param id="0" name="Seconds">0.5</param>
|
|
|
|
|
</action>
|
|
|
|
|
<action id="-2" name="Go to layout" sid="827169667805913" type="System">
|
|
|
|
|
<param id="0" name="Layout">Intro Scene</param>
|
|
|
|
|
</action>
|
|
|
|
|
</actions>
|
|
|
|
|
</event-block>
|
|
|
|
|
</events>
|
|
|
|
|
</c2eventsheet>
|