| 213 | struct MainWindow : Window |
| 214 | { |
| 215 | MainWindow(WindowDesc &desc) : Window(desc) |
| 216 | { |
| 217 | this->InitNested(0); |
| 218 | this->flags.Reset(WindowFlag::WhiteBorder); |
| 219 | ResizeWindow(this, _screen.width, _screen.height); |
| 220 | |
| 221 | NWidgetViewport *nvp = this->GetWidget<NWidgetViewport>(WID_M_VIEWPORT); |
| 222 | nvp->InitializeViewport(this, TileXY(32, 32), ScaleZoomGUI(ZoomLevel::Viewport)); |
| 223 | |
| 224 | this->viewport->overlay = std::make_shared<LinkGraphOverlay>(this, WID_M_VIEWPORT, 0, CompanyMask{}, 2); |
| 225 | this->refresh_timeout.Reset(); |
| 226 | } |
| 227 | |
| 228 | /** Refresh the link-graph overlay. */ |
| 229 | void RefreshLinkGraph() |
nothing calls this directly
no test coverage detected