You've already forked AM2R-Community-Updates
mirror of
https://github.com/izzy2lost/AM2R-Community-Updates.git
synced 2026-03-10 11:23:35 -07:00
307 lines
9.4 KiB
XML
307 lines
9.4 KiB
XML
<!--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><undefined></parentName>
|
|
<maskName><undefined></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 && room != rm_transition) {
|
|
if (temp >= 100) {
|
|
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 && room != rm_transition) {
|
|
if (temp < 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 && room != rm_transition) {
|
|
if (temp < 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 && room != rm_transition && oControl.displaygui && 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 && room != rm_transition) {
|
|
if (steps == 300) {
|
|
instance_create(0, 0, oA4EscapeSeqFX);
|
|
sfx_loop(sndA4AlarmLoop);
|
|
mus_loop(musReactor);
|
|
drawbar = 1;
|
|
}
|
|
if (steps > 300) {
|
|
bgw = temp / 100 * 160;
|
|
if (temp >= 100) {
|
|
if (room != rm_a4b01) {
|
|
instance_create(oCharacter.x, oCharacter.y + 480, oA4EscapeExplosionFail);
|
|
instance_destroy();
|
|
}
|
|
}
|
|
}
|
|
steps += 1;
|
|
barfx += 1;
|
|
if (barfx > 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>
|