Skip to content

Commit

Permalink
Stack Challenge Icons Horizontally
Browse files Browse the repository at this point in the history
  • Loading branch information
LillyJadeKatrin committed Jun 16, 2024
1 parent a79f428 commit 9e1f5ed
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Source/Core/VideoCommon/OnScreenUI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -357,9 +357,9 @@ void OnScreenUI::DrawChallengesAndLeaderboards()
float leaderboard_y = ImGui::GetIO().DisplaySize.y;
if (!m_challenge_texture_map.empty())
{
ImGui::SetNextWindowSize(ImVec2(0, 0));
ImGui::SetNextWindowPos(ImVec2(ImGui::GetIO().DisplaySize.x, ImGui::GetIO().DisplaySize.y), 0,
ImVec2(1.0, 1.0));
ImGui::SetNextWindowSize(ImVec2(0.0f, 0.0f));
ImVec2(1, 1));
if (ImGui::Begin("Challenges", nullptr,
ImGuiWindowFlags_NoTitleBar | ImGuiWindowFlags_NoInputs |
ImGuiWindowFlags_NoMove | ImGuiWindowFlags_NoSavedSettings |
Expand All @@ -370,9 +370,10 @@ void OnScreenUI::DrawChallengesAndLeaderboards()
{
ImGui::Image(texture.get(), ImVec2(static_cast<float>(texture->GetWidth()),
static_cast<float>(texture->GetHeight())));
ImGui::SameLine();
}
leaderboard_y -= ImGui::GetWindowHeight();
}
leaderboard_y -= ImGui::GetWindowHeight();
ImGui::End();
}

Expand Down

0 comments on commit 9e1f5ed

Please sign in to comment.