* Update the overlay with the new company selection. */
| 654 | * Update the overlay with the new company selection. |
| 655 | */ |
| 656 | void LinkGraphLegendWindow::UpdateOverlayCompanies() |
| 657 | { |
| 658 | CompanyMask mask; |
| 659 | for (CompanyID c = CompanyID::Begin(); c < MAX_COMPANIES; ++c) { |
| 660 | if (this->IsWidgetDisabled(WID_LGL_COMPANY_FIRST + c)) continue; |
| 661 | if (!this->IsWidgetLowered(WID_LGL_COMPANY_FIRST + c)) continue; |
| 662 | mask.Set(c); |
| 663 | } |
| 664 | this->overlay->SetCompanyMask(mask); |
| 665 | } |
| 666 | |
| 667 | /** |
| 668 | * Update the overlay with the new cargo selection. |
no test coverage detected