<!--This Document is generated by GameMaker, if you edit it by hand then you do so at your own risk!-->
<object>
  <spriteName>sMapPlayer</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>widescreen = oControl.widescreen;
widescreen_space = oControl.widescreen_space;


global.curropt = 0;
category = 0;
category_text = "";
currentlog = 0;
clognum = 0;
dlognum = 0;
logobj[0] = 0;
sep = 16;
active = 0;
alarm[0] = 5;
rectoffset = 0;
surf = surface_create(130, 123);
scroll = 0;
lines = 0;
currentline = 0;
text = "";
expanded = 0;
expandable = 0;
scrolltimer = 0;
targety = 112;
currenty = 112;
load_logs();
if (global.gotolog &lt; 10) category = 0;
if (global.gotolog &gt;= 10 &amp;&amp; global.gotolog &lt; 20) category = 1;
if (global.gotolog &gt;= 20 &amp;&amp; global.gotolog &lt; 30) category = 2;
if (global.gotolog &gt;= 30 &amp;&amp; global.gotolog &lt; 40) category = 3;

if (global.gotolog &gt;= 40 &amp;&amp; global.gotolog &lt; 50) category = 4; // &lt;------- NEWLOGSCODE
if (global.gotolog == 44) category = 2;

create_log_category(category);
category_text = cat[category];
text = logobj[global.curropt].ltext;
event_user(0);
</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>surface_free(surf);
with (oLog) instance_destroy();
</string>
          </argument>
        </arguments>
      </action>
    </event>
    <event eventtype="2" enumb="1">
      <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>surface_free(surf);
</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;
global.gotolog = -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>widescreen = oControl.widescreen;
widescreen_space = oControl.widescreen_space;

if (active) {
    if (oControl.kDown &amp;&amp; oControl.kDownPushedSteps == 0) {
        if (expanded == 0) {
            global.curropt += 1;
            if (global.curropt &gt; dlognum - 1) global.curropt = 0;
            event_user(0);
            sfx_play(sndMenuMove);
        }
    }
    if (oControl.kUp &amp;&amp; oControl.kUpPushedSteps == 0) {
        if (expanded == 0) {
            global.curropt -= 1;
            if (global.curropt &lt; 0) global.curropt = dlognum - 1;
            event_user(0);
            sfx_play(sndMenuMove);
        }
    }
    if (oControl.kDown &gt; 0 &amp;&amp; oControl.kDownPushedSteps == 0 || scrolltimer == 0 &amp;&amp; oControl.kDown &amp;&amp; oControl.kDownPushedSteps &gt; 20) {
        if (expanded &amp;&amp; scroll) {
            currentline += 1;
            if (currentline &gt; lines) currentline = lines;
            event_user(1);
            sfx_play(sndMenuMove);
        }
    }
    if (oControl.kUp &gt; 0 &amp;&amp; oControl.kUpPushedSteps == 0 || scrolltimer == 0 &amp;&amp; oControl.kUp &amp;&amp; oControl.kUpPushedSteps &gt; 20) {
        if (expanded &amp;&amp; scroll) {
            currentline -= 1;
            if (currentline &lt; 0) currentline = 0;
            event_user(1);
            sfx_play(sndMenuMove);
        }
    }
    if (oControl.kRight &gt; 0 &amp;&amp; oControl.kRightPushedSteps == 0 &amp;&amp; expanded == 0) {
        category += 1;
        if (category &gt; 4) category = 0; // &lt;--------- NEWLOGSCODE
        create_log_category(category);
        event_user(0);
        category_text = cat[category];
        sfx_play(sndMenuMove);
    }
    if (oControl.kLeft &gt; 0 &amp;&amp; oControl.kLeftPushedSteps == 0 &amp;&amp; expanded == 0) {
        category -= 1;
        if (category &lt; 0) category = 4; // &lt;--------- NEWLOGSCODE
        create_log_category(category);
        event_user(0);
        category_text = cat[category];
        sfx_play(sndMenuMove);
    }
    if (oControl.kMenu1 &amp;&amp; oControl.kMenu1PushedSteps == 0 &amp;&amp; expandable) expanded = !expanded;
    scrolltimer += 1;
    if (scrolltimer &gt; 8) scrolltimer = 0;
    if (expanded) {
        targety = 59;
    } else targety = 112;
    if (currenty != targety) currenty += (targety - currenty) / 4;
} // if (active)
if(os_type == os_android &amp;&amp; os_is_paused()) alarm[1] = 1;
if (!surface_exists(surf)) {
    surface_free(surf);
    surf = surface_create(130, 123);
    event_user(1);
}
</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>surface_set_target(surf);
draw_set_font(fontMenuSmall);
draw_set_color(c_white);
draw_set_alpha(1);
draw_clear(c_black);
draw_text_ext(2, -8 * currentline - 2, text, 8, 128);
surface_reset_target();
</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>currentline = 0;
text = logobj[global.curropt].ltext;
draw_set_font(fontMenuSmall2);
height = string_height_ext(text, 8, 128);
if (height &gt; 67) {
    expandable = 1;
} else expandable = 0;
if (height &gt; 123) {
    scroll = 1;
    lines = (height - 123) / 8;
} else scroll = 0;
surface_set_target(surf);
draw_set_font(fontMenuSmall2);
draw_set_color(c_white);
draw_set_alpha(1);
draw_clear(c_black);
draw_text_ext(2, -2, text, 8, 128);
surface_reset_target();
</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 (surface_exists(surf)) draw_surface_part(surf, 0, 0, 130, 179 - currenty, 160 + rectoffset * 4, currenty);
if (expanded) {
    draw_background(bg_Line130, 160, currenty);
    draw_background(bg_Line130, 160, 179);
    if (scroll) {
        if (currentline &gt; 0) draw_sprite_ext(sLogScroll, 1, 285, currenty + 4, 1, -1, 0, -1, 1);
        if (currentline &lt; lines) draw_sprite(sLogScroll, 1, 285, 176);
    }
} else {
    draw_background(bg_Line130, 160, currenty);
    draw_background(bg_Line130, 160, 178);
    if (expandable) draw_sprite(sLogScroll, 2, 285, 174);
}
</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>
