From 5177629130d4f1a83584c8dc4c0b321d90f604b6 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Thu, 14 Mar 2019 01:34:43 +0100 Subject: [PATCH] Add standard deviation explanation tooltips. --- server/TracyView.cpp | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/server/TracyView.cpp b/server/TracyView.cpp index c422c378..5d7fed0c 100644 --- a/server/TracyView.cpp +++ b/server/TracyView.cpp @@ -6042,6 +6042,12 @@ void View::DrawFindZone() #else TextFocused( "s:", TimeToString( sd ) ); #endif + if( ImGui::IsItemHovered() ) + { + ImGui::BeginTooltip(); + ImGui::Text( "Standard deviation" ); + ImGui::EndTooltip(); + } } TextDisabledUnformatted( "Selection range:" ); @@ -7179,6 +7185,12 @@ void View::DrawCompare() #else TextFocused( "s (this):", TimeToString( sd ) ); #endif + if( ImGui::IsItemHovered() ) + { + ImGui::BeginTooltip(); + ImGui::Text( "Standard deviation" ); + ImGui::EndTooltip(); + } } @@ -7212,6 +7224,12 @@ void View::DrawCompare() #else TextFocused( "s (ext.):", TimeToString( sd ) ); #endif + if( ImGui::IsItemHovered() ) + { + ImGui::BeginTooltip(); + ImGui::Text( "Standard deviation" ); + ImGui::EndTooltip(); + } } #ifdef TRACY_EXTENDED_FONT