mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-26 16:04:34 +00:00
Add notification area indicator for hidden timeline items.
This commit is contained in:
parent
ed83762a1a
commit
2a0d6ce4ad
@ -653,6 +653,37 @@ bool View::DrawImpl()
|
||||
}
|
||||
}
|
||||
}
|
||||
{
|
||||
bool hidden = false;
|
||||
for( auto& v : m_visData )
|
||||
{
|
||||
if( !v.second.visible )
|
||||
{
|
||||
hidden = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
if( hidden )
|
||||
{
|
||||
ImGui::SameLine();
|
||||
#ifdef TRACY_EXTENDED_FONT
|
||||
TextColoredUnformatted( ImVec4( 1, 0.5, 0, 1 ), ICON_FA_EYE_SLASH );
|
||||
#else
|
||||
TextColoredUnformatted( ImVec4( 1, 0.5, 0, 1 ), "hidden" );
|
||||
#endif
|
||||
if( ImGui::IsItemHovered() )
|
||||
{
|
||||
ImGui::BeginTooltip();
|
||||
ImGui::TextUnformatted( "Some timeline entries are hidden." );
|
||||
ImGui::EndTooltip();
|
||||
|
||||
if( ImGui::IsMouseClicked( 0 ) )
|
||||
{
|
||||
m_showOptions = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
if( !m_worker.IsBackgroundDone() )
|
||||
{
|
||||
ImGui::SameLine();
|
||||
|
Loading…
Reference in New Issue
Block a user