| 288 | } |
| 289 | |
| 290 | void OnClick([[maybe_unused]] Point pt, WidgetID widget, [[maybe_unused]] int click_count) override |
| 291 | { |
| 292 | switch (widget) { |
| 293 | case WID_LI_LOCATION: |
| 294 | if (_ctrl_pressed) { |
| 295 | ShowExtraViewportWindow(this->tile); |
| 296 | } else { |
| 297 | ScrollMainWindowToTile(this->tile); |
| 298 | } |
| 299 | break; |
| 300 | } |
| 301 | } |
| 302 | |
| 303 | /** |
| 304 | * Some data on this window has become invalid. |
nothing calls this directly
no test coverage detected