Fine-tune achievements window size.

This commit is contained in:
Bartosz Taudul 2024-06-08 13:15:39 +02:00
parent 03e9c89dd8
commit 7dbb3c592f
No known key found for this signature in database
GPG Key ID: B7FE2008B7575DF3

View File

@ -1434,7 +1434,7 @@ static void DrawContents()
if( showAchievements ) if( showAchievements )
{ {
ImGui::SetNextWindowSize( ImVec2( 600 * dpiScale, 400 * dpiScale ), ImGuiCond_FirstUseEver ); ImGui::SetNextWindowSize( ImVec2( 700 * dpiScale, 450 * dpiScale ), ImGuiCond_FirstUseEver );
ImGui::Begin( "Achievements List", &showAchievements, ImGuiWindowFlags_NoDocking ); ImGui::Begin( "Achievements List", &showAchievements, ImGuiWindowFlags_NoDocking );
ImGui::BeginTabBar( "###categories" ); ImGui::BeginTabBar( "###categories" );
auto categories = s_achievements.GetCategories(); auto categories = s_achievements.GetCategories();
@ -1455,6 +1455,7 @@ static void DrawContents()
if( ImGui::BeginTabItem( tmp ) ) if( ImGui::BeginTabItem( tmp ) )
{ {
ImGui::Columns( 2 ); ImGui::Columns( 2 );
ImGui::SetColumnWidth( 0, 300 * dpiScale );
DrawAchievements( c->items ); DrawAchievements( c->items );
ImGui::NextColumn(); ImGui::NextColumn();
if( s_achievementItem ) if( s_achievementItem )