Files
AM2R-Community-Updates/objects/oSubScreenMisc.object.gmx
2020-12-22 20:54:55 -06:00

158 lines
6.0 KiB
XML

<!--This Document is generated by GameMaker, if you edit it by hand then you do so at your own risk!-->
<object>
<spriteName>sSubScrMisc</spriteName>
<solid>0</solid>
<visible>-1</visible>
<depth>-10</depth>
<persistent>0</persistent>
<parentName>oSubScreenSuit</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>event_inherited();
misc = get_text("ItemsMenu", "Misc");
morph = get_text("ItemsMenu", "MorphBall");
spider = get_text("ItemsMenu", "SpiderBall");
spring = get_text("ItemsMenu", "SpringBall");
bomb = get_text("ItemsMenu", "Bombs");
pgrip = get_text("ItemsMenu", "PowerGrip");
sattack = get_text("ItemsMenu", "ScrewAttack");
</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.morphball, x - 28, y + 16);
draw_text(x - 20, y + 15 + oControl.subScrItemOffset, morph);
if (global.item[2]) {
draw_sprite(sSubScrButton, global.spiderball, x - 28, y + 25);
draw_text(x - 20, y + 24 + oControl.subScrItemOffset, spider);
}
if (global.item[3]) {
draw_sprite(sSubScrButton, global.jumpball, x - 28, y + 34);
draw_text(x - 20, y + 33 + oControl.subScrItemOffset, spring);
}
if (global.item[0]) {
draw_sprite(sSubScrButton, global.bomb, x - 28, y + 43);
draw_text(x - 20, y + 42 + oControl.subScrItemOffset, bomb);
}
if (global.item[1]) {
draw_sprite(sSubScrButton, global.powergrip, x - 28, y + 52);
draw_text(x - 20, y + 51 + oControl.subScrItemOffset, pgrip);
}
if (global.item[8]) {
draw_sprite(sSubScrButton, global.screwattack, x - 28, y + 61);
draw_text(x - 20, y + 60 + oControl.subScrItemOffset, sattack);
}
if (drawlines) {
if (global.curropt == 8) {
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 + 60);
draw_sprite_ext(sSubScrItem, -1, oSubScrPlayer.x, oSubScrPlayer.y + 60, 1, 1, 0, -1, 1);
}
if (global.curropt == 9) {
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 + 60);
draw_sprite_ext(sSubScrItem, -1, oSubScrPlayer.x, oSubScrPlayer.y + 60, 1, 1, 0, -1, 1);
}
if (global.curropt == 10) {
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 + 60);
draw_sprite_ext(sSubScrItem, -1, oSubScrPlayer.x, oSubScrPlayer.y + 60, 1, 1, 0, -1, 1);
}
if (global.curropt == 11) {
draw_sprite_ext(sSubScrHilight, -1, x - 28, y + 43, 1, 1, 0, -1, halpha);
draw_line(x - 34, y + 45, x - 50, y + 45);
draw_line(x - 50, y + 45, oSubScrPlayer.x, oSubScrPlayer.y + 60);
draw_sprite_ext(sSubScrItem, -1, oSubScrPlayer.x, oSubScrPlayer.y + 60, 1, 1, 0, -1, 1);
}
if (global.curropt == 12) {
draw_sprite_ext(sSubScrHilight, -1, x - 28, y + 52, 1, 1, 0, -1, halpha);
draw_line(x - 34, y + 54, x - 50, y + 54);
draw_line(x - 50, y + 54, oSubScrPlayer.x + 35, oSubScrPlayer.y + 95);
draw_sprite_ext(sSubScrItem, -1, oSubScrPlayer.x + 35, oSubScrPlayer.y + 95, 1, 1, 0, -1, 1);
}
if (global.curropt == 13) {
draw_sprite_ext(sSubScrHilight, -1, x - 28, y + 61, 1, 1, 0, -1, halpha);
draw_line(x - 34, y + 63, x - 50, y + 63);
draw_line(x - 50, y + 63, oSubScrPlayer.x, oSubScrPlayer.y + 43);
draw_sprite_ext(sSubScrItem, -1, oSubScrPlayer.x, oSubScrPlayer.y + 43, 1, 1, 0, -1, 1);
}
} // if (drawlines)
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, "SUIT");
//draw_text(x + 1 - 30, y + 4 - 63, "BEAM");
draw_text(x + 1 - 30, y + 4 - 1 + oControl.subScrHeaderOffset, misc);
//draw_text(x + 1 - 30, y + 4 - 45, "BOOTS");
draw_set_color(c_white);
//draw_text(x - 30, y + 3 - 1, "SUIT");
//draw_text(x - 30, y + 3 - 63, "BEAM");
draw_text(x - 30, y + 3 - 1 + oControl.subScrHeaderOffset, 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>-1</PhysicsObjectKinematic>
<PhysicsShapePoints/>
</object>