equal
deleted
inserted
replaced
383 default: NOT_REACHED(); |
383 default: NOT_REACHED(); |
384 } |
384 } |
385 } |
385 } |
386 |
386 |
387 /* Set text of sort by dropdown */ |
387 /* Set text of sort by dropdown */ |
388 this->widget[GRP_WIDGET_SORT_BY_DROPDOWN].data = _vehicle_sort_listing[this->vehicles.SortType()]; |
388 this->widget[GRP_WIDGET_SORT_BY_DROPDOWN].data = this->vehicle_sorter_names[this->vehicles.SortType()]; |
389 |
389 |
390 this->DrawWidgets(); |
390 this->DrawWidgets(); |
391 |
391 |
392 /* Draw Matrix Group |
392 /* Draw Matrix Group |
393 * The selected group is drawn in white */ |
393 * The selected group is drawn in white */ |
476 this->vehicles.ToggleSortOrder(); |
476 this->vehicles.ToggleSortOrder(); |
477 this->SetDirty(); |
477 this->SetDirty(); |
478 break; |
478 break; |
479 |
479 |
480 case GRP_WIDGET_SORT_BY_DROPDOWN: // Select sorting criteria dropdown menu |
480 case GRP_WIDGET_SORT_BY_DROPDOWN: // Select sorting criteria dropdown menu |
481 ShowDropDownMenu(this, _vehicle_sort_listing, this->vehicles.SortType(), GRP_WIDGET_SORT_BY_DROPDOWN, 0, (this->vehicle_type == VEH_TRAIN || this->vehicle_type == VEH_ROAD) ? 0 : (1 << 10)); |
481 ShowDropDownMenu(this, this->vehicle_sorter_names, this->vehicles.SortType(), GRP_WIDGET_SORT_BY_DROPDOWN, 0, (this->vehicle_type == VEH_TRAIN || this->vehicle_type == VEH_ROAD) ? 0 : (1 << 10)); |
482 return; |
482 return; |
483 |
483 |
484 case GRP_WIDGET_ALL_VEHICLES: // All vehicles button |
484 case GRP_WIDGET_ALL_VEHICLES: // All vehicles button |
485 if (!IsAllGroupID(this->group_sel)) { |
485 if (!IsAllGroupID(this->group_sel)) { |
486 this->group_sel = ALL_GROUP; |
486 this->group_sel = ALL_GROUP; |