From f37a324a9eb7be3a82071793c9c9cc2ac619b455 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Wed, 29 Jul 2020 17:07:40 +0200 Subject: [PATCH] Add annotation removal button hint. --- server/TracyView.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/server/TracyView.cpp b/server/TracyView.cpp index f875bc8f..432d6d2c 100644 --- a/server/TracyView.cpp +++ b/server/TracyView.cpp @@ -14168,6 +14168,12 @@ void View::DrawAnnotationList() { remove = idx; } + if( !ctrl && ImGui::IsItemHovered() ) + { + ImGui::BeginTooltip(); + ImGui::TextUnformatted( "Press ctrl key to enable removal" ); + ImGui::EndTooltip(); + } ImGui::SameLine(); ImGui::ColorButton( "c", ImGui::ColorConvertU32ToFloat4( ann->color ), ImGuiColorEditFlags_NoTooltip ); ImGui::SameLine();