1
0
mirror of https://github.com/wolfpld/tracy.git synced 2025-03-20 07:40:02 +08:00

Add support for notification text in View.

This commit is contained in:
Bartosz Taudul
2019-01-06 19:14:24 +01:00
parent 980c54e349
commit 77c9a8c407
2 changed files with 9 additions and 0 deletions
+6
View File
@@ -689,6 +689,12 @@ bool View::DrawImpl()
#else
ImGui::Text( "View span: %-10s Time span: %-10s ", TimeToString( m_zvEnd - m_zvStart ), TimeToString( m_worker.GetLastTime() - m_worker.GetTimeBegin() ) );
#endif
if( m_notificationTime > 0 )
{
m_notificationTime -= io.DeltaTime;
ImGui::SameLine();
ImGui::TextDisabled( m_notificationText.c_str() );
}
DrawFrames();
DrawZones();
ImGui::End();