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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user