Added reloadableMedia and reloadableText type firstLetter to allow images/text displayed based on the first letter of a selected item.

This commit is contained in:
Pieter Hulshoff 2017-04-23 22:05:14 +02:00
parent 546e0b2c14
commit 596e783eb1
2 changed files with 8 additions and 0 deletions

View File

@ -280,6 +280,10 @@ void ReloadableMedia::reloadTexture()
{
basename = page.getPlaylistName();
}
else if (typeLC == "firstletter")
{
basename = selectedItem->fullTitle.at(0);
}
Utils::replaceSlashesWithUnderscores(basename);

View File

@ -178,6 +178,10 @@ void ReloadableText::ReloadTexture()
{
text = playlistName;
}
else if (type_ == "firstLetter")
{
text = selectedItem->fullTitle.at(0);
}
else if (type_ == "collectionName")
{
text = page.getCollectionName();