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

302 lines
8.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>sSaveSlotB</spriteName>
<solid>0</solid>
<visible>-1</visible>
<depth>-1</depth>
<persistent>0</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>
oControl.mod_fusion = 0;
//oGameSelMenu.active = 0;
global.curropt = 1;
lastitem = 3;
active = 0;
alarm[0] = 5;
h = -11;
targeth = 33;
fadein = 1;
fadeout = 0;
d0str = get_text("Title", "GameSlot_Easy");
d1str = get_text("Title", "GameSlot_Normal");
d2str = get_text("Title", "GameSlot_Hard");
d3str = get_text("Title-Additions", "GameSlot_NewGame_Fusion");
if (global.saveslot == 0) {
x = 270;
y = 60;
}
if (global.saveslot == 1) {
x = 270;
y = 104;
}
if (global.saveslot == 2) {
x = 270;
y = 148;
}
if (global.saveslot == 3) {
x = 270;
y = 192;
}
draw_set_font(fontGUI2);
w = max(string_width(d0str), string_width(d1str), string_width(d2str), string_width(d3str)) + 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="1" 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>//oGameSelMenu.active = 1;
</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 &amp;&amp; oControl.kDownPushedSteps == 0) {
global.curropt += 1;
if (global.curropt &gt; lastitem) global.curropt = 0;
sfx_play(sndMenuMove);
}
if (oControl.kUp &amp;&amp; oControl.kUpPushedSteps == 0) {
global.curropt -= 1;
if (global.curropt &lt; 0) global.curropt = lastitem;
sfx_play(sndMenuMove);
}
if (oControl.kMenu1 &amp;&amp; oControl.kMenu1PushedSteps == 0) {
sfx_play(sndMenuSel);
global.difficulty = global.curropt;
switch (global.curropt)
{
case 0:
case 1:
//Easy &amp; Normal
oControl.mod_fusion = 0;
oControl.mod_diffmult = 1;
break;
case 2:
//Hard
oControl.mod_fusion = 0;
oControl.mod_diffmult = 2;
break;
case 3:
//Fusion
global.difficulty = 2;
oControl.mod_fusion = 1;
oControl.mod_diffmult = 4;
break;
default:
oControl.mod_fusion = 0;
oControl.mod_diffmult = 1;
break;
}
global.newgame = 1;
if (instance_exists(op[0])) with (op[0]) instance_destroy();
if (instance_exists(op[1])) with (op[1]) instance_destroy();
if (instance_exists(op[2])) with (op[2]) instance_destroy();
if (instance_exists(op[3])) with (op[3]) instance_destroy();
mus_fadeout(musTitle);
room_change(14, 0);
}
if (oControl.kMenu2 &amp;&amp; oControl.kMenu2PushedSteps == 0) {
global.curropt = 10;
sfx_play(sndMenuCancel);
event_user(1);
}
}
if (fadein) {
if (h &lt; targeth - 4) {
h += 4;
} else {
h = targeth;
fadein = 0;
active = 1;
event_user(0);
}
}
if (fadeout) {
if (h &gt; -11) {
h -= 4;
} else {
if (global.curropt == 10) {
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[0])) with (op[0]) instance_destroy();
if (instance_exists(op[1])) with (op[1]) instance_destroy();
if (instance_exists(op[2])) with (op[2]) instance_destroy();
if (instance_exists(op[3])) with (op[3]) 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[0] = instance_create(x - 4, y + 3, oNormalOptionR);
op[0].optionid = 0;
op[0].label = d0str;
op[1] = instance_create(x - 4, y + 3 + vsep, oNormalOptionR);
op[1].optionid = 1;
op[1].label = d1str;
op[2] = instance_create(x - 4, y + 3 + vsep * 2, oNormalOptionR);
op[2].optionid = 2;
op[2].label = d2str;
op[3] = instance_create(x - 4, y + 3 + vsep * 3, oNormalOptionR);
op[3].optionid = 3;
op[3].label = d3str;
</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 + 10, false);
draw_set_alpha(1);
draw_line(x, y, x, y + h + 10);
draw_background_ext(bgSaveSlotLine2, x - w - 4, y, 1, h + 12, 0, mycolor, 1);
draw_background_ext(bgSaveSlotLine1, x - w, y + h + 10, 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>