This is the repository for Yandols' Bachelor's Degree Final Year Project Game (2019). Game created in Construct 2 and Launcher/Updater is created with AHK.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ResistanceSaga/Event sheets/ES - Preloader.xml

73 lines
3.6 KiB

<?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">&quot;buttonstyles.css&quot;</param>
</action>
<action id="2" name="Set CSS style" sid="624064939754692" type="PreloaderProgressBar">
<param id="0" name="Property name">&quot;background-color&quot;</param>
<param id="1" name="Value">&quot;#000000&quot;</param>
</action>
<action id="2" name="Set CSS style" sid="205936326275221" type="PreloaderProgressBar">
<param id="0" name="Property name">&quot;color&quot;</param>
<param id="1" name="Value">&quot;#0000FF&quot;</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>
<action id="1" name="Set visible" sid="497581675156368" type="PreloaderProgressBar">
<param id="0" name="Visibility">1</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="PreloaderProgressBar">
<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 disabled="1" 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="PreloaderProgressBar">
<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>