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

293 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>sSMslSpark</spriteName>
<solid>0</solid>
<visible>-1</visible>
<depth>0</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>hilight = 1;
active = 0;
saveexists = 0;
saveroom = 0;
targety = y;
y = 0;
alarm[0] = 1;
modeindex = 0;
if (oControl.mod_insanitymode) {
mycolor = make_color_rgb(187, 3, 3);
myslotbg = bgSaveSlotInsanity;
myslot = sSaveSlotInsanity;
myslotb = sSaveSlotBInsanity;
myslotc = sSaveSlotCopyInsanity;
} else {
mycolor = make_color_rgb(3, 187, 25);
myslotbg = bgSaveSlot;
myslot = sSaveSlot;
myslotb = sSaveSlotB;
myslotc = sSaveSlotCopy;
}
if (oControl.mod_monstersextremecheck == 1) {
meticon = bgGUIMetCountBG2ELM;
} else {
meticon = bgGUIMetCountBG2;
}
//mycolordark = make_color_rgb(74, 0, 0);
</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 (y &lt; targety) {
y += 4;
alarm[0] = 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 (oControl.mod_insanitymode) {
mycolor = make_color_rgb(187, 3, 3);
myslotbg = bgSaveSlotInsanity;
myslot = sSaveSlotInsanity;
myslotb = sSaveSlotBInsanity;
myslotc = sSaveSlotCopyInsanity;
} else {
mycolor = make_color_rgb(3, 187, 25);
myslotbg = bgSaveSlot;
myslot = sSaveSlot;
myslotb = sSaveSlotB;
myslotc = sSaveSlotCopy;
}
if (oControl.mod_monstersextremecheck == 1) {
meticon = bgGUIMetCountBG2ELM;
} else {
meticon = bgGUIMetCountBG2;
}
</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>newgamestr = get_text("Title", "GameSlot_NewGame");
title = get_save_title(saveroom);
if (saveexists == 1) {
if (sdifficulty == 0) difftext = get_text("Title", "GameSlot_Easy");
if (sdifficulty == 1) difftext = get_text("Title", "GameSlot_Normal");
if (sdifficulty == 2) difftext = get_text("Title", "GameSlot_Hard");
if (sdifficulty == 3) difftext = get_text("Title-Additions", "GameSlot_NewGame_Fusion");
if (smode == 3) modeindex = get_text("Title-Additions", "GameSlot_NewGame_ClassicMode");
if (smode == 4) modeindex = get_text("Title-Additions", "GameSlot_NewGame_AM2Random");
if (smode == 5) modeindex = get_text("Title-Additions", "GameSlot_NewGame_SplitRandom");
}
</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>event_user(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>if (global.saveslot == slot) {
hilight = 1;
} else hilight = 0;
etankxoff = 4;
tioffset = 93;
proffset = 186;
titleoffset = 4;
if (hilight) {
fontcolor = c_white;
} else fontcolor = c_dkgray;
draw_background(myslotbg, x, y - 7);
if (saveexists) draw_background_ext(meticon, x + 190, y - 6, 1, 1, 0, fontcolor, 1);
if (hilight) {
draw_sprite(myslot, slot, x - 19, y - 7);
draw_background_ext(bgSaveSlotLine1, x, y + 18, 207, 1, 0, mycolor, 1);
} else {
draw_sprite(myslotb, slot, x - 19, y - 7);
}
if (saveexists) {
if (setanks &gt;= 1) draw_sprite_ext(sGUIETank, 1, x + etankxoff, y + 4, 1, 1, 0, fontcolor, 1);
if (setanks &gt;= 2) draw_sprite_ext(sGUIETank, 1, x + etankxoff, y + 10, 1, 1, 0, fontcolor, 1);
if (setanks &gt;= 3) draw_sprite_ext(sGUIETank, 1, x + etankxoff + 6, y + 4, 1, 1, 0, fontcolor, 1);
if (setanks &gt;= 4) draw_sprite_ext(sGUIETank, 1, x + etankxoff + 6, y + 10, 1, 1, 0, fontcolor, 1);
if (setanks &gt;= 5) draw_sprite_ext(sGUIETank, 1, x + etankxoff + 12, y + 4, 1, 1, 0, fontcolor, 1);
if (setanks &gt;= 6) draw_sprite_ext(sGUIETank, 1, x + etankxoff + 12, y + 10, 1, 1, 0, fontcolor, 1);
if (setanks &gt;= 7) draw_sprite_ext(sGUIETank, 1, x + etankxoff + 18, y + 4, 1, 1, 0, fontcolor, 1);
if (setanks &gt;= 8) draw_sprite_ext(sGUIETank, 1, x + etankxoff + 18, y + 10, 1, 1, 0, fontcolor, 1);
if (setanks &gt;= 9) draw_sprite_ext(sGUIETank, 1, x + etankxoff + 24, y + 4, 1, 1, 0, fontcolor, 1);
// if (setanks == 10) draw_sprite_ext(sGUIETank, 1, x + etankxoff + 24, y + 10, 1, 1, 0, fontcolor, 1);
if (setanks &gt;= 10) draw_sprite_ext(sGUIETank, 1, x + etankxoff + 24, y + 10, 1, 1, 0, fontcolor, 1);
draw_set_font(fontGUI);
draw_set_halign(fa_center);
draw_cool_text(x + tioffset, y + 3 + oControl.GUIOffset, timestring, c_black, fontcolor, fontcolor, 1);
draw_set_font(fontGUI2);
draw_set_halign(fa_right);
draw_cool_text(x + proffset, y + 2, string(sprogress) + "%", c_black, fontcolor, fontcolor, 1);
draw_set_halign(fa_left);
draw_set_color(fontcolor);
draw_set_alpha(1);
draw_set_font(fontGUI2);
draw_text(x + 192, y + 6, to_string_lz(smonsters));
draw_set_alpha(1);
draw_set_font(fontMenuSmall);
draw_set_color(fontcolor);
draw_text(x + titleoffset, y - 9, title);
draw_set_halign(fa_right);
draw_text(x + 186, y - 9, difftext);
draw_set_halign(fa_left);
} else {
draw_set_alpha(1);
draw_set_font(fontGUI2);
draw_set_halign(fa_center);
draw_set_color(c_black);
draw_text(x + tioffset + 1, y + 4, newgamestr);
draw_set_color(fontcolor);
draw_text(x + tioffset, y + 3, newgamestr);
draw_set_halign(fa_left);
} // if (saveexists) else
if(global.saveslot != slot &amp;&amp; saveexists) {
if(smode == 3 || smode == 4 || smode == 5) {
draw_cool_text(x+4, y+20, string(modeindex) + sseed, c_black, c_gray, c_dkgray, 1);
}
}
else if(global.saveslot == slot &amp;&amp; saveexists) {
if(smode == 3 || smode == 4 || smode == 5) {
draw_cool_text(x+4, y+20, string(modeindex) + sseed, c_black, c_white, c_silver, 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>