Add global settings achievement.

This commit is contained in:
Bartosz Taudul 2024-06-16 12:45:11 +02:00
parent 915a138150
commit 959ab53529
No known key found for this signature in database
GPG Key ID: B7FE2008B7575DF3
2 changed files with 8 additions and 0 deletions

View File

@ -715,6 +715,8 @@ static void DrawContents()
ImGui::Separator(); ImGui::Separator();
if( ImGui::TreeNode( ICON_FA_TOOLBOX " Global settings" ) ) if( ImGui::TreeNode( ICON_FA_TOOLBOX " Global settings" ) )
{ {
s_achievements.Achieve( "globalSettings" );
ImGui::PushStyleVar( ImGuiStyleVar_FramePadding, ImVec2( 0, 0 ) ); ImGui::PushStyleVar( ImGuiStyleVar_FramePadding, ImVec2( 0, 0 ) );
ImGui::TextUnformatted( "Threaded rendering" ); ImGui::TextUnformatted( "Threaded rendering" );

View File

@ -118,8 +118,14 @@ AchievementItem ai_connectToServer = { "connectToClient", "First profiling sessi
} }
}, ac_connectToServerItems, ac_connectToServerUnlock }; }, ac_connectToServerItems, ac_connectToServerUnlock };
AchievementItem ai_globalSettings = { "globalSettings", "Global settings", [](const ctx&){
ImGui::TextWrapped( "Tracy has a variety of settings that can be adjusted to suit your needs. These settings can be found by clicking on the " ICON_FA_WRENCH " icon on the welcome screen. This will open the about window, where you can expand the '" ICON_FA_TOOLBOX " Global settings' menu." );
ImGui::TextWrapped( "The settings are saved between sessions, so you only need to set them once." );
} };
AchievementItem* ac_achievementsIntroItems[] = { AchievementItem* ac_achievementsIntroItems[] = {
&ai_connectToServer, &ai_connectToServer,
&ai_globalSettings,
nullptr nullptr
}; };