Mark categories that need attention.

This commit is contained in:
Bartosz Taudul 2024-06-08 12:45:19 +02:00
parent a6b9369430
commit 16bc01551e
No known key found for this signature in database
GPG Key ID: B7FE2008B7575DF3

View File

@ -1443,7 +1443,16 @@ static void DrawContents()
auto& c = *categories++; auto& c = *categories++;
if( c->unlockTime > 0 ) 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 ); ImGui::Columns( 2 );
DrawAchievements( c->items ); DrawAchievements( c->items );