| 450 | } |
| 451 | |
| 452 | std::unique_ptr<NWidgetBase> MakeSaturationLegendLinkGraphGUI() |
| 453 | { |
| 454 | auto panel = std::make_unique<NWidgetVertical>(NWidContainerFlag::EqualSize); |
| 455 | for (uint i = 0; i < lengthof(LinkGraphOverlay::LINK_COLOURS[0]); ++i) { |
| 456 | auto wid = std::make_unique<NWidgetBackground>(WWT_PANEL, COLOUR_DARK_GREEN, i + WID_LGL_SATURATION_FIRST); |
| 457 | wid->SetMinimalSize(50, 0); |
| 458 | wid->SetMinimalTextLines(1, 0, FS_SMALL); |
| 459 | wid->SetFill(1, 1); |
| 460 | wid->SetResize(0, 0); |
| 461 | panel->Add(std::move(wid)); |
| 462 | } |
| 463 | return panel; |
| 464 | } |
| 465 | |
| 466 | std::unique_ptr<NWidgetBase> MakeCargoesLegendLinkGraphGUI() |
| 467 | { |
nothing calls this directly
no test coverage detected