mirror of
https://github.com/wolfpld/tracy
synced 2025-05-08 16:03:53 +00:00
Change crash visuals in options menu.
This commit is contained in:
parent
12bd93ca5b
commit
a5736a9c1b
@ -4485,17 +4485,23 @@ void View::DrawOptions()
|
|||||||
ImGui::PushID( idx++ );
|
ImGui::PushID( idx++ );
|
||||||
ImGui::Checkbox( m_worker.GetThreadString( t->id ), &Visible( t ) );
|
ImGui::Checkbox( m_worker.GetThreadString( t->id ), &Visible( t ) );
|
||||||
ImGui::PopID();
|
ImGui::PopID();
|
||||||
ImGui::SameLine();
|
|
||||||
ImGui::TextDisabled( "%s top level zones", RealToString( t->timeline.size(), true ) );
|
|
||||||
if( crash.thread == t->id )
|
if( crash.thread == t->id )
|
||||||
{
|
{
|
||||||
ImGui::SameLine();
|
ImGui::SameLine();
|
||||||
#ifdef TRACY_EXTENDED_FONT
|
#ifdef TRACY_EXTENDED_FONT
|
||||||
ImGui::TextColored( ImVec4( 1.f, 0.2f, 0.2f, 1.f ), ICON_FA_SKULL " Crashed" );
|
ImGui::TextColored( ImVec4( 1.f, 0.2f, 0.2f, 1.f ), ICON_FA_SKULL );
|
||||||
|
if( ImGui::IsItemHovered() )
|
||||||
|
{
|
||||||
|
ImGui::BeginTooltip();
|
||||||
|
ImGui::Text( "Crashed" );
|
||||||
|
ImGui::EndTooltip();
|
||||||
|
}
|
||||||
#else
|
#else
|
||||||
ImGui::TextColored( ImVec4( 1.f, 0.2f, 0.2f, 1.f ), "Crashed" );
|
ImGui::TextColored( ImVec4( 1.f, 0.2f, 0.2f, 1.f ), "Crashed" );
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
ImGui::SameLine();
|
||||||
|
ImGui::TextDisabled( "%s top level zones", RealToString( t->timeline.size(), true ) );
|
||||||
}
|
}
|
||||||
ImGui::TreePop();
|
ImGui::TreePop();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user