0
0
mirror of https://github.com/wolfpld/tracy.git synced 2026-01-18 17:11:26 +01:00

Rename DrawWaitingDots() to DrawWaitingDotsCentered().

This commit is contained in:
Bartosz Taudul
2026-01-14 02:12:00 +01:00
parent 38b73254e9
commit 24ea5118e0
8 changed files with 13 additions and 13 deletions

View File

@@ -1170,7 +1170,7 @@ static void DrawContents()
static float rnTime = 0;
rnTime += ImGui::GetIO().DeltaTime;
tracy::TextCentered( "Fetching release notes…" );
tracy::DrawWaitingDots( rnTime );
tracy::DrawWaitingDotsCentered( rnTime );
}
else
{
@@ -1222,7 +1222,7 @@ static void DrawContents()
ImGui::PopFont();
animTime += ImGui::GetIO().DeltaTime;
tracy::DrawWaitingDots( animTime );
tracy::DrawWaitingDotsCentered( animTime );
auto currProgress = progress.progress.load( std::memory_order_relaxed );
if( totalProgress == 0 )
@@ -1309,7 +1309,7 @@ static void DrawContents()
ImGui::Spacing();
ImGui::PopFont();
animTime += ImGui::GetIO().DeltaTime;
tracy::DrawWaitingDots( animTime );
tracy::DrawWaitingDotsCentered( animTime );
ImGui::TextUnformatted( "Please wait, cleanup is in progress" );
ImGui::EndPopup();
}

View File

@@ -119,7 +119,7 @@ static constexpr const uint32_t AsmSyntaxColors[] = {
ImGui::TextUnformatted( value );
}
[[maybe_unused]] static inline void DrawWaitingDots( double time )
[[maybe_unused]] static inline void DrawWaitingDotsCentered( double time )
{
s_wasActive = true;
ImGui::TextUnformatted( "" );

View File

@@ -85,7 +85,7 @@ void TracyLlm::Draw()
ImGui::Dummy( ImVec2( 0, ( ImGui::GetContentRegionAvail().y - ImGui::GetTextLineHeight() * 2 ) * 0.5f ) );
TextCentered( ICON_FA_HOURGLASS );
TextCentered( "Please wait…" );
DrawWaitingDots( s_time );
DrawWaitingDotsCentered( s_time );
ImGui::PopFont();
ImGui::End();
return;
@@ -102,7 +102,7 @@ void TracyLlm::Draw()
ImGui::Spacing();
TextCentered( "Building manual embeddings…" );
ImGui::Spacing();
DrawWaitingDots( s_time );
DrawWaitingDotsCentered( s_time );
ImGui::TextUnformatted( "" );
ImGui::PopFont();
const float w = 100 * scale;

View File

@@ -702,7 +702,7 @@ bool View::DrawImpl()
ImGui::Spacing();
ImGui::PopFont();
ImGui::TextUnformatted( "Waiting for connection…" );
DrawWaitingDots( s_time );
DrawWaitingDotsCentered( s_time );
ImGui::End();
return keepOpen;
}

View File

@@ -267,7 +267,7 @@ void View::DrawCompare()
TextCentered( ICON_FA_FROG );
TextCentered( "Please wait, computing data…" );
ImGui::PopFont();
DrawWaitingDots( s_time );
DrawWaitingDotsCentered( s_time );
ImGui::End();
return;
}

View File

@@ -273,7 +273,7 @@ void View::DrawFindZone()
TextCentered( ICON_FA_CROW );
TextCentered( "Please wait, computing data…" );
ImGui::PopFont();
DrawWaitingDots( s_time );
DrawWaitingDotsCentered( s_time );
ImGui::End();
return;
}

View File

@@ -53,7 +53,7 @@ void View::DrawStatistics()
TextCentered( ICON_FA_HIPPO );
TextCentered( "Please wait, computing data…" );
ImGui::PopFont();
DrawWaitingDots( s_time );
DrawWaitingDotsCentered( s_time );
ImGui::End();
return;
}
@@ -105,7 +105,7 @@ void View::DrawStatistics()
ImGui::Separator();
ImGui::PopStyleVar();
ImGui::TextWrapped( "Please wait, computing data…" );
DrawWaitingDots( s_time );
DrawWaitingDotsCentered( s_time );
ImGui::End();
return;
}
@@ -328,7 +328,7 @@ void View::DrawStatistics()
ImGui::Separator();
ImGui::PopStyleVar();
ImGui::TextWrapped( "Please wait, computing data…" );
DrawWaitingDots( s_time );
DrawWaitingDotsCentered( s_time );
ImGui::End();
return;
}

View File

@@ -799,7 +799,7 @@ void View::DrawZoneInfoWindow()
if( !mem.plot )
{
ImGui::Text( "Please wait, computing data…" );
DrawWaitingDots( s_time );
DrawWaitingDotsCentered( s_time );
}
else
{