From 49c9710afca07e25f8775aafcd495642f58dd2aa Mon Sep 17 00:00:00 2001 From: Leon Styhre Date: Wed, 28 Sep 2022 17:20:01 +0200 Subject: [PATCH] Added 'none' as a supported carousel item type to show only text entries in the gamelist view. --- es-app/src/views/GamelistView.cpp | 2 +- es-core/src/components/primary/CarouselComponent.h | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/es-app/src/views/GamelistView.cpp b/es-app/src/views/GamelistView.cpp index 5e7133e6a..8ec066523 100644 --- a/es-app/src/views/GamelistView.cpp +++ b/es-app/src/views/GamelistView.cpp @@ -151,7 +151,7 @@ void GamelistView::onThemeChanged(const std::shared_ptr& theme) itemType == "backcover" || itemType == "3dbox" || itemType == "physicalmedia" || itemType == "screenshot" || itemType == "titlescreen" || itemType == "miximage" || - itemType == "fanart") { + itemType == "fanart" || itemType == "none") { mCarousel->setItemType(itemType); } else { diff --git a/es-core/src/components/primary/CarouselComponent.h b/es-core/src/components/primary/CarouselComponent.h index d6ae0d15b..14f372a7d 100644 --- a/es-core/src/components/primary/CarouselComponent.h +++ b/es-core/src/components/primary/CarouselComponent.h @@ -436,6 +436,8 @@ template void CarouselComponent::onDemandTextureLoad() entry.data.itemPath = game->getMiximagePath(); else if (mItemType == "fanart") entry.data.itemPath = game->getFanArtPath(); + else if (mItemType == "none") // Display the game name as text. + return; auto theme = game->getSystem()->getTheme(); updateEntry(entry, theme);