mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-22 14:44:34 +00:00
Allow checking if achievements need attention.
This commit is contained in:
parent
139dc44a00
commit
ba154e02db
@ -53,8 +53,14 @@ void AchievementsMgr::PopQueue()
|
|||||||
m_queue.erase( m_queue.begin() );
|
m_queue.erase( m_queue.begin() );
|
||||||
}
|
}
|
||||||
|
|
||||||
bool AchievementsMgr::NeedsUpdates() const
|
bool AchievementsMgr::NeedsAttention() const
|
||||||
{
|
{
|
||||||
|
for( auto& v : m_map )
|
||||||
|
{
|
||||||
|
auto& it = v.second.item;
|
||||||
|
if( it->unlockTime > 0 && !it->hideNew ) return true;
|
||||||
|
if( it->doneTime > 0 && !it->hideCompleted ) return true;
|
||||||
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -63,7 +63,7 @@ public:
|
|||||||
data::AchievementItem* GetNextQueue();
|
data::AchievementItem* GetNextQueue();
|
||||||
void PopQueue();
|
void PopQueue();
|
||||||
|
|
||||||
bool NeedsUpdates() const;
|
bool NeedsAttention() const;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void FillMap( data::AchievementItem** items, data::AchievementCategory* category );
|
void FillMap( data::AchievementItem** items, data::AchievementCategory* category );
|
||||||
|
Loading…
Reference in New Issue
Block a user