<!--This Document is generated by GameMaker, if you edit it by hand then you do so at your own risk!-->
<object>
  <spriteName>ssEDFX</spriteName>
  <solid>0</solid>
  <visible>-1</visible>
  <depth>-10000</depth>
  <persistent>-1</persistent>
  <parentName>&lt;undefined&gt;</parentName>
  <maskName>&lt;undefined&gt;</maskName>
  <events>
    <event eventtype="0" enumb="0">
      <action>
        <libid>1</libid>
        <id>603</id>
        <kind>7</kind>
        <userelative>0</userelative>
        <isquestion>0</isquestion>
        <useapplyto>-1</useapplyto>
        <exetype>2</exetype>
        <functionname></functionname>
        <codestring></codestring>
        <whoName>self</whoName>
        <relative>0</relative>
        <isnot>0</isnot>
        <arguments>
          <argument>
            <kind>1</kind>
            <string>steps = 0;
drawbar = 0;
temp = 0;
bgw = 0;
gototemp = 0;
alarm[1] = 400;
barfx = 0;
powercelltext = string(get_text("Misc", "TowerCellTemp"))
barratio = max(string_length(string(powercelltext))*5+50, 162)/162;

mus_current_stop();
</string>
          </argument>
        </arguments>
      </action>
    </event>
    <event eventtype="2" enumb="2">
      <action>
        <libid>1</libid>
        <id>603</id>
        <kind>7</kind>
        <userelative>0</userelative>
        <isquestion>0</isquestion>
        <useapplyto>-1</useapplyto>
        <exetype>2</exetype>
        <functionname></functionname>
        <codestring></codestring>
        <whoName>self</whoName>
        <relative>0</relative>
        <isnot>0</isnot>
        <arguments>
          <argument>
            <kind>1</kind>
            <string>if (global.ingame &amp;&amp; room != rm_transition) {
    if (temp &gt;= 100) {
        if(room == rm_a4b01){
            event_user(0);
        }
    } else alarm[2] = 30;
} else alarm[2] = 1;
</string>
          </argument>
        </arguments>
      </action>
    </event>
    <event eventtype="2" enumb="1">
      <action>
        <libid>1</libid>
        <id>603</id>
        <kind>7</kind>
        <userelative>0</userelative>
        <isquestion>0</isquestion>
        <useapplyto>-1</useapplyto>
        <exetype>2</exetype>
        <functionname></functionname>
        <codestring></codestring>
        <whoName>self</whoName>
        <relative>0</relative>
        <isnot>0</isnot>
        <arguments>
          <argument>
            <kind>1</kind>
            <string>if (global.ingame &amp;&amp; room != rm_transition) {
    if (temp &lt; 100) temp += 1;
    alarm[1] = 300;
} else alarm[1] = 1;
</string>
          </argument>
        </arguments>
      </action>
    </event>
    <event eventtype="2" enumb="0">
      <action>
        <libid>1</libid>
        <id>603</id>
        <kind>7</kind>
        <userelative>0</userelative>
        <isquestion>0</isquestion>
        <useapplyto>-1</useapplyto>
        <exetype>2</exetype>
        <functionname></functionname>
        <codestring></codestring>
        <whoName>self</whoName>
        <relative>0</relative>
        <isnot>0</isnot>
        <arguments>
          <argument>
            <kind>1</kind>
            <string>if (global.ingame &amp;&amp; room != rm_transition) {
    if (temp &lt; gototemp) {
        temp += 1;
        alarm[0] = 20;
    }
} else alarm[0] = 1;
</string>
          </argument>
        </arguments>
      </action>
    </event>
    <event eventtype="3" enumb="2">
      <action>
        <libid>1</libid>
        <id>603</id>
        <kind>7</kind>
        <userelative>0</userelative>
        <isquestion>0</isquestion>
        <useapplyto>-1</useapplyto>
        <exetype>2</exetype>
        <functionname></functionname>
        <codestring></codestring>
        <whoName>self</whoName>
        <relative>0</relative>
        <isnot>0</isnot>
        <arguments>
          <argument>
            <kind>1</kind>
            <string>if (!surface_exists(oControl.gui_surface)) oControl.gui_surface = surface_create(320 + (oControl.widescreen_space), 240);
if (surface_exists(oControl.gui_surface)) {
    surface_set_target(oControl.gui_surface);
    if (global.ingame &amp;&amp; room != rm_transition &amp;&amp; oControl.displaygui &amp;&amp; instance_exists(oCharacter)) {
        if (drawbar) {
            draw_set_color(c_white);
            draw_set_alpha(1);
            draw_background_ext(bgA4EscapeBarBG, ((view_wview[0] + (oControl.widescreen_space)) / 2 - (81*barratio)), 50, barratio, 1, 0, -1, 0.8); //added
            draw_background_part_ext(bgA4EscapeBar, 0, 0, bgw, 8, ((view_wview[0] + (oControl.widescreen_space)) / 2 - (80*barratio)), 59, barratio, 1, -1, 1); //added

            //draw_background_ext(bgA4EscapeBarBG, view_wview[0] / 2 - 81, 50, 1, 1, 0, -1, 0.8);
            //draw_background_part(bgA4EscapeBar, 0, 0, bgw, 8, view_wview[0] / 2 - 80, 59);
            
            draw_set_font(fontMenuSmall);
            draw_set_halign(fa_center);
            draw_text(((view_wview[0] + (oControl.widescreen_space)) / 2), 48, string(get_text("Misc", "TowerCellTemp")));
            draw_set_halign(fa_left);
            if (temp == 100) {
                draw_set_blend_mode(bm_add);
                //repeat (2) draw_background_ext(bgA4EscapeBar, view_wview[0] / 2 - 80, 59, 1, 1, 0, -1, barfx * 0.2);
                repeat (2) draw_background_ext(bgA4EscapeBar, ((view_wview[0] + (oControl.widescreen_space)) / 2 - (80*barratio)), 59, barratio, 1, 0, -1, barfx * 0.2); //added
                draw_set_blend_mode(bm_normal);
            }
        }
    }
    surface_reset_target();
}
</string>
          </argument>
        </arguments>
      </action>
    </event>
    <event eventtype="3" enumb="0">
      <action>
        <libid>1</libid>
        <id>603</id>
        <kind>7</kind>
        <userelative>0</userelative>
        <isquestion>0</isquestion>
        <useapplyto>-1</useapplyto>
        <exetype>2</exetype>
        <functionname></functionname>
        <codestring></codestring>
        <whoName>self</whoName>
        <relative>0</relative>
        <isnot>0</isnot>
        <arguments>
          <argument>
            <kind>1</kind>
            <string>if (global.ingame &amp;&amp; room != rm_transition) {
    if (steps == 300) {
        instance_create(0, 0, oA4EscapeSeqFX);
        sfx_loop(sndA4AlarmLoop);
        mus_loop(musReactor);
        drawbar = 1;
    }
    if (steps &gt; 300) {
        bgw = temp / 100 * 160;
        if (temp &gt;= 100) {
            if (room == rm_a4b02 || room == rm_a4b03 || room == rm_a4b04 || room == rm_a4b05 || room == rm_a4b06 || room == rm_a4b07 || room == rm_a4b08 || room == rm_a4b09 || room == rm_a4b10 || room == rm_a4b11 || room == rm_a4b12 || room == rm_a4b13 || room == rm_a4b14 || room == rm_a4b15 || room == rm_a4b16 || room == rm_a4b17 || room == rm_a4b18 || room == rm_a4b19) {
                instance_create(oCharacter.x, oCharacter.y + 480, oA4EscapeExplosionFail);
                instance_destroy();
            } else {
                if(room != rm_a4b01){
                    with (oA4EscapeSeqFX) instance_destroy();
                    sfx_stop_loops();
                    global.event[203] = 9;
                    instance_destroy();
                    popup_text_ext("Reactor destroyed", 240);
                }
            }
        }
    }
    steps += 1;
    barfx += 1;
    if (barfx &gt; 5) barfx = 0;
}
if (global.event[203] == 0 || room == titleroom) instance_destroy();
</string>
          </argument>
        </arguments>
      </action>
    </event>
    <event eventtype="7" enumb="10">
      <action>
        <libid>1</libid>
        <id>603</id>
        <kind>7</kind>
        <userelative>0</userelative>
        <isquestion>0</isquestion>
        <useapplyto>-1</useapplyto>
        <exetype>2</exetype>
        <functionname></functionname>
        <codestring></codestring>
        <whoName>self</whoName>
        <relative>0</relative>
        <isnot>0</isnot>
        <arguments>
          <argument>
            <kind>1</kind>
            <string>with (oA4EscapeSeqFX) instance_destroy();
global.event[203] = 9;
with (inst_128777) targetroom = rm_a4b02a;
make_escape_explosion();
with (inst_128787) y += 240;
with (inst_128788) y += 240;
with (inst_128790) y += 240;
with (inst_128789) y += 240;
instance_destroy();
</string>
          </argument>
        </arguments>
      </action>
    </event>
    <event eventtype="7" enumb="4">
      <action>
        <libid>1</libid>
        <id>603</id>
        <kind>7</kind>
        <userelative>0</userelative>
        <isquestion>0</isquestion>
        <useapplyto>-1</useapplyto>
        <exetype>2</exetype>
        <functionname></functionname>
        <codestring></codestring>
        <whoName>self</whoName>
        <relative>0</relative>
        <isnot>0</isnot>
        <arguments>
          <argument>
            <kind>1</kind>
            <string>if (room == rm_a4b01) alarm[2] = 800;
</string>
          </argument>
        </arguments>
      </action>
    </event>
    <event eventtype="8" enumb="0">
      <action>
        <libid>1</libid>
        <id>603</id>
        <kind>7</kind>
        <userelative>0</userelative>
        <isquestion>0</isquestion>
        <useapplyto>-1</useapplyto>
        <exetype>2</exetype>
        <functionname></functionname>
        <codestring></codestring>
        <whoName>self</whoName>
        <relative>0</relative>
        <isnot>0</isnot>
        <arguments>
          <argument>
            <kind>1</kind>
            <string></string>
          </argument>
        </arguments>
      </action>
    </event>
  </events>
  <PhysicsObject>0</PhysicsObject>
  <PhysicsObjectSensor>0</PhysicsObjectSensor>
  <PhysicsObjectShape>0</PhysicsObjectShape>
  <PhysicsObjectDensity>0.5</PhysicsObjectDensity>
  <PhysicsObjectRestitution>0.100000001490116</PhysicsObjectRestitution>
  <PhysicsObjectGroup>0</PhysicsObjectGroup>
  <PhysicsObjectLinearDamping>0.100000001490116</PhysicsObjectLinearDamping>
  <PhysicsObjectAngularDamping>0.100000001490116</PhysicsObjectAngularDamping>
  <PhysicsObjectFriction>0.200000002980232</PhysicsObjectFriction>
  <PhysicsObjectAwake>-1</PhysicsObjectAwake>
  <PhysicsObjectKinematic>-1</PhysicsObjectKinematic>
  <PhysicsShapePoints/>
</object>
