Add hidden ghost zones indicator.

This commit is contained in:
Bartosz Taudul 2020-03-16 23:01:58 +01:00
parent 4384b812f1
commit 6daa429b69

View File

@ -850,6 +850,24 @@ void View::DrawNotificationArea()
if( ImGui::IsMouseClicked( 0 ) ) m_vd.drawZones = true;
}
}
#ifndef TRACY_NO_STATISTICS
if( !m_vd.ghostZones )
{
ImGui::SameLine();
#ifdef TRACY_EXTENDED_FONT
TextColoredUnformatted( ImVec4( 1, 0.5, 0, 1 ), ICON_FA_GHOST );
#else
TextColoredUnformatted( ImVec4( 1, 0.5, 0, 1 ), "ghost" );
#endif
if( ImGui::IsItemHovered() )
{
ImGui::BeginTooltip();
ImGui::TextUnformatted( "Ghost zones are hidden." );
ImGui::EndTooltip();
if( ImGui::IsMouseClicked( 0 ) ) m_vd.ghostZones = true;
}
}
#endif
if( !m_vd.drawLocks )
{
ImGui::SameLine();