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

Function ToolbarLeagueClick

src/toolbar_gui.cpp:696–705  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

694}
695
696static CallBackFunction ToolbarLeagueClick(Window *w)
697{
698 DropDownList list;
699
700 AddDropDownLeagueTableOptions(list);
701
702 int selected = list[0]->result;
703 ShowDropDownList(w, std::move(list), selected, WID_TN_LEAGUE, 140, GetToolbarDropDownOptions());
704 return CBF_NONE;
705}
706
707/**
708 * Handle click on the entry in the Graphs or CompanyLeague.

Callers

nothing calls this directly

Calls 3

ShowDropDownListFunction · 0.85

Tested by

no test coverage detected