Display exact time for annotation begin, end.

This commit is contained in:
Bartosz Taudul 2020-08-04 17:26:00 +02:00
parent 22e86af4ab
commit 05c60259b6

View File

@ -3171,8 +3171,8 @@ void View::DrawZones()
ImGui::TextUnformatted( ann->text.c_str() );
}
ImGui::Separator();
TextFocused( "Annotation begin:", TimeToString( ann->range.min ) );
TextFocused( "Annotation end:", TimeToString( ann->range.max ) );
TextFocused( "Annotation begin:", TimeToStringExact( ann->range.min ) );
TextFocused( "Annotation end:", TimeToStringExact( ann->range.max ) );
TextFocused( "Annotation length:", TimeToString( ann->range.max - ann->range.min ) );
ImGui::EndTooltip();
}
@ -14306,8 +14306,8 @@ void View::DrawSelectedAnnotation()
ImGui::ColorEdit3( "Color", &col.x );
m_selectedAnnotation->color = ImGui::ColorConvertFloat4ToU32( col );
ImGui::Separator();
TextFocused( "Annotation begin:", TimeToString( m_selectedAnnotation->range.min ) );
TextFocused( "Annotation end:", TimeToString( m_selectedAnnotation->range.max ) );
TextFocused( "Annotation begin:", TimeToStringExact( m_selectedAnnotation->range.min ) );
TextFocused( "Annotation end:", TimeToStringExact( m_selectedAnnotation->range.max ) );
TextFocused( "Annotation length:", TimeToString( m_selectedAnnotation->range.max - m_selectedAnnotation->range.min ) );
ImGui::End();
if( !show ) m_selectedAnnotation = nullptr;