<!--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>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>global.curropt = 0;
lastitem = 4;
active = 0;
alarm[0] = 5;
event_user(0);
with (oSS_Fg) op_text1 = get_text("OptionsMain", "Title");
tip[0] = get_text("OptionsMain", "Display_Tip");
tip[1] = get_text("OptionsMain", "Sound_Tip");
tip[2] = get_text("OptionsMain", "Control_Tip");
tip[3] = get_text("ExtrasMenu", "Extras_Tip");
tip[4] = get_text("GlobalOptions", "Exit_Tip");
global.tiptext = tip[global.curropt];
</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>event_user(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>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;
        if (global.curropt == 3 &amp;&amp; op4.enabled == 0) global.curropt += 1;
        sfx_play(sndMenuMove);
        global.tiptext = tip[global.curropt];
    }
    if (oControl.kUp &amp;&amp; oControl.kUpPushedSteps == 0) {
        global.curropt -= 1;
        if (global.curropt &lt; 0) global.curropt = lastitem;
        while (global.curropt == 3 &amp;&amp; op4.enabled == 0) global.curropt -= 1;
        sfx_play(sndMenuMove);
        global.tiptext = tip[global.curropt];
    }
    if (oControl.kMenu1 &amp;&amp; oControl.kMenu1PushedSteps == 0) {
        sfx_play(sndMenuSel);
        if (global.curropt == 0) {
            instance_create(50, 92, oOptionsDisplay);
            instance_destroy();
        }
        if (global.curropt == 1) {
            instance_create(50, 92, oOptionsSound);
            instance_destroy();
        }
        if (global.curropt == 2) {
            instance_create(50, 92, oOptionsControl);
            instance_destroy();
        }
        if (global.curropt == 3) {
            instance_create(50, 92 - 8, oOptionsExtras);
            instance_destroy();
        }
        if (global.curropt == 4) {
            if (instance_exists(oSS_Control) &gt; false) {
                instance_create(50, 92, oPauseMenuOptions);
                instance_destroy();
            } else {
                save_gameoptions();
                global.curropt = 4; // used to be 3, menu shifted
                room_change(titleroom, 0); //room_goto(titleroom);
            }
        }
    } // if (oControl.kMenu1 &amp;&amp; oControl.kMenu1PushedSteps == 0)
} // if (active)
</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(op1)) with (op1) instance_destroy();
if (instance_exists(op2)) with (op2) instance_destroy();
if (instance_exists(op3)) with (op3) instance_destroy();
if (instance_exists(op4)) with (op4) instance_destroy();
if (instance_exists(op5)) with (op5) instance_destroy();

</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>y -= 8;
op1 = instance_create(x, y, oPauseOption);
op1.optionid = 0;
op1.label = get_text("OptionsMain", "Display");
op2 = instance_create(x, y + 16, oPauseOption);
op2.optionid = 1;
op2.label = get_text("OptionsMain", "Sound");
op3 = instance_create(x, y + 32, oPauseOption);
op3.optionid = 2;
op3.label = get_text("OptionsMain", "Control");
op4 = instance_create(x, y + 48, oPauseOption);
op4.optionid = 3;
op4.label = get_text("ExtrasMenu", "Extras");
/*if (instance_exists(oSS_Control) &gt; false) {
    op4.enabled = 0;
}*/
op5 = instance_create(x, y + 64, oPauseOption);
op5.optionid = 4;
op5.label = get_text("GlobalOptions", "Exit");
</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>
