Started code path for prefab thumbnails

This commit is contained in:
Antoine Pilote
2024-04-25 00:14:19 -04:00
parent 6fea28e8b6
commit b5ca005f7a
3 changed files with 122 additions and 47 deletions

View File

@@ -353,6 +353,10 @@ namespace Nuake
{
textureImage = textureMgr->GetTexture("Resources/Images/Audio_file_icon.png");
}
else if (fileType == FileType::Prefab)
{
textureImage = ThumbnailManager::Get().GetThumbnail(file->GetRelativePath());
}
ImGui::SetCursorPos(prevCursor);
ImGui::Image(reinterpret_cast<ImTextureID>(textureImage->GetID()), ImVec2(100, 100), ImVec2(0, 1), ImVec2(1, 0));