mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-12 19:31:47 +00:00
Display plot color in plot tooltip.
This commit is contained in:
parent
7d1539a0ce
commit
a98bbc2340
@ -119,7 +119,9 @@ int View::DrawPlots( int offset, double pxns, const ImVec2& wpos, bool hover, fl
|
|||||||
if( hover && ImGui::IsMouseHoveringRect( wpos + ImVec2( 0, offset ), wpos + ImVec2( ty + txtx, offset + ty ) ) )
|
if( hover && ImGui::IsMouseHoveringRect( wpos + ImVec2( 0, offset ), wpos + ImVec2( ty + txtx, offset + ty ) ) )
|
||||||
{
|
{
|
||||||
ImGui::BeginTooltip();
|
ImGui::BeginTooltip();
|
||||||
ImGui::Text( "Plot \"%s\"", txt );
|
SmallColorBox( GetPlotColor( v ) );
|
||||||
|
ImGui::SameLine();
|
||||||
|
TextFocused( "Plot", txt );
|
||||||
ImGui::Separator();
|
ImGui::Separator();
|
||||||
|
|
||||||
const auto first = v->data.front().time.Val();
|
const auto first = v->data.front().time.Val();
|
||||||
|
Loading…
Reference in New Issue
Block a user