Added asset browser tool tip that shows asset id

This commit is contained in:
maverickdgg 2023-01-16 15:17:06 +08:00
parent cdb5102630
commit fe39be0d61
1 changed files with 7 additions and 0 deletions

View File

@ -262,6 +262,13 @@ namespace SHADE
}
}
if (ImGui::IsItemHovered())
{
ImGui::BeginTooltip();
ImGui::Text("AssetID: %zu | Path: %s", asset->id, asset->path.c_str());
ImGui::EndTooltip();
}
//TODO: Combine Draw asset and Draw Folder recursive drawing
const ImColor treeLineColor = ImGui::GetColorU32(ImGuiCol_CheckMark);
const float horizontalOffset = 0.0f;