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;
|
prev = -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
if( hover && !tooltipDisplayed )
|
if( hover )
|
||||||
{
|
{
|
||||||
ImGui::BeginTooltip();
|
if( !tooltipDisplayed )
|
||||||
ImGui::TextDisabled( "Frame set:" );
|
{
|
||||||
ImGui::SameLine();
|
ImGui::BeginTooltip();
|
||||||
ImGui::Text( "%s", frames.name == 0 ? "Frames" : m_worker.GetString( frames.name ) );
|
ImGui::TextDisabled( "Frame set:" );
|
||||||
ImGui::EndTooltip();
|
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;
|
return hover;
|
||||||
|
Loading…
Reference in New Issue
Block a user