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
234 lines
6.5 KiB
XML
234 lines
6.5 KiB
XML
<!--This Document is generated by GameMaker, if you edit it by hand then you do so at your own risk!-->
|
|
<object>
|
|
<spriteName>sSaveSlotB</spriteName>
|
|
<solid>0</solid>
|
|
<visible>-1</visible>
|
|
<depth>-1</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>global.curropt = 1;
|
|
lastitem = 1;
|
|
active = 0;
|
|
h = 0;
|
|
targeth = 33;
|
|
fadein = 1;
|
|
fadeout = 0;
|
|
lblstr = get_text("Title", "GameSlot_EraseConfirm");
|
|
yesstr = get_text("GlobalOptions", "Yes");
|
|
nostr = get_text("GlobalOptions", "No");
|
|
if (global.saveslot == 0) {
|
|
x = 270;
|
|
y = 60;
|
|
}
|
|
if (global.saveslot == 1) {
|
|
x = 270;
|
|
y = 104;
|
|
}
|
|
if (global.saveslot == 2) {
|
|
x = 270;
|
|
y = 148;
|
|
}
|
|
draw_set_font(fontGUI2);
|
|
w = max(string_width(lblstr), string_width(yesstr), string_width(nostr)) + 10;
|
|
|
|
if (oControl.mod_insanitymode) {
|
|
mycolor = make_color_rgb(187, 3, 3);
|
|
} else {
|
|
mycolor = make_color_rgb(3, 187, 25);
|
|
}
|
|
</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 (active) {
|
|
if (oControl.kDown && oControl.kDownPushedSteps == 0) {
|
|
global.curropt += 1;
|
|
if (global.curropt > lastitem) global.curropt = 0;
|
|
sfx_play(sndMenuMove);
|
|
}
|
|
if (oControl.kUp && oControl.kUpPushedSteps == 0) {
|
|
global.curropt -= 1;
|
|
if (global.curropt < 0) global.curropt = lastitem;
|
|
sfx_play(sndMenuMove);
|
|
}
|
|
if (oControl.kMenu1 && oControl.kMenu1PushedSteps == 0) {
|
|
sfx_play(sndMenuSel);
|
|
if (global.curropt == 0) {
|
|
erase_save();
|
|
global.curropt = 10;
|
|
event_user(1);
|
|
}
|
|
if (global.curropt == 1) {
|
|
global.curropt = 10;
|
|
event_user(1);
|
|
}
|
|
}
|
|
if (oControl.kMenu2 && oControl.kMenu2PushedSteps == 0) {
|
|
global.curropt = 10;
|
|
sfx_play(sndMenuCancel);
|
|
event_user(1);
|
|
}
|
|
} // if (active)
|
|
if (fadein) {
|
|
if (h < targeth - 4) {
|
|
h += 4;
|
|
} else {
|
|
h = targeth;
|
|
fadein = 0;
|
|
active = 1;
|
|
event_user(0);
|
|
}
|
|
}
|
|
if (fadeout) {
|
|
if (h > 4) {
|
|
h -= 4;
|
|
} else {
|
|
with (oGameSelMenu) alarm[0] = 5;
|
|
global.curropt = global.saveslot;
|
|
instance_destroy();
|
|
}
|
|
}
|
|
</string>
|
|
</argument>
|
|
</arguments>
|
|
</action>
|
|
</event>
|
|
<event eventtype="7" enumb="11">
|
|
<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 (instance_exists(op[50])) with (op[50]) instance_destroy();
|
|
if (instance_exists(op[0])) with (op[0]) instance_destroy();
|
|
if (instance_exists(op[1])) with (op[1]) instance_destroy();
|
|
fadeout = 1;
|
|
active = 0;
|
|
</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>vsep = 10;
|
|
op[50] = instance_create(x - 4, y + 3, oMenuLabelR);
|
|
op[50].text = lblstr;
|
|
op[0] = instance_create(x - 4, y + 3 + vsep, oNormalOptionR);
|
|
op[0].optionid = 0;
|
|
op[0].label = yesstr;
|
|
op[1] = instance_create(x - 4, y + 3 + vsep * 2, oNormalOptionR);
|
|
op[1].optionid = 1;
|
|
op[1].label = nostr;
|
|
</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_set_color(c_black);
|
|
draw_set_alpha(0.8);
|
|
draw_rectangle(x, y, x - w, y + h, false);
|
|
draw_set_alpha(1);
|
|
draw_line(x, y, x, y + h);
|
|
draw_background_ext(bgSaveSlotLine2, x - w - 4, y, 1, h + 2, 0, mycolor, 1);
|
|
draw_background_ext(bgSaveSlotLine1, x - w, y + h, w + 1, 1, 0, mycolor, 1);
|
|
</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>
|