Added 'none' as a supported carousel item type to show only text entries in the gamelist view.

This commit is contained in:
Leon Styhre 2022-09-28 17:20:01 +02:00
parent fd20ecb142
commit 49c9710afc
2 changed files with 3 additions and 1 deletions

View file

@ -151,7 +151,7 @@ void GamelistView::onThemeChanged(const std::shared_ptr<ThemeData>& theme)
itemType == "backcover" || itemType == "3dbox" || itemType == "backcover" || itemType == "3dbox" ||
itemType == "physicalmedia" || itemType == "screenshot" || itemType == "physicalmedia" || itemType == "screenshot" ||
itemType == "titlescreen" || itemType == "miximage" || itemType == "titlescreen" || itemType == "miximage" ||
itemType == "fanart") { itemType == "fanart" || itemType == "none") {
mCarousel->setItemType(itemType); mCarousel->setItemType(itemType);
} }
else { else {

View file

@ -436,6 +436,8 @@ template <typename T> void CarouselComponent<T>::onDemandTextureLoad()
entry.data.itemPath = game->getMiximagePath(); entry.data.itemPath = game->getMiximagePath();
else if (mItemType == "fanart") else if (mItemType == "fanart")
entry.data.itemPath = game->getFanArtPath(); entry.data.itemPath = game->getFanArtPath();
else if (mItemType == "none") // Display the game name as text.
return;
auto theme = game->getSystem()->getTheme(); auto theme = game->getSystem()->getTheme();
updateEntry(entry, theme); updateEntry(entry, theme);