/*------------------------------------------------------------------------------------------------*/
/*- Cockpit Type 2 ------------------------------------------------------------------------------*/
/*------------------------------------------------------------------------------------------------*/


.cockpit>.cockpit_background{
	left:(ui_PropLayer.ShowTripBar ? 3% : 0);
	right: (ui_PropLayer.ShowTripBar ? 77% : 80%);
	bottom: 0;
	top: 0;
	z: 0;
	bmp: ("cockpit_bg.bmp");
	resize_bmp:1;
	visible:(
		(!%lua.dragMode) ||
		(%gps.connection_status<3 && !%gps.valid && !%lua.dragMode && !%navigation.is_in_simulation && !%navigation.car_pos_valid && !%navigation.dead_reckoning)
	);
}

.cockpit>.diricon{
	left:(ui_PropLayer.ShowTripBar ? 4% : 1%);
	h:(37%);
	top:(2%);
	right:(undef);
	w:18%;
	bmp:("mapbutton.bmp#3");
	resize_bmp:1 ;
}

.cockpit>.diricon>.diricon_bitmap{
	left:0;
	right:(0);
	top:0;
	align:"CENTER";
	z:45;
	iconindex:1;
}

.cockpit>.p2p{
	left:(ui_PropLayer.ShowTripBar ? 4% : 1%);
	h:(37%);
	top:(2%);
	right:(undef);
	w:18%;
	bmp:("mapbutton.bmp#3");
	resize_bmp:1 ;
	overmaplayer:1;
	opaque:1;
}


.cockpit .dist_to_maneuver{
    font:"defaultbd";
	fonttype:mandist;
	fontsize: (ui_PropLayer.ShowTimeToManeuver ? fontsize_main : fontsize_main_large);
	align:"CENTER";
	valign:"CENTER";
	left:(0); 
	/*top:(undef);*/
	top=(ui_PropLayer.ShowTimeToManeuver ? 65% : 72%);
	/*bottom=(ui_PropLayer.ShowTimeToManeuver ? 20% : 5%);*/
	w:(100%);
	h:15%;
	z:45;
	fixedwidthnumbers:1;
	clipstyle:"none";
}

.cockpit .time_to_maneuver{
    font:"defaultbd";
	fonttype:mandist;
	fontsize:fontsize_main;
	align:"CENTER";
	valign:"CENTER";
	left:(0);
	top:(undef); 
	bottom:(5%);
	w:(100%);
	h:15%;
	z:45;
	fixedwidthnumbers:1;
	clipstyle:"none";
}

.cockpit>.roundabout{
	left:(ui_PropLayer.ShowTripBar ? 4% : 1%);
	top:(1%);
	w:18%;
	h:29%;
}

.cockpit>.secondary_diricon{
	left:0;
	top:0; 
	w:0; 
	bottom:0;
	z:30;
	/*bmp:"mapbutton.bmp#3";*/
	resize_bmp:1;
	visible: (0);
}

.cockpit>.menu_button{
	left:(ui_PropLayer.ShowTripBar ? 13% : 10%);
	top:(undef);
	w:9%;
	h:(15%);
	bottom:(2%) ;
	iconspr:"ico_menu.bmp#3";
	iconalign:"CENTER";
	iconvalign:"CENTER";
	bmp:"mapbutton.bmp#3";
}
.menu_button>TEXT{
	text:"" !important;
}

.cockpit>.capture{
	left:(ui_PropLayer.ShowTripBar ? 23% : 20%);
	h:const(int(map_infofield_h /3));
	w:10%;
	bottom:0 ;
	bmp:"mapbutton.bmp#3";
	resize_bmp:1;
}

.cockpit>.map_quickmenu{
	right: (undef);
	left:(ui_PropLayer.ShowTripBar ? 4% : 1%);
	top: (undef);
	bottom: (2%);
	w: 9%;
	h: (15%);
	visible:(!%lua.dragMode && !%navigation.is_in_simulation && !%lua.vMapMenuManageMode || %lua.vMapMenuOpen);
}

.btn_quickmenu{
	bottom:(0);
	resize_bmp:1;
	bmp:"mapbutton.bmp#3";
}

.cockpit>SPRITE.next_maneuver{
	left:(ui_PropLayer.ShowTripBar ? 23% : 20%);
	right:(ui_PropLayer.ShowTMCButton ? 10% : 0);
	h:18%;
	top:(0);
	z:40; 
	bmp:"cockpit_bg.bmp";
	resize_bmp:1;
	visible:(%route.list.navigated.has_navigable_path && %navigation.next_street_with_shield);
}

.cockpit ROADSHIELDEDTEXT.next_maneuver{
	left:0;
	top:5%; 
	right:0;
	bottom:5%;
	z:50;
	align:"CENTER";
	fonttype: inf_main;
	shieldtextmod: _0.9;
}

.cockpit>.signpost{
	left:(ui_PropLayer.ShowTripBar ? 23% : 20%);
	top:0;
	w: (undef);
	right:(0);
	z:400;
	align:"CENTER";
}

.junctionview{
	left:15%; 
	top:0; 
	w:100%;
	h:100%;
	z:1; 
	align:"LEFT";
}

.cockpit>.laneinfo{
	left:(ui_PropLayer.ShowTripBar ? 31% : 28%);
	top:18%;
	w:(undef);
	right:(0);
	bottom:69%;
	z:105;
	align:"CENTER" ;
}

.cockpit>.map_infofield {
	right:(undef);
	left:(ui_PropLayer.ShowTripBar ? 4% : 1%);
	bottom: 17%;
	w: 18%;
	h: map_infofield_h;
}

.cockpit>.map_infofield.closed {
	right:(undef);
	left:(ui_PropLayer.ShowTripBar ? 4% :0);
	bottom: 17%;
	w: 19%
	h: const(int(map_infofield_h /3));
}

.btn_infofield{
	resize_bmp:1;
	bmp:("mapbutton.bmp#3");
	/*onrelease:'sc_SelectCockpit_Map';*/
	onrelease:'sc_GoToTripInfoChange(index)';
}

.btn_infofield.top{
	bmp:"mapbutton.bmp#3";
	onlongclick:'sc_GoToTripInfoChange( 0 )';
	/*onrelease:'sc_GoToTripInfoChange( 0 )';*/
}

.btn_infofield.center{
	onlongclick:'sc_GoToTripInfoChange( 1 )';
	/*onrelease:'sc_GoToTripInfoChange( 1 )';*/
}

.btn_infofield.bottom{
	onlongclick:'sc_GoToTripInfoChange( 2 )';
	/*onrelease:'sc_GoToTripInfoChange( 2 )';*/
}

.btn_infofield>.icon{
	left:0; top:0; w:100%; bottom:0;
	bmpalign:"LEFT"; bmpvalign:"TOP";
	align:"LEFT" !important;
}

.cockpit>.notify_list{
	top:18%;
	h:82%;
	right:(sc_IsMapPopupOnscreen(%screen.msgbox.is_onscreen) || %lua.HwyPoiListIsVisible ? 33% : 0);
	w:10%;
	visible:(!%lua.dragMode && !%lua.showDiriconBg);
}

.cockpit>.notify_list>TABLE{
	left: 0; top: 0; right: 0; bottom: 0;
	row: 6; col: 1;
	R2L: 1; FILL_VERTICAL: 1;
	COMPACT: 1;
	/*B2T*/
}

.cockpit>.tmc_button{
	right:0;
	top:0;
	w:10%;
	visible:(ui_PropLayer.ShowTMCButton);
	h:18%;
}

.cockpit>.tmc_button>BUTTON{
	left:0;
	top:0;
	right:0;
	bottom:0;
	z:15;
	bmp: ("mapbutton_tr_tr.bmp#3");
	iconphasesync:0 ;
}

.cockpit ROADSHIELDEDTEXT.current_street{
	font:"default";
	padding:text_padding;
	left:(ui_PropLayer.ShowTripBar ? 31% : 28%);
	bottom:2%;
	right:0;
	h:11%;
	z: 21;
	align: "CENTER";
	combined_textmodel="$navigation.car.lefthousenumber$    $navigation.car.current_street_with_shield$    $navigation.car.righthousenumber$";
	visible:(!%lua.HwyPoiListIsVisible && !%screen.msgbox.is_onscreen && %navigation.car.current_street_with_shield);
}

.cockpit>.housenumber{
	left: 20%;
	right:20%;
	top:14%;
	h:12%;
	visible:(0);
}

.cockpit>.heading{
	left: (ui_PropLayer.ShowTripBar ? 5% : 2%);
	right:(ui_PropLayer.ShowTripBar ? 79% : 82%);
	top:(4%);
	h: 32%;
	visible:(!%route.list.navigated.has_navigable_path && %navigation.car_pos_valid && %map.primary.center_follow && !ui_EasyNav_NextMan.wp_valid);
	
}

.cockpit>.heading>BUTTON{
	left:0;
	top:0; 
	right:0; 
	bottom:0;
	align:"CENTER"; 
	valign:"CENTER"; 
	z:30; 
	resize_bmp:1; 
	bmp:"map_currentstrt_spr.bmp";
}

.cockpit>.heading TEXT{
    font:"defaultbd";
	fonttype:btn_main;
	fontsize:fontsize_double;
	left:0; 
	top:0;
	right:0;
	bottom:0;
	align:"CENTER"; 
	valign:"CENTER";
	z:100;
}

.cockpit>.detectgps_icon, .cockpit>.autodetectgps_icon{
	left:(ui_PropLayer.ShowTripBar ? 4% : 1%);
	h:37%;
	top:2%;
	w: 18%;
	z:35;
}

.detectgps_icon BUTTON, .autodetectgps_icon BUTTON {
	left: 0;
	h: 100%;
	top: 0;
	w: 100%;
	z:35;
	bmp:"mapbutton.bmp#3";
	resize_bmp:1 ;
	checkhit:1;
}

.cockpit>.detectgps_text, .cockpit>.autodetectgps_text{
	left:(ui_PropLayer.ShowTripBar ? 23% : 20%);
	right:(ui_PropLayer.ShowTMCButton ? 10% : 0);
	h:18%;
	top:(0);
	z:40; 
	resize_bmp:1;
	bmp:"cockpit_bg.bmp";
}

.cockpit>.detectgps_text>TEXT, .cockpit>.autodetectgps_text>TEXT{
	left:0;
	top:0; 
	right:0;
	bottom:0;
	z:50;
	align:"CENTER";
	fonttype:inf_main !important;
}

.cockpit>.startpoint_button{
	left:(ui_PropLayer.ShowTripBar ? 4% : 1%);
	top:2%;
	w: (18%);
	h:37%;
	z:35;
	bmp:"mapbutton.bmp#3";
}

.cockpit>.startpoint_button>TEXT{
	wordwrap:2;
}

.cockpit>.startpoint_text{
	left:(ui_PropLayer.ShowTripBar ? 23% : 20%);
	right:(ui_PropLayer.ShowTMCButton ? 10% : 0);
	h:18%;
	top:(0);
	z:40; 
	resize_bmp:1;
	bmp:"cockpit_bg.bmp";
}

.cockpit>.driver_alert{
	left:(ui_PropLayer.ShowTripBar ? 23% : 20%);
	top:(18%);
	w:28%;
	h: (lua.maxRowHeight - (ui_PropLayer.ShowTimeToManeuver ? lua.rowShift : 0) - (ui_PropLayer.ShowSpeedCamera || ui_PropLayer.ShowSpeedLimit ? 2 * lua.rowShift : 0) );
	row:1;
	col:2;
}

.cockpit>.truck_alert{
	left:(ui_PropLayer.ShowTripBar ? 23% : 20%);
	top:(18%);
}

.cockpit>.demo_button{
	h:15%;
	right:(%lua.HwyPoiListIsVisible ? 33% : 0);
	bottom:0;
	w:19%;
	bmp:"mapbutton_rounded_br.bmp#3";
	resize_bmp:1;
}

.cockpit>.hwy_panel_button{
	right:(0);
	top:( %lua.SignpostVisible ? 36% : 15%);
	w:12%;
	h:21%;
	bmp:("mapbutton_r_r.bmp#3");
	visible: (1);
}

.cockpit>.hwy_panel{
	w:33%;
	top:18%;
	right:0;
	bottom:0; 
	col:1;
	row:3;
	valign:"BOTTOM";
	REVERSED: 1;
	SMOOTHSCROLLING: 1;
}

.cockpit>.hwy_panel_bg{
	right:0 ;
	w:33%;
	bottom:0;
	align:"RIGHT";
	top:(%lua.SignpostVisible ? 43% : 18%);
	bmp:"spr_hwbg_panel.bmp";
}

.hwy_panel_element>.background{
	left:0;
	top:0; 
	right:0;
	bottom:0;
	z:0; 
	resize_bmp: 1;
	bmp:(index ? "spr_hwbg1.bmp" : "spr_hwbg_nearest1.bmp");
}

.cockpit>.simulation_stop{
	left:(ui_PropLayer.ShowTripBar ? 4% : 1%);
	top:84%;
	w:18%;
	bottom:2%;
	z:45;
	bmp:"mapbutton.bmp#3";
	resize_bmp:1;
}

.cockpit>.speedcam{
	left:(ui_PropLayer.ShowTripBar ? 23% : 20%);
	top:60%;
	w:speedcamlimit_w;
	h:speedcamlimit_h;
}

.cockpit>.speedlimit{
	left:(ui_PropLayer.ShowTripBar ? 23% : 20%);
	top:60%;
	w:speedcamlimit_w;
	h:speedcamlimit_h;
}

.cockpit>.map_messagebox {
	/*left:(%navigation.has_route && %lua.tripInfoVisible ? map_messafebox_x_2 : map_messafebox_x_1);
	top: 0;
	w: map_messagebox_w;
	h: map_messagebox_h;*/
	top:18%;
	h: const(int(screen_h*41%)*2 + 2);
	right:0 ;
	w:33% ;
	align:"RIGHT";
}

.cockpit>.simulation_controls{
	left:(ui_PropLayer.ShowTripBar ? 35% : 33%); 
	top:36%;
	w:54%;
	h:22%;
}

.cockpit>.simulation_progress{
	left:(ui_PropLayer.ShowTripBar ? 35% : 33%);
}

.quickmenu_list{
	left:(ui_PropLayer.ShowTripBar ? 3% : 2%) !important;
	cellw:24% !important;
}
.full>BUTTON.btn_main.maplocalmenu{
	left:(ui_PropLayer.ShowTripBar ? 13% : 10%) !important;
	w:(ui_PropLayer.ShowTripBar ? 12% : 14%) !important;
	top:82% !important;
	bmp:"mapbutton.bmp#3";
}
SPRITE.maplocalmenu{
	left:(ui_PropLayer.ShowTripBar ? 25% : 24%) !important;
	top:82% !important;
	w:(ui_PropLayer.ShowTripBar ? 73% : 75%)!important;
}
.scroll.maplocalmenu{
	left:(ui_PropLayer.ShowTripBar ? 27% : 25%)!important;
	top:83% !important;
	right:6% !important;
}

.btn_main.maplocalmenu { bmp:( index == 0 ? "button_topleft.bmp#3" : ( (index == 7 ) ? "button_bottomright.bmp#3" : "button.bmp#3")) }


#cockpit_distance DISTTEXT {
	right:undef !important;
	left:12% !important;
	w:82% !important;
}
