MCPcopy Create free account
hub / github.com/Open-GD/OpenGD / fillList

Method fillList

Source/LevelBrowserLayer.cpp:265–282  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

263}
264
265void LevelBrowserLayer::fillList()
266{
267 listView->removeAllItems();
268 _loading->setVisible(false);
269 _leftBtn->setEnabled(_searchObj->_page > 0);
270 _leftBtn->setVisible(_searchObj->_page > 0);
271 _rightBtn->setEnabled(true);
272 _rightBtn->setVisible(true);
273
274 int col = 0;
275 for (auto l : _cachedLevels[_searchObj->_page])
276 {
277 auto levelCell = LevelCell::create(l);
278 levelCell->updateBGColor(col);
279 listView->pushBackCustomItem(levelCell);
280 col++;
281 }
282}

Callers

nothing calls this directly

Calls 2

createFunction · 0.85
updateBGColorMethod · 0.45

Tested by

no test coverage detected