* Update the overlay with the new cargo selection. */
| 668 | * Update the overlay with the new cargo selection. |
| 669 | */ |
| 670 | void LinkGraphLegendWindow::UpdateOverlayCargoes() |
| 671 | { |
| 672 | CargoTypes mask = 0; |
| 673 | for (uint c = 0; c < num_cargo; c++) { |
| 674 | if (!this->IsWidgetLowered(WID_LGL_CARGO_FIRST + c)) continue; |
| 675 | SetBit(mask, _sorted_cargo_specs[c]->Index()); |
| 676 | } |
| 677 | this->overlay->SetCargoMask(mask); |
| 678 | } |
| 679 | |
| 680 | void LinkGraphLegendWindow::OnClick([[maybe_unused]] Point pt, WidgetID widget, [[maybe_unused]] int click_count) |
| 681 | { |
no test coverage detected