411{
412 ImGui::Columns(4, NULL);
413 float width = ImGui::GetContentRegionAvail().x;
414
415 if(width <= 5)
416 {
417 width = 50;
418 }
419
420 ImGui::PushStyleColor(ImGuiCol_ChildBg, ImVec4(0.5f, 0.5f, 0.5f, 0.7f));
421
422 for(int i=0; i<downloadedTextureStoreItems.size(); i++)
423 {
425 ImGui::PushID(i);
426 ImGui::BeginChild("##texture_thumb", ImVec2(width, 300), true);
427 ImGui::Image((ImTextureID)item.texThumbnail->GetRendererID(), ImVec2(width, 120));
428 ImGui::Text(item.name.c_str());
429
430 if(ImGui::Button("Delete##DTS"))
431 {
432 DeleteTexture(downloadedTextureStoreItems[i]);
433 }
434
435
436
437
438
439
440
441 ImGui::EndChild();
442 ImGui::PopID();
443 ImGui::NextColumn();
444 }
445
446 ImGui::PopStyleColor();
447 ImGui::Columns(1);
448}