mirror of
https://github.com/wolfpld/tracy.git
synced 2026-10-23 01:00:54 +00:00
Award the manual achievement from the shared window state.
All ManualWindow instances share the show state, so one check covers the welcome screen and the view; the old copies were button-only and gated on a construction-time config snapshot.
This commit is contained in:
@@ -835,7 +835,6 @@ static void DrawContents()
|
||||
if( ImGui::Button( ICON_FA_BOOK " Manual" ) )
|
||||
{
|
||||
s_manualWindow.Show() = true;
|
||||
if( tracy::s_config.achievements ) s_achievements->Achieve( "manual" );
|
||||
}
|
||||
ImGui::SameLine();
|
||||
if( ImGui::Button( ICON_FA_EARTH_AMERICAS " Web" ) )
|
||||
@@ -1587,9 +1586,10 @@ Would you like to enable achievements?
|
||||
}
|
||||
}
|
||||
|
||||
if( !viewPtr && s_manualWindow.Show() )
|
||||
if( s_manualWindow.Show() )
|
||||
{
|
||||
s_manualWindow.Draw( s_manualMarkdown );
|
||||
if( tracy::s_config.achievements ) s_achievements->Achieve( "manual" );
|
||||
if( !viewPtr ) s_manualWindow.Draw( s_manualMarkdown );
|
||||
}
|
||||
|
||||
bptr->EndFrame();
|
||||
|
||||
@@ -769,7 +769,6 @@ bool View::DrawImpl()
|
||||
if( m_worker.GetZoneCount() > 100 * 1000 * 1000 ) Achieve( "100million" );
|
||||
if( m_worker.GetCallstackSampleCount() > 0 ) Achieve( "samplingIntro" );
|
||||
if( m_worker.AreFramesUsed() ) Achieve( "instrumentFrames" );
|
||||
if( m_manualWindow.Show() ) Achieve( "manual" );
|
||||
}
|
||||
|
||||
Attention( m_attnWorking );
|
||||
|
||||
Reference in New Issue
Block a user