mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-27 00:04:35 +00:00
Add support for notification text in View.
This commit is contained in:
parent
980c54e349
commit
77c9a8c407
@ -689,6 +689,12 @@ bool View::DrawImpl()
|
|||||||
#else
|
#else
|
||||||
ImGui::Text( "View span: %-10s Time span: %-10s ", TimeToString( m_zvEnd - m_zvStart ), TimeToString( m_worker.GetLastTime() - m_worker.GetTimeBegin() ) );
|
ImGui::Text( "View span: %-10s Time span: %-10s ", TimeToString( m_zvEnd - m_zvStart ), TimeToString( m_worker.GetLastTime() - m_worker.GetTimeBegin() ) );
|
||||||
#endif
|
#endif
|
||||||
|
if( m_notificationTime > 0 )
|
||||||
|
{
|
||||||
|
m_notificationTime -= io.DeltaTime;
|
||||||
|
ImGui::SameLine();
|
||||||
|
ImGui::TextDisabled( m_notificationText.c_str() );
|
||||||
|
}
|
||||||
DrawFrames();
|
DrawFrames();
|
||||||
DrawZones();
|
DrawZones();
|
||||||
ImGui::End();
|
ImGui::End();
|
||||||
|
@ -283,6 +283,9 @@ private:
|
|||||||
SetTitleCallback m_stcb;
|
SetTitleCallback m_stcb;
|
||||||
bool m_titleSet = false;
|
bool m_titleSet = false;
|
||||||
|
|
||||||
|
float m_notificationTime = 0;
|
||||||
|
std::string m_notificationText;
|
||||||
|
|
||||||
struct FindZone {
|
struct FindZone {
|
||||||
enum : uint64_t { Unselected = std::numeric_limits<uint64_t>::max() - 1 };
|
enum : uint64_t { Unselected = std::numeric_limits<uint64_t>::max() - 1 };
|
||||||
enum class GroupBy : int { Thread, UserText, Callstack };
|
enum class GroupBy : int { Thread, UserText, Callstack };
|
||||||
|
Loading…
Reference in New Issue
Block a user