MCPcopy Create free account
hub / github.com/OpenRCT2/OpenRCT2 / SetColumns

Method SetColumns

src/openrct2-ui/scripting/CustomListView.cpp:245–256  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

243}
244
245void CustomListView::SetColumns(const std::vector<ListViewColumn>& columns, bool initialising)
246{
247 SelectedCell = std::nullopt;
248 Columns = columns;
249 LastKnownSize = {};
250 SortItems(0, ColumnSortOrder::None);
251 if (!initialising)
252 {
253 WindowUpdateScrollWidgets(*ParentWindow);
254 Invalidate();
255 }
256}
257
258const std::vector<ListViewItem>& CustomListView::GetItems() const
259{

Callers 2

RefreshWidgetsMethod · 0.80
columns_setMethod · 0.80

Calls 2

InvalidateFunction · 0.50

Tested by

no test coverage detected