More condensed child zone time graph.

This commit is contained in:
Bartosz Taudul 2017-09-29 22:59:11 +02:00
parent 9864ef70c9
commit dd0c283a3b

View File

@ -1303,6 +1303,7 @@ void View::DrawZoneInfoWindow()
if( !ev.child.empty() ) if( !ev.child.empty() )
{ {
const auto ty = ImGui::GetTextLineHeight();
ImGui::Columns( 2 ); ImGui::Columns( 2 );
ImGui::Separator(); ImGui::Separator();
ImGui::Text( "Child zones: %" PRIu64, ev.child.size() ); ImGui::Text( "Child zones: %" PRIu64, ev.child.size() );
@ -1339,7 +1340,7 @@ void View::DrawZoneInfoWindow()
const auto part = double( ctt[cti[i]] ) / ztime; const auto part = double( ctt[cti[i]] ) / ztime;
char buf[128]; char buf[128];
sprintf( buf, "%s (%.2f%%)", TimeToString( ctt[cti[i]] ), part * 100 ); sprintf( buf, "%s (%.2f%%)", TimeToString( ctt[cti[i]] ), part * 100 );
ImGui::ProgressBar( part, ImVec2( -1, 0 ), buf ); ImGui::ProgressBar( part, ImVec2( -1, ty ), buf );
ImGui::NextColumn(); ImGui::NextColumn();
} }
ImGui::EndColumns(); ImGui::EndColumns();