/*------------------------------------------------------------------------------------------------*/
/*- Cockpit Type 1 ------------------------------------------------------------------------------*/
/*------------------------------------------------------------------------------------------------*/

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

.cockpit>.housenumber>BUTTON{
	left: ((PARENT.W/2 - max(rshtextLeftHousenumber.textW, rshtextRightHousenumber.textW, 0))- 35);
	right:((PARENT.W/2 - max(rshtextLeftHousenumber.textW, rshtextRightHousenumber.textW, 0))- 35);
	top:0;
	bottom:0;
	z:20;
	bmp:"map_housenumber_bg.bmp";
	resize_bmp:1;
}

.cockpit>.heading{
	left: 44%;
	right:44%;
	top:0;
	h: 15%;
	visible:(!%route.list.navigated.has_navigable_path && %navigation.car_pos_valid && %map.primary.center_follow);
}

.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_main;
	left:0; 
	top:0;
	right:0;
	bottom:0;
	align:"CENTER"; 
	valign:"CENTER";
	z:100;
}

.cockpit>.cockpit_background{
	left:((%gps.connection_status>0 && !%gps.valid) || ui_PropLayer.OffroadRoute || (%route.list.navigated.has_navigable_path && %navigation.next_street_with_shield) ? (ui_PropLayer.ShowTripBar ? 22% : 19%) : 0);
	right: 0%;
	bottom: 0%;
	top:undef;
	h:15%;
	bmp:"cockpit1_bg.bmp";
	resize_bmp:1;
	/*visible:(!%route.list.navigated.has_navigable_path && !%navigation.car.current_street_with_shield && !(ui_PropLayer.OffroadRoute) && (!%lua.dragMode));*/
	visible:0;
}

.cockpit>.menu_button{
	bottom:undef;
	left:(undef);
	right:10%;
	h:14%;
	top:0;
	w:10%;
	iconspr:"ico_menu.bmp#3";
	iconalign:"CENTER";
	iconvalign:"CENTER";
	bmp:"mapbutton_t_t.bmp#3";
}
.menu_button>TEXT{
	text:"" !important;
}

.cockpit>.capture{
	left:(%lua.showDemoBtn && %other.trips[1].distance_total < 20000 ? 70% : 90%);
	h:const(int(map_infofield_h /3));
	w:10%;
	bottom:(%gps.connection_status<4  && !%navigation.dead_reckoning  ? 15% : 0) ;
	bmp:"mapbutton.bmp#3";
	resize_bmp:1;
}

.cockpit>.demo_button{
	right:(0);
	bottom:(15%);
	w:20%;
	h:15%;
	bmp:"mapbutton_rounded_br_br.bmp#3";
	resize_bmp:1;
}	

.cockpit>.hwy_panel_button{
	right:(%lua.HwyPoiListIsVisible && !%lua.SignpostVisible ? 33% : 0);
	top:(20%);
	w:12%;
	h:20%;
	bmp:("mapbutton_r_r.bmp#3");
	visible: (1);
}

.cockpit>.hwy_panel{
	w:30%;
	top:(14%);
	right:0;
	bottom:undef;
	h:71%; 
	col:1;
	row:3;
	valign:"BOTTOM";
	REVERSED: 1;
	SMOOTHSCROLLING: 1;
}

.cockpit>.hwy_panel_bg{
	right:0 ;
	w:30% ;
	bottom:undef;
	h:71%;
	align:"RIGHT";
	top:(14%);
	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>.additional_features{
	top:(20%);
	right:(sc_IsMapPopupOnscreen(%screen.msgbox.is_onscreen) || %lua.HwyPoiListIsVisible ? 33% : 0);
	w:20%;
	h:14%;
	visible: (!%lua.JunctionViewVisible);
}

.cockpit>.diricon{
	left:(ui_PropLayer.ShowTripBar ? 3% : 0);
	h:(ui_PropLayer.ShowTimeToManeuver ? 38% : 31%);
	top:(undef);
	bottom:(0);
	right:(undef);
	w:19%;
	bmp:("mapbutton_bl_bl.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 ? 3% : 0);
	h:(ui_PropLayer.ShowTimeToManeuver ? 38% : 31%);
	top:(undef);
	bottom:(0);
	right:(undef);
	w:19%;
	bmp:("mapbutton_bl_bl.bmp#3");
	resize_bmp:1 ;
	overmaplayer:1;
	opaque:1;
}

.cockpit .dist_to_maneuver{
    font:"defaultbd";
	fonttype:mandist;
	fontsize:fontsize_main;
	align:"CENTER";
	valign:"CENTER";
	left:(0); 
	/*top:(undef);*/
	top=(ui_PropLayer.ShowTimeToManeuver ? 65% : 80%);
	/*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 ? 3% : 0);
	top:(ui_PropLayer.ShowTimeToManeuver ? 63% : 70%);
	w:18%;
	h:25%;
}

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

.cockpit>SPRITE.next_maneuver{
	left:(ui_PropLayer.ShowTripBar ? 22% : 19%);
	right:(ui_PropLayer.ShowTMCButton ? (%lua.trafficFullDelayTextOnMap ? 20% : 10%) : 0);
	h:15%;
	top:(undef);
	bottom:(0);
	z:40; 
	bmp:"cockpit1_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:"LEFT";
	fonttype: inf_main;
	shieldtextmod: _0.9;
}

.cockpit ROADSHIELDEDTEXT.current_street{
	font:"default";
	padding:text_padding;
	left:(ui_PropLayer.ShowTripBar ? 13% : 10%);
	bottom:(0);
	right:10%;
	h:15%;
	z: 21;
	align: "CENTER";
	combined_textmodel="$navigation.car.lefthousenumber$    $navigation.car.current_street_with_shield$    $navigation.car.righthousenumber$";
	visible:(!%route.list.navigated.has_navigable_path && !%navigation.next_street_with_shield && %navigation.car.current_street_with_shield);
}

.cockpit BUTTON.current_street{
	left: ((PARENT.W - PARENT.textW)/2 - text_padding); 
	w: (text_padding + text_padding + PARENT.textW); 
	top: 0; bottom: 0; z: 20;
	bmp: "map_currentstrt_spr.bmp"; resize_bmp: 1;
}

.cockpit>.laneinfo{
	left:25%;
	top:0;
	w:45%;
	bottom:87%;
	z:105;
	align:"CENTER" ;
	visible:((!%lua.SignpostVisible || !%lua.SignpostOn) && !%lua.JunctionViewVisible );
}

.cockpit>.map_infofield {
	right:(undef);
	left:(ui_PropLayer.ShowTripBar ? 3% : 0);
	bottom:( (%route.list.navigated.has_navigable_path && %navigation.next_street_with_shield || ui_PropLayer.OffroadRoute && wp_valid && %navigation.has_route ) ? (ui_PropLayer.ShowTimeToManeuver ? 37% : 30%) : 0);
	w: 19%;
	h: map_infofield_h;
	visible:(%gps.connection_status<2 && %gps.valid || %navigation.dead_reckoning || %navigation.is_in_simulation);
}

.cockpit>.map_infofield.closed {
	right:(undef);
	left:(ui_PropLayer.ShowTripBar ? 3% : 0);
	bottom:( (%route.list.navigated.has_navigable_path && %navigation.next_street_with_shield || ui_PropLayer.OffroadRoute ) ? (ui_PropLayer.ShowTimeToManeuver ? 37% : 30%) : 0);
	w: 19%;
	h: const(int(map_infofield_h /3));
	visible:(%gps.connection_status<2 && %gps.valid || %navigation.dead_reckoning || %navigation.is_in_simulation);
}

.btn_infofield{
	resize_bmp:1;
	bmp:(index ? "mapbutton_bl_bl.bmp#3" : "mapbutton_rounded_bl_bl.bmp#3");
}

.btn_infofield.top{
	bmp:("mapbutton_bl_bl.bmp#3");
}

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

.cockpit>.speedcam{
	left:(ui_PropLayer.ShowTripBar ? 3% : 0);
	top:undef;
	bottom:(ui_PropLayer.SpeedCameraRate ? 74% : 77%);
	w:speedcamlimit_w;
	h:speedcamlimit_h;
}

.cockpit>.speedlimit{
	left:(ui_PropLayer.ShowTripBar ? 3% : 0);
	/*top:(ui_PropLayer.ShowTimeToManeuver ? 0 : 3%);*/
	top:undef;
	bottom:77%;
	w:speedcamlimit_w;
	h:speedcamlimit_h;
}

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

.cockpit>.notify_list{
	top:0%;
	h:(14%);
	right:(%navigation.is_in_simulation ? 0 : 20%);
	w:20%;
	visible:(!%lua.dragMode && !%lua.showDiriconBg);
}

.notify_list BUTTON.btn_map{
	bmp:"mapbutton_t_t.bmp#3";
}

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

.cockpit>.tmc_button{
	right:(0);
	top:undef;
	bottom:0;
	w:(%lua.trafficFullDelayTextOnMap ? 20% : 10%);
	h:15%;
	visible:(%route.vehicle_type != lua.EVehicleType.Pedestrian && %lua.tmcWasPresented && !%lua.dragMode && !%navigation.is_in_simulation && %traffic.settings.traffic_enabled );
}

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

#div_TMC_btn SPRITE {
	top:(50%) !important;
	left:(%lua.trafficFullDelayTextOnMap ? 25% : 50%);
	bmpvalign:("CENTER") !important;
}

#div_TMC_btn TEXT {
	left:(50%) !important;
	top:(0) !important;
	w:(50%) !important;
	h:(100%) !important;
	fontsize: (fontsize_sec) !important;
	paddingleft:0 !important;
}


.cockpit>.point_to_point{
	left:(ui_PropLayer.ShowTripBar ? 3% : 0);
	top:0;
	w:19%;
	h:31%;
}

.cockpit>.map_quickmenu{
	right:0;
	top:0%;
	w:10%;
	h:14%;
	visible:(!%lua.dragMode && !%navigation.is_in_simulation && !%lua.vMapMenuManageMode || %lua.vMapMenuOpen);
}

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

.cockpit>.detectgps_icon, .cockpit>.autodetectgps_icon{
	left:(ui_PropLayer.ShowTripBar ? 3% : 0);
	h:31%;
	top:(undef);
	bottom:(0);
	right:undef;
	w:19%;
}

.detectgps_icon BUTTON, .autodetectgps_icon BUTTON {
	left: 0;
	h: 100%;
	top:(undef);
	bottom:(0);
	right:(undef);
	w:100%;
	bmp:"mapbutton_menu.bmp#3";
	resize_bmp:1 ;
}

.detectgps_icon>.icon_center, .autodetectgps_icon>.icon_center{
	left:(50%);
}

.cockpit>.detectgps_text, .cockpit>.autodetectgps_text{
	left:(ui_PropLayer.ShowTripBar ? 22% : 19%);
	right:(ui_PropLayer.ShowTMCButton ? (%lua.trafficFullDelayTextOnMap ? 20% : 10%) : 0);
	h:15%;
	top:(undef);
	bottom:(0);
	z:40; 
	bmp:"cockpit1_bg.bmp";
	resize_bmp:1;
}

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

.cockpit>.startpoint_button{
	left:(ui_PropLayer.ShowTripBar ? 3% : 0);
	h:(31%);
	top:(undef);
	bottom:(0);
	right:(undef);
	w:(19%);
	bmp:"mapbutton_menu.bmp#3";
}

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

.cockpit>.startpoint_text{
	left:(ui_PropLayer.ShowTripBar ? 22% : 19%);
	right:(ui_PropLayer.ShowTMCButton ? (%lua.trafficFullDelayTextOnMap ? 20% : 10%) : 0);
	h:(15%);
	top:(undef);
	bottom:(0);
	z:40; 
	bmp:"cockpit1_bg.bmp";
	resize_bmp:1;
}

.cockpit>.startpoint_text>TEXT{
	align:"LEFT";
}

.cockpit>.driver_alert{
	left:(undef);
	right: ( %warning.driveralert.alerts.size == 1 ? -14% : 0);
	top:(48%);
	w:28%;
	h: (undef);
	bottom:15%;
	row:1;
	col:2;
}

.cockpit>.truck_alert{
	left:(undef);
	right:(%lua.HwyPoiListIsVisible ? 30% : 0);
	top:(48%);
}

.cockpit>.simulation_stop{
	left:(80%);
	top:85%;
	w:20%;
	bottom:0;
	z:45;
	bmp:"mapbutton_br_br.bmp#3";
	resize_bmp:1;
}

.cockpit>.recalc_msgbox{
	left:27%;
	top:(87%);
	w:47%; 
	h:12%;
	z:1;
	align:"CENTER";
	valign:"CENTER";
	bmp:"routerecalcanim_spr.spr";
	ANIMATE:"routerecalcanim";
}

.cockpit>.map_messagebox {
	top:14%;
	h: const(int(screen_h*35.5%)*2 + 2);
	right:0 ;
	w:30%;
	align:"RIGHT";	
}

#txt_mapmessagebox{
	top:(%screen.msgbox.on_screen.button_icon_filename(%screen.msgbox.on_screen.number_of_buttons) ? 29% : 5%);
	bottom:22%;
	wordwrap:(%screen.msgbox.on_screen.button_icon_filename(%screen.msgbox.on_screen.number_of_buttons) ? 7 : 9);
	leading:_0.85;
}

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

.cockpit>.simulation_progress{
	left:(ui_PropLayer.ShowTripBar ? 26% : 23%);
}

