MCPcopy Create free account
hub / github.com/OpenTTD/OpenTTD / OnTimeout

Method OnTimeout

src/toolbar_gui.cpp:2462–2467  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2460 }
2461
2462 void OnTimeout() override
2463 {
2464 this->SetWidgetsLoweredState(false, WID_TE_DATE_BACKWARD, WID_TE_DATE_FORWARD);
2465 this->SetWidgetDirty(WID_TE_DATE_BACKWARD);
2466 this->SetWidgetDirty(WID_TE_DATE_FORWARD);
2467 }
2468
2469 /** Refresh the state of pause / game-speed on a regular interval.*/
2470 const IntervalTimer<TimerWindow> refresh_interval = {std::chrono::milliseconds(30), [this](auto) {

Callers

nothing calls this directly

Calls 2

SetWidgetDirtyMethod · 0.80

Tested by

no test coverage detected