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
168 lines
5.4 KiB
XML
168 lines
5.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>sSubScrSuit</spriteName>
|
|
<solid>0</solid>
|
|
<visible>-1</visible>
|
|
<depth>-10</depth>
|
|
<persistent>0</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>image_speed = 0.5;
|
|
halpha = 1;
|
|
targetx = x;
|
|
if (x < 160) fadedir = -1;
|
|
if (x > 160) fadedir = 1;
|
|
x += 90 * fadedir;
|
|
drawlines = 0;
|
|
suit = get_text("ItemsMenu", "Suits");
|
|
psuit = get_text("ItemsMenu", "PowerSuit");
|
|
vsuit = get_text("ItemsMenu", "VariaSuit");
|
|
gsuit = get_text("ItemsMenu", "GravitySuit");
|
|
|
|
</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>halpha -= 0.05;
|
|
if (halpha <= 0) halpha = 1;
|
|
if (oSubscreenMenu.fadeout == 0) {
|
|
if (x < targetx) x += 10;
|
|
if (x > targetx) x -= 10;
|
|
}
|
|
if (oSubscreenMenu.fadeout) hspeed = fadedir * 10;
|
|
if (oSubscreenMenu.active) {
|
|
drawlines = 1;
|
|
} else drawlines = 0;
|
|
</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>draw_sprite(sprite_index, -1, x, y);
|
|
draw_set_color(c_white);
|
|
draw_set_font(fontMenuTiny);
|
|
draw_set_alpha(1);
|
|
draw_sprite(sSubScrButton, global.currentsuit == 0, x - 28, y + 16);
|
|
draw_text(x - 20, y + 15 + oControl.subScrItemOffset, psuit);
|
|
if (global.item[5]) {
|
|
draw_sprite(sSubScrButton, global.currentsuit == 1, x - 28, y + 25);
|
|
draw_text(x - 20, y + 24 + oControl.subScrItemOffset, vsuit);
|
|
}
|
|
if (global.item[9]) {
|
|
draw_sprite(sSubScrButton, global.currentsuit == 2, x - 28, y + 34);
|
|
draw_text(x - 20, y + 33 + oControl.subScrItemOffset, gsuit);
|
|
}
|
|
draw_set_alpha(1);
|
|
draw_set_color(c_white);
|
|
if (drawlines) {
|
|
if (global.curropt == 0) {
|
|
draw_sprite_ext(sSubScrHilight, -1, x - 28, y + 16, 1, 1, 0, -1, halpha);
|
|
draw_line(x + 34, y + 18, x + 50, y + 18);
|
|
draw_line(x + 50, y + 18, oSubScrPlayer.x, oSubScrPlayer.y + 43);
|
|
draw_sprite_ext(sSubScrItem, -1, oSubScrPlayer.x, oSubScrPlayer.y + 43, 1, 1, 0, -1, 1);
|
|
}
|
|
if (global.curropt == 1) {
|
|
draw_sprite_ext(sSubScrHilight, -1, x - 28, y + 25, 1, 1, 0, -1, halpha);
|
|
draw_line(x + 34, y + 27, x + 50, y + 27);
|
|
draw_line(x + 50, y + 27, oSubScrPlayer.x, oSubScrPlayer.y + 43);
|
|
draw_sprite_ext(sSubScrItem, -1, oSubScrPlayer.x, oSubScrPlayer.y + 43, 1, 1, 0, -1, 1);
|
|
}
|
|
if (global.curropt == 2) {
|
|
draw_sprite_ext(sSubScrHilight, -1, x - 28, y + 34, 1, 1, 0, -1, halpha);
|
|
draw_line(x + 34, y + 36, x + 50, y + 36);
|
|
draw_line(x + 50, y + 36, oSubScrPlayer.x, oSubScrPlayer.y + 43);
|
|
draw_sprite_ext(sSubScrItem, -1, oSubScrPlayer.x, oSubScrPlayer.y + 43, 1, 1, 0, -1, 1);
|
|
}
|
|
}
|
|
|
|
|
|
|
|
draw_set_alpha(1);
|
|
draw_set_font(fontSubScr);
|
|
draw_set_halign(fa_left);
|
|
draw_set_color(c_black);
|
|
draw_text(x + 1 - 30, y + 4 - 1 + oControl.subScrHeaderOffset, suit);
|
|
//draw_text(x + 1 - 30, y + 4 - 63, "BEAM");
|
|
//draw_text(x + 1 - 30, y + 4 - 1, "MISC");
|
|
//draw_text(x + 1 - 30, y + 4 - 45, "BOOTS");
|
|
draw_set_color(c_white);
|
|
draw_text(x - 30, y + 3 - 1 + oControl.subScrHeaderOffset, suit);
|
|
//draw_text(x - 30, y + 3 - 63, "BEAM");
|
|
//draw_text(x - 30, y + 3 - 1, "MISC");
|
|
//draw_text(x - 30, y + 3 - 45, "BOOTS");
|
|
|
|
|
|
|
|
</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>0</PhysicsObjectKinematic>
|
|
<PhysicsShapePoints/>
|
|
</object>
|