<?xml version="1.0"?>

<page name="mp_elm"
	cursor="true"
	on_show="show">
	
	<event name="show">
    bg.highlited="0";
    bg.highlited="true";
    time="10";
    on_time="time1";

    lifespermatch.data = $STATE[GameMPElimination].LIFESPERMATCH;
    maxplayers.data = $STATE[GameMPElimination].MAXPLAYERS;
    mpmap.index = $STATE[GameMPElimination].SELECTED_MAP_INDEX;
    timelimit.data = $STATE[GameMPElimination].TIMELIMIT;

  </event>
	
	<event name="time1">
		bg.highlited="false";
		on_time="time2";
	</event>

	<event name="time2">
		bg.highlited="true";
		on_time="time1";
	</event>

<!-- Background -->
	<area name="bg"
		style="background"
		size="120%,120%"
		position="c,c"
		position_h="-60c,+25c"
		highlited_time="10"
		size_h="140%,140%"
		/>
	<area name="bg_multiply"
		style="bg_multiply"
		blend="multiply"/>
<!-- Background -->	


<!-- Logo -->
	<area name="logo"
		style="logo_top"
		/>
<!-- Logo -->
<!-- Menu Border -->

		
	<area name="vertical"
		style="vertical"
		blend="normal"
		position="0,0"/>  
		

<!-- Menu Border -->

	<area name="header_bg"
			style="header_bg"
		/> 
		
		<text name="header_mpelm"
			text_id="110033"
			font="gui_jjstencil"
			text_color="FFbf2a02"
			size="31%,8%"
			font_size="34"
			position="0%,14%"
			align="rc"
			/>
			
		<area name="mp_menu_bg"
			style="button_bar"
			position="c,35c"
			size="100%,260">
			<area name="menu_line_top"
			style="mp_menu_bg"
			size="100%,3"
			position="c,0"/>
			<area name="menu_line_bottom"
			style="mp_menu_bg"
			size="100%,3"
			position="c,b"/>
		</area>
		
		<area name="mpelm_menu"
			style="menu"
			size="610,28%"
			position="c,35c"
			color="70FFFFFF">

      <!-- MAP SELECTION -->
      <choice name="MPMap"
				style="button_choice"
				position="0,0"
				position_h="0,0"
        text_id="110111"
        on_change="mpmap_changed"
				align="lc">
      </choice>

      <!-- LIFESPERMATCH -->
	<choice name="lifespermatch"
		text_id="110117"
		style="button_choice"
		position="0,32"
		position_h="0,32"
		on_change="fraglim_changed">
		<item text="1"     data="1" />
		<item text="2"     data="2" />
		<item text="3"     data="3" />
	</choice>

      <!-- TIMELIMIT -->
      <choice name="timelimit"
            text_id="110101"
            style="button_choice"
            position="0,64"
				    position_h="0,64"
            on_change="timelim_changed">
        <item text_id="110121"  data="0" />
        <item text="5 MIN."    data="5" />
        <item text="10 MIN."   data="10" />
        <item text="15 MIN."   data="15" />
        <item text="20 MIN."   data="20" />
        <item text="30 MIN."   data="30" />
        <item text="40 MIN."   data="40" />
        <item text="50 MIN."   data="50" />
        <item text="60 MIN."   data="60" />
      </choice>

      <!-- MAXPLAYERS -->
	<choice name="maxplayers"
		text_id="110131"
		style="button_choice"
		position="0,96"
		position_h="0,96"
		on_change="maxplayers_changed">
		<item text="16" data="16" />
		<item text="2"    data="2" />
		<item text="3"   data="3" />
		<item text="4"   data="4" />
		<item text="5"   data="5" />
		<item text="6"   data="6" />
		<item text="7"   data="7" />
		<item text="8"   data="8" />
		<item text="9"   data="9" />
		<item text="10"   data="10" />
		<item text="11"   data="11" />
		<item text="12"   data="12" />
		<item text="13"   data="13" />
		<item text="14"   data="14" />
		<item text="15"   data="15" />
	</choice>

      <!-- CREATE GAME -->
	<button name="DM_CREATE"
		style="button_normal"
		position="0,160"
		position_h="0,160"
		text="CREATE GAME"
		on_accept="goto_dm_create"
		size="500,36"
	size_h="500,36"
		align="lc"
		/>

	

	</area>
 <area name="button_bar"
	 platform="ps3"
		style="button_bar">
		<text name="back"
			style="text_bbar"
			text="{IMG_B} BACK"
			position="-7.5%r,13"/>
		<text name="accept"
			style="text_bbar"
			text="{IMG_A} ACCEPT"
			position="-21%r,13"/>
	</area>
	<area name="button_bar"
	 platform="xbox"
		style="button_bar">
		<text name="back"
			style="text_bbar"
			text="{IMG_B} BACK"
			position="-7.5%r,13"/>
		<text name="accept"
			style="text_bbar"
			text="{IMG_A} ACCEPT"
			position="-21%r,13"/>
	</area>

  <event name="event_back">$gui.back="1";</event>
  <action name="back" on_action="event_back"/>

  <event name="mpmap_changed">$STATE[GameMPElimination].SELECTED_MAP_INDEX = index;</event>
  <event name="lpm_changed">$STATE[GameMPElimination].LIFESPERMATCH = data;</event>
  <event name="timelim_changed">$STATE[GameMPElimination].TIMELIMIT	= data;</event>
  
  <event name="maxplayers_changed">
      $STATE[GameMPElimination].MAXPLAYERS	= data;
      privslots.data = $STATE[GameMPElimination].PRIVATESLOTS;
  </event>

  <event name="privslots_changed">
      $STATE[GameMPElimination].PRIVATESLOTS	= data;
  </event>

  <event name="goto_dm_create">
    
    $STATE[MP_CreateGame].SELECTED_MAP = mpmap.data;
    $STATE[GameMPElimination].LIFESPERMATCH	= lifespermatch.data;
    $STATE[GameMPElimination].TIMELIMIT	= timelimit.data;
    $STATE[GameMPElimination].MAXPLAYERS = maxplayers.data;
    $STATE[GameMPElimination].PRIVATESLOTS = privslots.data;
    $GUI.page           = "loading";
    $CORE.next_state   	= "GameMPElimination";
    $CORE.state   		  = "MP_CreateGame";
  </event>

 
  
</page>


