From 16bc01551e2035d624400ffc04dd3fb5f93d351e Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Sat, 8 Jun 2024 12:45:19 +0200 Subject: [PATCH] Mark categories that need attention. --- profiler/src/main.cpp | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/profiler/src/main.cpp b/profiler/src/main.cpp index ad24c3e2..c7d6a4ec 100644 --- a/profiler/src/main.cpp +++ b/profiler/src/main.cpp @@ -1443,7 +1443,16 @@ static void DrawContents() auto& c = *categories++; if( c->unlockTime > 0 ) { - if( ImGui::BeginTabItem( c->name ) ) + char tmp[256]; + if( s_achievements.CategoryNeedsAttention( c->id ) ) + { + snprintf( tmp, 256, ICON_FA_CIRCLE_EXCLAMATION " %s###%s", c->name, c->id ); + } + else + { + snprintf( tmp, 256, "%s###%s", c->name, c->id ); + } + if( ImGui::BeginTabItem( tmp ) ) { ImGui::Columns( 2 ); DrawAchievements( c->items );