Add notification area indicator for hidden timeline items.

This commit is contained in:
Bartosz Taudul 2019-08-28 18:36:05 +02:00
parent ed83762a1a
commit 2a0d6ce4ad

View File

@ -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() ) if( !m_worker.IsBackgroundDone() )
{ {
ImGui::SameLine(); ImGui::SameLine();