<!--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>-10000000</depth>
  <persistent>0</persistent>
  <parentName>parDeactivator</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>x = view_xview;
y = view_yview-32;

txt = "";

y1 = 26;
y2 = 40;
y3 = 54;
y4 = 68;
y5 = 82;
y6 = 96;

cursor_y = y1;
cursor_image_index = 0;
cursor_timer = 0;
//can_use_log = item_exists(4,11) &gt; 0

with instance_create(view_xview,view_yview+176,objHealthBar) { pl = 1 }
if global.pl_count &gt;= 2 { with instance_create(view_xview,view_yview+176,objHealthBar) { pl = 2 } }
if global.pl_count &gt;= 3 { with instance_create(view_xview,view_yview+176,objHealthBar) { pl = 3 } }
if global.pl_count &gt;= 4 { with instance_create(view_xview,view_yview+176,objHealthBar) { pl = 4 } }


ok = 0;
alarm[0] = 1
</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>ok = 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 ok {
    if keyboard_check_pressed(vk_down) {
        audio_play_sound(sndselect2,0,0)
        if cursor_y = y1 { cursor_y = y2 }
        else if cursor_y = y2 { cursor_y = y3 }
        else if cursor_y = y3 { cursor_y = y4 }
        else if cursor_y = y4 { cursor_y = y5 }
        else if cursor_y = y5 { cursor_y = y1 }
        //else if cursor_y = y5 { cursor_y = iff(can_use_log,y6,y1) }
        //else if cursor_y = y6 { cursor_y = y1 }
    } else if keyboard_check_pressed(vk_up) {
        audio_play_sound(sndselect2,0,0)
        if cursor_y = y1 { cursor_y = y5 } //if cursor_y = y1 { cursor_y = iff(can_use_log,y6,y5) }
        else if cursor_y = y2 { cursor_y = y1 }
        else if cursor_y = y3 { cursor_y = y2 }
        else if cursor_y = y4 { cursor_y = y3 }
        else if cursor_y = y5 { cursor_y = y4 }
        else if cursor_y = y6 { cursor_y = y5 }
    }
    
    if keyboard_check_pressed(global.kb_back) or keyboard_check_pressed(global.kb_enter) {
        keyboard_clear(global.kb_back)
        keyboard_clear(global.kb_enter)
        with objAilmentsBubble instance_destroy()
        with objHealthBar instance_destroy()
        with objPause instance_destroy()
        audio_play_sound(sndback,0,0)
        instance_destroy()
    }

    if keyboard_check_pressed(global.kb_choose) {
        keyboard_clear(global.kb_choose)
        if cursor_y = y1 {
            audio_play_sound(sndchoose,0,0)
            ok = 0
            objHealthBar.visible = 0
            objAilmentsBubble.visible = 0
            instance_create(view_xview,view_yview,obj_inv)
            exit 
        } else if cursor_y = y2 {
            audio_play_sound(sndchoose,0,0)
            ok = 0
            objHealthBar.visible = 0
            objAilmentsBubble.visible = 0
            instance_create(view_xview,view_yview,objEqp)
            exit 
        } else if cursor_y = y3 {
            audio_play_sound(sndchoose,0,0)
            ok = 0
            instance_create(view_xview,view_yview,objSkillsMenuOw)
            exit 
        } else if cursor_y = y4 {
            audio_play_sound(sndchoose,0,0)
            ok = 0
            instance_create(view_xview,view_yview,objStatsMenu)
            exit 
        /*} else if (can_use_log &amp;&amp; cursor_y = y5) {
            audio_play_sound(sndchoose,0,0)
            instance_create(view_xview,view_yview,objLogMenu)
            ok = 0
            exit
        } else if (!can_use_log &amp;&amp; cursor_y = y5) || (can_use_log &amp;&amp; cursor_y = y6) {*/
        } else if cursor_y = y5 {
            audio_play_sound(sndchoose,0,0)
            audio_stop_all()
            global.theroom = rmInit
            instance_create(0,0,objFadeOut)  
            ok = 0
            exit
        }
    }
}
</string>
          </argument>
        </arguments>
      </action>
      <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>cursor_timer +=0.25

if cursor_timer = 1
{
cursor_image_index +=1
cursor_timer = 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_alpha(1)
draw_set_font(global.thenfont3)
draw_set_halign(fa_left)
draw_window(view_xview+v_offset,view_yview+8,8,11)
draw_window(view_xview+v_offset,view_yview+104,8,4)
draw_set_color(c_white)
draw_text(view_xview+12+v_offset,view_yview+18,"4 Goods"+"#"+"- Equip"+"#"+"6 Skills"+"#"+", Stats"+"#"+"5 Quit")
draw_set_halign(fa_right)
draw_set_font(global.thenfont)
draw_text(view_xview+48+v_offset,view_yview+114,"$"+string(global.money))
draw_sprite(spr_cursor,cursor_image_index,view_xview+9+v_offset,view_yview+cursor_y)

// Log stuff. Removed.
//draw_window(view_xview+v_offset,view_yview+8,8,iff(can_use_log,13,11))
//draw_window(view_xview+v_offset,view_yview+iff(can_use_log,120,104),8,4)
//draw_text(view_xview+12+v_offset,view_yview+18,"4 Goods"+"#"+"- Equip"+"#"+"6 Skills"+"#"+", Stats"+iff(can_use_log,"#+ Log","")+"#"+"5 Quit")
//draw_text(view_xview+48+v_offset,view_yview+iff(can_use_log,130,114),"$"+string(global.money))
</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>
    <point>0,0</point>
    <point>160,160</point>
  </PhysicsShapePoints>
</object>
