mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-10 10:41:50 +00:00
Switching active frame set by clicking on a frame.
This commit is contained in:
parent
ec6e2dc0e1
commit
5280d6586b
@ -1442,7 +1442,9 @@ bool View::DrawZoneFrames( const FrameData& frames )
|
||||
prev = -1;
|
||||
}
|
||||
|
||||
if( hover && !tooltipDisplayed )
|
||||
if( hover )
|
||||
{
|
||||
if( !tooltipDisplayed )
|
||||
{
|
||||
ImGui::BeginTooltip();
|
||||
ImGui::TextDisabled( "Frame set:" );
|
||||
@ -1450,6 +1452,11 @@ bool View::DrawZoneFrames( const FrameData& frames )
|
||||
ImGui::Text( "%s", frames.name == 0 ? "Frames" : m_worker.GetString( frames.name ) );
|
||||
ImGui::EndTooltip();
|
||||
}
|
||||
if( ImGui::IsMouseClicked( 0 ) )
|
||||
{
|
||||
m_frames = &frames;
|
||||
}
|
||||
}
|
||||
|
||||
return hover;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user