mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2024-11-25 15:45:38 +00:00
Added support for the physicalmedia image type to the image, video and carousel elements.
This commit is contained in:
parent
b9c480505a
commit
9480f125bb
|
@ -138,9 +138,10 @@ void GamelistView::onThemeChanged(const std::shared_ptr<ThemeData>& theme)
|
||||||
mCarousel = std::make_unique<CarouselComponent<FileData*>>();
|
mCarousel = std::make_unique<CarouselComponent<FileData*>>();
|
||||||
if (element.second.has("itemType")) {
|
if (element.second.has("itemType")) {
|
||||||
const std::string itemType {element.second.get<std::string>("itemType")};
|
const std::string itemType {element.second.get<std::string>("itemType")};
|
||||||
if (itemType == "marquee" || itemType == "cover" || itemType == "3dbox" ||
|
if (itemType == "marquee" || itemType == "cover" ||
|
||||||
itemType == "screenshot" || itemType == "titlescreen" ||
|
itemType == "backcover" || itemType == "3dbox" ||
|
||||||
itemType == "backcover" || itemType == "miximage" ||
|
itemType == "physicalmedia" || itemType == "screenshot" ||
|
||||||
|
itemType == "titlescreen" || itemType == "miximage" ||
|
||||||
itemType == "fanart") {
|
itemType == "fanart") {
|
||||||
mCarousel->setItemType(itemType);
|
mCarousel->setItemType(itemType);
|
||||||
}
|
}
|
||||||
|
@ -853,6 +854,13 @@ void GamelistView::setGameImage(FileData* file, GuiComponent* comp)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else if (imageType == "physicalmedia") {
|
||||||
|
path = file->getPhysicalMediaPath();
|
||||||
|
if (path != "") {
|
||||||
|
comp->setImage(path);
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
else if (imageType == "fanart") {
|
else if (imageType == "fanart") {
|
||||||
path = file->getFanArtPath();
|
path = file->getFanArtPath();
|
||||||
if (path != "") {
|
if (path != "") {
|
||||||
|
|
|
@ -800,6 +800,13 @@ void SystemView::updateGameSelectors()
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else if (imageType == "physicalmedia") {
|
||||||
|
path = games.front()->getPhysicalMediaPath();
|
||||||
|
if (path != "") {
|
||||||
|
image->setImage(path);
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
else if (imageType == "fanart") {
|
else if (imageType == "fanart") {
|
||||||
path = games.front()->getFanArtPath();
|
path = games.front()->getFanArtPath();
|
||||||
if (path != "") {
|
if (path != "") {
|
||||||
|
@ -947,6 +954,13 @@ void SystemView::updateGameSelectors()
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else if (imageType == "physicalmedia") {
|
||||||
|
path = games.front()->getPhysicalMediaPath();
|
||||||
|
if (path != "") {
|
||||||
|
video->setImage(path);
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
else if (imageType == "fanart") {
|
else if (imageType == "fanart") {
|
||||||
path = games.front()->getFanArtPath();
|
path = games.front()->getFanArtPath();
|
||||||
if (path != "") {
|
if (path != "") {
|
||||||
|
|
|
@ -339,14 +339,16 @@ template <typename T> void CarouselComponent<T>::onDemandTextureLoad()
|
||||||
entry.data.itemPath = game->getMarqueePath();
|
entry.data.itemPath = game->getMarqueePath();
|
||||||
else if (mItemType == "cover")
|
else if (mItemType == "cover")
|
||||||
entry.data.itemPath = game->getCoverPath();
|
entry.data.itemPath = game->getCoverPath();
|
||||||
|
else if (mItemType == "backcover")
|
||||||
|
entry.data.itemPath = game->getBackCoverPath();
|
||||||
else if (mItemType == "3dbox")
|
else if (mItemType == "3dbox")
|
||||||
entry.data.itemPath = game->get3DBoxPath();
|
entry.data.itemPath = game->get3DBoxPath();
|
||||||
|
else if (mItemType == "physicalmedia")
|
||||||
|
entry.data.itemPath = game->getPhysicalMediaPath();
|
||||||
else if (mItemType == "screenshot")
|
else if (mItemType == "screenshot")
|
||||||
entry.data.itemPath = game->getScreenshotPath();
|
entry.data.itemPath = game->getScreenshotPath();
|
||||||
else if (mItemType == "titlescreen")
|
else if (mItemType == "titlescreen")
|
||||||
entry.data.itemPath = game->getTitleScreenPath();
|
entry.data.itemPath = game->getTitleScreenPath();
|
||||||
else if (mItemType == "backcover")
|
|
||||||
entry.data.itemPath = game->getBackCoverPath();
|
|
||||||
else if (mItemType == "miximage")
|
else if (mItemType == "miximage")
|
||||||
entry.data.itemPath = game->getMiximagePath();
|
entry.data.itemPath = game->getMiximagePath();
|
||||||
else if (mItemType == "fanart")
|
else if (mItemType == "fanart")
|
||||||
|
|
Loading…
Reference in a new issue