mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-22 22:44:34 +00:00
Display annotation extent on annotations list.
This commit is contained in:
parent
05c60259b6
commit
c4cf690e39
@ -14315,7 +14315,7 @@ void View::DrawSelectedAnnotation()
|
||||
|
||||
void View::DrawAnnotationList()
|
||||
{
|
||||
ImGui::SetNextWindowSize( ImVec2( 500, 300 ), ImGuiCond_FirstUseEver );
|
||||
ImGui::SetNextWindowSize( ImVec2( 600, 300 ), ImGuiCond_FirstUseEver );
|
||||
ImGui::Begin( "Annotation list", &m_showAnnotationList );
|
||||
if( m_annotations.empty() )
|
||||
{
|
||||
@ -14364,6 +14364,10 @@ void View::DrawAnnotationList()
|
||||
{
|
||||
ImGui::TextUnformatted( ann->text.c_str() );
|
||||
}
|
||||
ImGui::SameLine();
|
||||
ImGui::Spacing();
|
||||
ImGui::SameLine();
|
||||
ImGui::TextDisabled( "%s - %s (%s)", TimeToStringExact( ann->range.min ), TimeToStringExact( ann->range.max ), TimeToString( ann->range.max - ann->range.min ) );
|
||||
ImGui::PopID();
|
||||
idx++;
|
||||
}
|
||||
@ -14718,6 +14722,8 @@ void View::DrawRangeEntry( Range& range, const char* label, uint32_t color, cons
|
||||
range.max = v->range.max;
|
||||
}
|
||||
ImGui::SameLine();
|
||||
ImGui::Spacing();
|
||||
ImGui::SameLine();
|
||||
ImGui::TextDisabled( "%s - %s (%s)", TimeToStringExact( v->range.min ), TimeToStringExact( v->range.max ), TimeToString( v->range.max - v->range.min ) );
|
||||
}
|
||||
ImGui::EndPopup();
|
||||
|
Loading…
Reference in New Issue
Block a user