mirror of
https://github.com/FunKey-Project/RetroFE.git
synced 2025-12-12 17:58:53 +01:00
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:
parent
546e0b2c14
commit
596e783eb1
@ -280,6 +280,10 @@ void ReloadableMedia::reloadTexture()
|
||||
{
|
||||
basename = page.getPlaylistName();
|
||||
}
|
||||
else if (typeLC == "firstletter")
|
||||
{
|
||||
basename = selectedItem->fullTitle.at(0);
|
||||
}
|
||||
|
||||
Utils::replaceSlashesWithUnderscores(basename);
|
||||
|
||||
|
||||
@ -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();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user