src/vehicle_gui.cpp
branchcpp_gui
changeset 6250 5135b200b376
parent 6246 2a4c2c4d66f0
child 6252 ca57ad0b45ea
equal deleted inserted replaced
6249:abafebc2fbce 6250:5135b200b376
   813 	w->caption_color = player;
   813 	w->caption_color = player;
   814 
   814 
   815 	/* Hide the widgets that we will not use in this window
   815 	/* Hide the widgets that we will not use in this window
   816 	 * Some windows contains actions only fit for the owner */
   816 	 * Some windows contains actions only fit for the owner */
   817 	if (player == _local_player) {
   817 	if (player == _local_player) {
   818 		HideWindowWidget(w, VLW_WIDGET_OTHER_PLAYER_FILLER);
   818 		w->HideWidget(VLW_WIDGET_OTHER_PLAYER_FILLER);
   819 		w->SetWidgetDisabledState(VLW_WIDGET_AVAILABLE_VEHICLES, window_type != VLW_STANDARD);
   819 		w->SetWidgetDisabledState(VLW_WIDGET_AVAILABLE_VEHICLES, window_type != VLW_STANDARD);
   820 	} else {
   820 	} else {
   821 		w->SetWidgetsHiddenState(true,
   821 		w->SetWidgetsHiddenState(true,
   822 			VLW_WIDGET_AVAILABLE_VEHICLES,
   822 			VLW_WIDGET_AVAILABLE_VEHICLES,
   823 			VLW_WIDGET_MANAGE_VEHICLES,
   823 			VLW_WIDGET_MANAGE_VEHICLES,