Implemented value thumbnails (#42)

* options_menu: implemented value thumbnails

* options_menu: use config ptrs as thumbnail keys, added named thumbnails

* options_menu_thumbnails: move header to cpp
This commit is contained in:
Hyper
2024-12-15 20:41:39 +00:00
committed by GitHub
parent 74ee0c2b2f
commit 6c57221807
9 changed files with 222 additions and 95 deletions
+4 -2
View File
@@ -833,7 +833,7 @@ static void DrawConfigOptions()
DrawConfigOption(rowCount++, yOffset, &Config::ShadowResolution, true);
DrawConfigOption(rowCount++, yOffset, &Config::GITextureFiltering, true);
DrawConfigOption(rowCount++, yOffset, &Config::MotionBlur, true);
DrawConfigOption(rowCount++, yOffset, &Config::XboxColourCorrection, true);
DrawConfigOption(rowCount++, yOffset, &Config::XboxColorCorrection, true);
DrawConfigOption(rowCount++, yOffset, &Config::MovieScaleMode, true);
DrawConfigOption(rowCount++, yOffset, &Config::UIScaleMode, true);
break;
@@ -953,8 +953,10 @@ static void DrawInfoPanel()
if (g_selectedItem)
{
auto desc = g_selectedItem->GetDescription();
auto thumbnail = GetThumbnail(g_selectedItem);
drawList->AddImage(GetThumbnail(g_selectedItem->GetName()), clipRectMin, thumbnailMax);
if (thumbnail)
drawList->AddImage(thumbnail, clipRectMin, thumbnailMax);
if (g_inaccessibleReason)
{