<!--This Document is generated by GameMaker, if you edit it by hand then you do so at your own risk!-->
<object>
  <spriteName>&lt;undefined&gt;</spriteName>
  <solid>0</solid>
  <visible>-1</visible>
  <depth>-100</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>ealpha = 0;
active = 0;
fadeout = 0;
fadein = 1;
rectoffset = 32;
prevsuit = global.currentsuit;
hidechangetip = 0;
hidetext = 0;
maptext = get_text("Subscreen", "Title_Map");
timetext = steps_to_time2(global.gametime);
if (global.monstersleft &lt; 10) {
    metrtext1 = "0" + string(global.monstersleft);
} else metrtext1 = string(global.monstersleft);
if (global.monstersarea &lt; 10) {
    metrtext2 = "0" + string(global.monstersarea);
} else metrtext2 = string(global.monstersarea);
tip1text = get_text("Subscreen", "Menu_Tip");
tip2text = get_text("Subscreen", "Marker_Tip");
tip3text = get_text("Subscreen", "MarkerPos_Tip");
tip4text = get_text("Subscreen", "DeleteMarker_Tip");
tip5text = get_text("Subscreen", "EditMarker_Tip");
tip6text = get_text("Misc", "Items_Tip");
etiptext1 = get_text("Subscreen", "SelectItem_Tip");
etiptext2 = get_text("Subscreen", "ToggleItem_Tip");
logtitle = get_text("Subscreen", "Title_Logs");
ltiptext1 = get_text("Subscreen", "SelectCategory_Tip");
ltiptext2 = get_text("Subscreen", "SelectLog_Tip");
ltiptext3 = get_text("Subscreen", "ExpandLog_Tip");
ltiptext4 = get_text("Subscreen", "ScrollText_Tip");
ltiptext5 = get_text("Subscreen", "Back_Tip");
opt_text1 = get_text("Subscreen", "Title_Options");
opt_text2 = "";

missilepressed = false;
itemcollunlock = false;
if (global.unlock[0] == 1 || global.unlock[1] == 1 || global.unlock[2] == 1) { itemcollunlock = true; }

widescreen = oControl.widescreen;
widescreen_space = oControl.widescreen_space;

</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>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 (fadein) {
    if (rectoffset &gt; 0) {
        rectoffset -= 2;
    } else fadein = 0;
}
if (active &amp;&amp; !fadein &amp;&amp; oControl.kStart &amp;&amp; oControl.kStartPushedSteps == 0) event_user(0);
if (fadeout) rectoffset += 2;
if (ealpha &lt; 1 &amp;&amp; fadeout == 0) ealpha += 0.05;
if (ealpha &gt; 0 &amp;&amp; fadeout) ealpha -= 0.05;
if (ealpha &gt;= 1 &amp;&amp; fadeout == 0) active = 1;
if (ealpha &lt;= 0 &amp;&amp; fadeout) {
    global.ingame = 1;
    global.transitiontype = 3;
    room_goto(global.currentroom);
    Unmute_Loops();
    save_gameoptions(); // save mod_collecteditemsmap
}

if (oControl.kMissile &amp;&amp; oControl.kSelectPushedSteps == 0 &amp;&amp; !missilepressed)
{
    missilepressed = true;
    if (oControl.mod_collecteditemsmap == 0) oControl.mod_collecteditemsmap = 1;
    else oControl.mod_collecteditemsmap = 0;
}

if (missilepressed &amp;&amp; !oControl.kMissile) { missilepressed = false; }
</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>fadeout = 1;
active = 0;
instance_create(0, 0, oMapScrBG3);
if (instance_exists(oOptionsSound) &gt; false) with (oOptionsSound) event_user(3);
if (global.ssmode == 3) {
    save_gameoptions();
    with (oPauseMenuOptions) active = 0;
    with (oOptionsMain) active = 0;
    with (oOptionsDisplay) active = 0;
    with (oOptionsSound) active = 0;
    with (oOptionsControl) active = 0;
    with (oOptionsKeyboard) active = 0;
    with (oOptionsJoypad) active = 0;
    with (oOptionsQuit) active = 0;
    with (oOptionsReload) active = 0;
    with (oOptionsExtras) active = 0; // 1.5.1 fix
}
if (global.ssmode == 2) with (oLogScreenControl) active = 0;
if (global.ssmode == 1) with (oSubscreenMenu) active = 0;
if (global.ssmode == 0) with (oMapCursor) active = 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_set_color(c_black);
draw_set_alpha(1);
draw_rectangle(view_xview[0] - (widescreen_space/2), view_yview[0], view_xview[0] + 330 + (widescreen_space/2), view_yview[0] + 41 - rectoffset, false);
draw_rectangle(view_xview[0] - (widescreen_space/2), view_yview[0] + 198 + rectoffset, view_xview[0] + 330 + (widescreen_space/2), view_yview[0] + 250, false);
if (global.ssmode == 0) { // MAP
    if (oControl.mod_collecteditemsmap == 1 &amp;&amp; itemcollunlock) ///Grafh78
    {
        if (widescreen) { // bar extension
            draw_background_ext(bg_SubScrBottom, view_xview[0] - 64, view_yview[0] + 210 + rectoffset, 2, 1, 0, -1, ealpha);
            draw_background_ext(bg_SubScrBottom, view_xview[0] + 320, view_yview[0] + 210 + rectoffset, 2, 1, 0, -1, ealpha);
        }    
        draw_background_ext(scr_SubScrTop_swap(), view_xview[0], view_yview[0] + 210 + rectoffset, 1, 1, 0, -1, ealpha);
    }
    // top green bar
    draw_background_ext(bg_SubScrBottom, view_xview[0] - (widescreen_space/2), view_yview[0] + 30 - rectoffset, 10 + (4*widescreen), 1, 0, -1, ealpha);
    if (widescreen) { // bottom infobar extension
        draw_background_ext(bg_SubScrBottom, view_xview[0] - 64, view_yview[0] + 198 + rectoffset, 2, 1, 0, -1, ealpha);
        draw_background_ext(bg_SubScrBottom, view_xview[0] + 320, view_yview[0] + 198 + rectoffset, 2, 1, 0, -1, ealpha);
    }
    if (oControl.mod_percentofitems == 1) { // map bottom infobar
        draw_background_ext(bg_MapBottom2, view_xview[0], view_yview[0] + 198 + rectoffset, 1, 1, 0, -1, ealpha); 
    } else { 
        draw_background_ext(bg_MapBottom, view_xview[0], view_yview[0] + 198 + rectoffset, 1, 1, 0, -1, ealpha); 
    }
    draw_set_alpha(ealpha);
    draw_set_font(fontGUI2);
    draw_set_halign(fa_center);
    draw_set_color(c_black);
    draw_text(view_xview[0] + 161, view_yview[0] + 30 - rectoffset, maptext);
    draw_set_color(c_white);
    draw_text(view_xview[0] + 160, view_yview[0] + 29 - rectoffset, maptext);
    draw_set_halign(fa_left);
    if (hidetext == 0) {
        draw_set_color(c_black);
        draw_text(view_xview[0] + 18, view_yview[0] + 198 + rectoffset, timetext);
        //if (oControl.mod_percentofitems == 1) { draw_text(view_xview[0] + 214, view_yview[0] + 198 + rectoffset, string("100%")); }
        if (oControl.mod_percentofitems == 1) { draw_text(view_xview[0] + 215, view_yview[0] + 198 + rectoffset, string(round(global.itemstaken / 88 * 100)) + "%"); }
        draw_text(view_xview[0] + 260, view_yview[0] + 198 + rectoffset, metrtext1);
        draw_text(view_xview[0] + 304, view_yview[0] + 198 + rectoffset, metrtext2);
        if (oControl.mod_collecteditemsmap == 1 &amp;&amp; itemcollunlock) ///Grafh78
        {
            draw_text(view_xview[0] + 19, view_yview[0] + 210 + rectoffset, string(global.etanks) + "/10");
            draw_text(view_xview[0] + 129, view_yview[0] + 210 + rectoffset, string(global.mtanks) + "/44");
            if (global.stanks &gt; 0) draw_text(view_xview[0] + 211, view_yview[0] + 210 + rectoffset, string(global.stanks) + "/10");
            if (global.ptanks &gt; 0) draw_text(view_xview[0] + 275, view_yview[0] + 210 + rectoffset, string(global.ptanks) + "/10");
        } 
        draw_set_color(c_white);
        draw_text(view_xview[0] + 17, view_yview[0] + 197 + rectoffset, timetext);
        //if (oControl.mod_percentofitems == 1) { draw_text(view_xview[0] + 213, view_yview[0] + 197 + rectoffset, string("100%")); }
        if (oControl.mod_percentofitems == 1) { draw_text(view_xview[0] + 214, view_yview[0] + 197 + rectoffset, string(round(global.itemstaken / 88 * 100)) + "%"); }
        draw_text(view_xview[0] + 259, view_yview[0] + 197 + rectoffset, metrtext1);
        draw_text(view_xview[0] + 303, view_yview[0] + 197 + rectoffset, metrtext2);
        if (oControl.mod_collecteditemsmap == 1 &amp;&amp; itemcollunlock) ///Grafh78
        {
        draw_text(view_xview[0] + 18, view_yview[0] + 209 + rectoffset, string(global.etanks) + "/10");
        draw_text(view_xview[0] + 128, view_yview[0] + 209 + rectoffset, string(global.mtanks) + "/44");
            if (global.stanks &gt; 0) draw_text(view_xview[0] + 210, view_yview[0] + 209 + rectoffset, string(global.stanks) + "/10");
            if (global.ptanks &gt; 0) draw_text(view_xview[0] + 274, view_yview[0] + 209 + rectoffset, string(global.ptanks) + "/10");
        }
        draw_set_font(fontMenuSmall2);
        if (oMapCursor.state == 0)
        {
            draw_txt_1button(view_xview[0] + 2, view_yview[0] + 225 + rectoffset, tip2text, 1, "Menu1", ealpha);
            if (itemcollunlock) draw_txt_1button(view_xview[0] + 125, view_yview[0] + 225 + rectoffset, tip6text, 1, "Missile", ealpha);
        }
        if (oMapCursor.state == 1) 
        {
            if (oControl.mod_collecteditemsmap == 1 &amp;&amp; itemcollunlock) ///Grafh78
            {
               draw_set_color(c_black);
               draw_set_alpha(1);
               draw_rectangle(view_xview[0] - (oControl.widescreen_space/2), view_yview[0] + 212 + rectoffset, view_xview[0] + 330 + (oControl.widescreen_space/2), view_yview[0] + 232 + rectoffset, false);
            }
            draw_txt_1button(view_xview[0] + 2, view_yview[0] + 212 + rectoffset, tip3text, 1, "DPad", ealpha);
            draw_txt_1button(view_xview[0] + 2, view_yview[0] + 225 + rectoffset, tip4text, 1, "Menu2", ealpha);
        }
        if (oMapCursor.state == 2)
        {
            draw_txt_1button(view_xview[0] + 2, view_yview[0] + 225 + rectoffset, tip5text, 1, "Menu1", ealpha);
            if (itemcollunlock) draw_txt_1button(view_xview[0] + 125, view_yview[0] + 225 + rectoffset, tip6text, 1, "Missile", ealpha);
        }
        
    }
} // if (global.ssmode == 0)
if (global.ssmode == 1) { // Equipment?
    if (widescreen == 1) { // bar extension
        draw_background_ext(bg_SubScrBottom, view_xview[0] - 64, view_yview[0] + 30 - rectoffset, 2, 1, 0, -1, ealpha);
        draw_background_ext(bg_SubScrBottom, view_xview[0] + 320, view_yview[0] + 30 - rectoffset, 2, 1, 0, -1, ealpha);
    }
    draw_background_ext(scr_SubScrTop_swap(), 0, 30 - rectoffset, 1, 1, 0, -1, ealpha);
    //draw_background_ext(bg_SubScrBottom, 0, 198 + rectoffset, 10, 1, 0, -1, ealpha);
    draw_background_ext(bg_SubScrBottom, view_xview[0] - (widescreen_space/2), view_yview[0] + 198 + rectoffset, 10 + (4*widescreen), 1, 0, -1, ealpha);
    draw_set_alpha(ealpha);
    draw_txt_1button(view_xview[0] + 160, view_yview[0] + 196 + rectoffset, oSubscreenMenu.dtext, 0, "Fire", ealpha);
    draw_set_font(fontGUI2);
    draw_set_color(c_black);    
    //19, 129, 211, 275
    //18, 128, 210, 274
    draw_text(20, 30 - rectoffset, string(ceil(global.playerhealth)) + "/" + string(global.maxhealth));
    draw_text(global.percent1M, 30 - rectoffset, string(global.missiles) + "/" + string(global.maxmissiles));
    if (global.stanks &gt; 0) draw_text(global.percent1SM, 30 - rectoffset, string(global.smissiles) + "/" + string(global.maxsmissiles));
    if (global.ptanks &gt; 0) draw_text(global.percent1PB, 30 - rectoffset, string(global.pbombs) + "/" + string(global.maxpbombs));
    draw_set_color(c_white);
    draw_text(19, 29 - rectoffset, string(ceil(global.playerhealth)) + "/" + string(global.maxhealth));
    draw_text(global.percent2M, 29 - rectoffset, string(global.missiles) + "/" + string(global.maxmissiles));
    if (global.stanks &gt; 0) draw_text(global.percent2SM, 29 - rectoffset, string(global.smissiles) + "/" + string(global.maxsmissiles));
    if (global.ptanks &gt; 0) draw_text(global.percent2PB, 29 - rectoffset, string(global.pbombs) + "/" + string(global.maxpbombs));
    
   
   
    if (hidetext == 0) {
        draw_background(bg_SubScrTipArrow1, view_xview[0] + 2, view_yview[0] + 217 + rectoffset);
        draw_set_font(fontMenuSmall2);
        draw_set_color(c_white);
        draw_text(view_xview[0] + 25, view_yview[0] + 212 + rectoffset, etiptext1);
        draw_txt_1button(view_xview[0] + 2, view_yview[0] + 225 + rectoffset, etiptext2, 1, "Menu1", ealpha);
        }
}
if (global.ssmode == 2) { // Logs
    //draw_background_ext(bg_SubScrBottom, view_xview[0], view_yview[0] + 30 - rectoffset, 10, 1, 0, -1, ealpha);
    draw_background_ext(bg_SubScrBottom, view_xview[0] - (widescreen_space/2), view_yview[0] + 30 - rectoffset, 10 + (4*widescreen), 1, 0, -1, ealpha);
    //draw_background_ext(bg_SubScrBottom, view_xview[0], view_yview[0] + 198 + rectoffset, 10, 1, 0, -1, ealpha);
    draw_background_ext(bg_SubScrBottom, view_xview[0] - (widescreen_space/2), view_yview[0] + 198 + rectoffset, 10 + (4*widescreen), 1, 0, -1, ealpha);
    draw_set_alpha(ealpha);
    draw_set_font(fontGUI2);
    draw_set_halign(fa_center);
    draw_set_color(c_black);
    draw_text(view_xview[0] + 161, view_yview[0] + 30 - rectoffset, logtitle);
    draw_set_color(c_white);
    draw_text(view_xview[0] + 160, view_yview[0] + 29 - rectoffset, logtitle);
    draw_set_halign(fa_left);
    if (hidetext == 0) {
        draw_set_font(fontMenuSmall2);
        draw_set_color(c_white);
    }
}
if (global.ssmode == 3) { // Options
    // draw_background_ext(bg_SubScrBottom, view_xview[0], view_yview[0] + 30 - rectoffset, 10, 1, 0, -1, ealpha);
    draw_background_ext(bg_SubScrBottom, view_xview[0] - (widescreen_space/2), view_yview[0] + 30 - rectoffset, 10 + (4*widescreen), 1, 0, -1, ealpha);
    // draw_background_ext(bg_SubScrBottom, view_xview[0], view_yview[0] + 198 + rectoffset, 10, 1, 0, -1, ealpha);
    draw_background_ext(bg_SubScrBottom, view_xview[0] - (widescreen_space/2), view_yview[0] + 198 + rectoffset, 10 + (4*widescreen), 1, 0, -1, ealpha);
    draw_set_alpha(ealpha);
    draw_set_font(fontGUI2);
    draw_set_halign(fa_center);
    draw_set_color(c_black);
    draw_text(view_xview[0] + 161, view_yview[0] + 30 - rectoffset, opt_text1);
    draw_set_color(c_white);
    draw_text(view_xview[0] + 160, view_yview[0] + 29 - rectoffset, opt_text1);
    draw_set_halign(fa_left);
    draw_set_alpha(ealpha);
    draw_set_font(fontMenuSmall2);
    draw_set_halign(fa_center);
    draw_set_color(c_black);
    draw_text(view_xview[0] + 161, view_yview[0] + 197 + rectoffset, global.tiptext);
    draw_set_color(c_white);
    draw_text(view_xview[0] + 160, view_yview[0] + 196 + rectoffset, global.tiptext);
    draw_set_halign(fa_left);
}
if (hidechangetip == 0 &amp;&amp; hidetext == 0 &amp;&amp; oSS_Control.canchange) {
    draw_set_font(fontMenuSmall2);
    draw_set_color(c_white);
    draw_txt_1button(view_xview[0] + 318, view_yview[0] + 225 + rectoffset, tip1text, 2, "Menu2", ealpha);
}
if (hidetext) {
    draw_background_ext(bg_SubScrBottom, view_xview[0], view_yview[0] + 30 - rectoffset, 10, 1, 0, -1, ealpha);
    draw_background_ext(bg_SubScrBottom, view_xview[0], view_yview[0] + 198 + rectoffset, 10, 1, 0, -1, ealpha);
    if (oControl.mod_collecteditemsmap == 1 &amp;&amp; itemcollunlock) ///Grafh78
    {    
        draw_set_color(c_black);
        draw_set_alpha(1);
        draw_rectangle(view_xview[0] - (oControl.widescreen_space/2), view_yview[0] + 212 + rectoffset, view_xview[0] + 330 + (oControl.widescreen_space/2), view_yview[0] + 232 + rectoffset, false);
    }
}

</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>
