1
0
mirror of https://github.com/wolfpld/tracy.git synced 2025-03-20 07:40:02 +08:00

Add background tasks icon.

This commit is contained in:
Bartosz Taudul
2019-06-22 14:37:17 +02:00
parent 4d4190c825
commit 0944eab707
2 changed files with 9 additions and 1 deletions
+8
View File
@@ -598,9 +598,17 @@ bool View::DrawImpl()
if( !m_worker.IsBackgroundDone() )
{
ImGui::SameLine();
#ifdef TRACY_EXTENDED_FONT
TextDisabledUnformatted( ICON_FA_TASKS );
ImGui::SameLine();
const auto pos = ImGui::GetCursorPos();
ImGui::TextUnformatted( " " );
ImGui::GetWindowDrawList()->AddCircleFilled( pos + ImVec2( 0, ty * 0.75f ), ty * ( 0.2f + ( sin( s_time * 8 ) + 1 ) * 0.125f ), 0xFF888888, 10 );
#else
const auto pos = ImGui::GetCursorPos();
ImGui::TextUnformatted( " " );
ImGui::GetWindowDrawList()->AddCircleFilled( pos + ImVec2( 0, ty * 0.75f ), ty * ( 0.2f + ( sin( s_time * 8 ) + 1 ) * 0.125f ), 0xFF888888, 10 );
#endif
}
if( m_saveThreadState.load( std::memory_order_relaxed ) == SaveThreadState::Saving )
{