From fe39be0d61acbbe80d9426ff728a67e9e9d2e1aa Mon Sep 17 00:00:00 2001 From: maverickdgg Date: Mon, 16 Jan 2023 15:17:06 +0800 Subject: [PATCH] Added asset browser tool tip that shows asset id --- .../Editor/EditorWindow/AssetBrowser/SHAssetBrowser.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/SHADE_Engine/src/Editor/EditorWindow/AssetBrowser/SHAssetBrowser.cpp b/SHADE_Engine/src/Editor/EditorWindow/AssetBrowser/SHAssetBrowser.cpp index bd39b38e..a1bb29ca 100644 --- a/SHADE_Engine/src/Editor/EditorWindow/AssetBrowser/SHAssetBrowser.cpp +++ b/SHADE_Engine/src/Editor/EditorWindow/AssetBrowser/SHAssetBrowser.cpp @@ -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; -- 2.40.1