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,13 +1442,20 @@ bool View::DrawZoneFrames( const FrameData& frames )
|
||||
prev = -1;
|
||||
}
|
||||
|
||||
if( hover && !tooltipDisplayed )
|
||||
if( hover )
|
||||
{
|
||||
ImGui::BeginTooltip();
|
||||
ImGui::TextDisabled( "Frame set:" );
|
||||
ImGui::SameLine();
|
||||
ImGui::Text( "%s", frames.name == 0 ? "Frames" : m_worker.GetString( frames.name ) );
|
||||
ImGui::EndTooltip();
|
||||
if( !tooltipDisplayed )
|
||||
{
|
||||
ImGui::BeginTooltip();
|
||||
ImGui::TextDisabled( "Frame set:" );
|
||||
ImGui::SameLine();
|
||||
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