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

Function MakeCompanyButtonRowsGraphGUI

src/graph_gui.cpp:2032–2035  ·  view source on GitHub ↗

Make a number of rows with buttons for each company for the performance rating detail window. */

Source from the content-addressed store, hash-verified

2030
2031/** Make a number of rows with buttons for each company for the performance rating detail window. */
2032std::unique_ptr<NWidgetBase> MakeCompanyButtonRowsGraphGUI()
2033{
2034 return MakeCompanyButtonRows(WID_PRD_COMPANY_FIRST, WID_PRD_COMPANY_LAST, COLOUR_BROWN, 8, STR_PERFORMANCE_DETAIL_SELECT_COMPANY_TOOLTIP);
2035}
2036
2037static constexpr std::initializer_list<NWidgetPart> _nested_performance_rating_detail_widgets = {
2038 NWidget(NWID_HORIZONTAL),

Callers

nothing calls this directly

Calls 1

MakeCompanyButtonRowsFunction · 0.85

Tested by

no test coverage detected