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

Method BuildSortSignList

src/signs_gui.cpp:281–289  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

279 }
280
281 void BuildSortSignList()
282 {
283 if (this->signs.NeedRebuild()) {
284 this->BuildSignsList();
285 this->vscroll->SetCount(this->signs.size());
286 this->SetWidgetDirty(WID_SIL_CAPTION);
287 }
288 this->SortSignsList();
289 }
290
291 /** Resort the sign listing on a regular interval. */
292 const IntervalTimer<TimerWindow> rebuild_interval = {std::chrono::seconds(3), [this](auto) {

Callers 3

SignListWindowMethod · 0.95
OnPaintMethod · 0.95
SignListWindowClass · 0.95

Calls 6

NeedRebuildMethod · 0.80
BuildSignsListMethod · 0.80
SetWidgetDirtyMethod · 0.80
SortSignsListMethod · 0.80
SetCountMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected