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

Method SetItems

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

Source from the content-addressed store, hash-verified

261}
262
263void CustomListView::SetItems(const std::vector<ListViewItem>& items, bool initialising)
264{
265 SelectedCell = std::nullopt;
266 Items = items;
267 SortItems(0, ColumnSortOrder::None);
268 if (!initialising)
269 {
270 WindowUpdateScrollWidgets(*ParentWindow);
271 Invalidate();
272 }
273}
274
275void CustomListView::SetItems(std::vector<ListViewItem>&& items, bool initialising)
276{

Callers 2

RefreshWidgetsMethod · 0.80
items_setMethod · 0.80

Calls 2

InvalidateFunction · 0.50

Tested by

no test coverage detected