<?xml version="1.0"?>

<page name="mp_telm"
	cursor="true"
	on_show="show">
	
	<event name="show">
    bg.highlited="0";
    bg.highlited="true";
    time="10";
    on_time="time1";

    winslimit.data = $STATE[GameMPTeam_Elimination].WINSLIMIT;
    lifespermatch.data = $STATE[GameMPTeam_Elimination].LIFESPERMATCH;
    maxplayers.data = $STATE[GameMPTeam_Elimination].MAXPLAYERS;
    friendlyfire.data = $STATE[GameMPTeam_Elimination].FRIENDLY_FIRE;
    autoteambalance.data = $STATE[GameMPTeam_Elimination].AUTO_TEAM_BALANCE;
    timelimit.data = $STATE[GameMPTeam_Elimination].TIMELIMIT;


    mpmap.index = $STATE[GameMPTeam_Elimination].SELECTED_MAP_INDEX;
  </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"
		/>
  <area name="header_bg2"
			style="header_bg"
			position="0,19%"
		/>
  <area name="header_bg3"
			style="header_bg"
			position="0,17%"
		/>

  <text name="header_mpelm"
    text_id="110034"
    font="gui_jjstencil"
    text_color="FFbf2a02"
    size="25%,16%"
    font_size="34"
    position="6%,12.1%"
    align="rc"
			/>
  <area name="mp_menu_bg"
    style="button_bar"
    position="c,65c"
    size="100%,340">
    <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,41%"
    position="c,55c"
    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>

    <!-- WINSLIMIT -->
    <choice name="winslimit"
          text_id="110116"
          style="button_choice"
          position="0,32"
          position_h="0,32"
          on_change="winslim_changed">
      <item text="1"     data="1" />
      <item text="3"     data="3" />
      <item text="5"     data="5" />
    </choice>

    <!-- LIFESPERMATCH -->
    <choice name="lifespermatch"
          text_id="110117"
          style="button_choice"
          position="0,64"
          position_h="0,64"
          on_change="lpm_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,96"
          position_h="0,96"
          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,128"
          position_h="0,128"
          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>

    <choice name="friendlyfire"
            text_id="110024"
            style="button_choice"
            position="0,160"
            position_h="0,160"
            on_change="ff_changed">

      <item text_id="24" data="0" />
      <item text_id="23" data="1" />
    </choice>

    <!-- AUTO TEAM BALANCE -->
    <choice name="autoteambalance"
            text_id="110133"
            style="button_choice"
            position="0,192"
            position_h="0,192"
            on_change="ateambal_changed">

      <item text_id="24" data="0" />
      <item text_id="23" data="1" />
    </choice>


    <!-- CREATE -->
    <button name="DM_CREATE"
      style="button_normal"
      size="500,36"
      size_h="500,36"
      position="0,256"
      position_h="0,256"
      text="CREATE GAME"
      on_accept="goto_dm_create"
      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="winslim_changed">$STATE[GameMPTeam_Elimination].WINSLIMIT	= data;</event>
  <event name="lpm_changed">$STATE[GameMPTeam_Elimination].LIFESPERMATCH = data;</event>
  <event name="mpmap_changed">$STATE[GameMPTeam_Elimination].SELECTED_MAP_INDEX = index;</event>
  <event name="ff_changed">$STATE[GameMPTeam_Elimination].FRIENDLY_FIRE	= data;</event>
  <event name="ateambal_changed">$STATE[GameMPTeam_Elimination].AUTO_TEAM_BALANCE = data;</event>

  <event name="timelim_changed">$STATE[GameMPTeam_Elimination].TIMELIMIT	= data;</event>


  <event name="maxplayers_changed">
      $STATE[GameMPTeam_Elimination].MAXPLAYERS	= data;
  </event>

  <event name="goto_dm_create">
    
    $STATE[MP_CreateGame].SELECTED_MAP = mpmap.data;
    $STATE[GameMPTeam_Elimination].WINSLIMIT	= winslimit.data;
    $STATE[GameMPTeam_Elimination].TIMELIMIT	= timelimit.data;
    $STATE[GameMPTeam_Elimination].LIFESPERMATCH	= lifespermatch.data;
    $STATE[GameMPTeam_Elimination].MAXPLAYERS = maxplayers.data;
    $STATE[GameMPTeam_Elimination].FRIENDLY_FIRE = friendlyfire.data;
    $STATE[GameMPTeam_Elimination].AUTO_TEAM_BALANCE = autoteambalance.data;
    $GUI.page           = "loading";
    $CORE.next_state   	= "GameMPTeam_Elimination";
    $CORE.state   		  = "MP_CreateGame";
  </event>

  

</page>


