<?xml version="1.0"?>

<page name="mp_ingame_team"
	cursor="true"
	on_show="show">

	<event name="show">
		bg.highlited="0";
		bg.highlited="true";
		time="10";
		on_time="time1";
	</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"
	/>
<!-- 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_mainmenu"
		text="MENU"
		font="gui_jjstencil"
		text_color="FFbf2a02"
		size="31%,8%"
		font_size="34"
		position="0%,14%"
		align="rc"
	/>

	<area name="mainmenu"
		style="menu"
		color="70FFFFFF">

		<button name="RESUME"
			style="button_normal"
			position="0r,0"
			position_h="0r,0"
			text_id="110124"
			on_accept="goto_continue"
			align="rc"
		/>
		<button name="SWITCH_SIDE"
			style="button_normal"
			position="0r,36"
			position_h="0r,36"
			text_id="110126"
			confirm_condition="CanSwitchTeams"
			confirm="true"
			confirm_mode="yes_no"
			confirm_text="Do you really want to switch side?"
			confirm_alt="true"
			confirm_mode_alt="back"
			confirm_text_id_alt="200034"
			on_accept="goto_switchside"
			align="rc"
		/>
		<button name="SELECT_SKIN"
			style="button_normal"
			position="0r,72"
			position_h="0r,72"
			text="SELECT SKIN"
			on_accept="goto_selectskin"
			align="rc"
		/>
		<button name="OPTIONS"
			style="button_normal"
			position="0r,108"
			position_h="0r,108"
			text="OPTIONS"
			on_accept="goto_options"
			align="rc"
		/>
		<button name="LEAVE_MATCH"
			style="button_normal"
			size="200,72"
			size_h="200,72"
			position="0r,144"
			position_h="0r,144"
			text_id="110125"
			on_accept="goto_exit"
			confirm="true"
			confirm_text_id="110300"
			align="rc"
		/>
	</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>
	
	<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>
	<event name="goto_continue">
		$gui.hide_all = "1";
	</event>

	<event name="goto_exit">
		$STATE[mainmenu].DestroyWorld = "1";
		$CORE.state = "mainmenu";
	</event>

	<event name="goto_switchside">
		$STATE.switch_team = "1";
	</event>
	
	<event name="goto_options">
		$gui.page="options";
	</event>

	<event name="goto_selectskin">$gui.page="mp_selectskin";</event>

	<event name="event_back">$CORE.hide_mp_ingame ="1";</event>
	<action name="back" on_action="event_back"/>

</page>
