diff options
| author | LillyJadeKatrin <lilly.kitty.1988@gmail.com> | 2024-06-13 23:39:46 -0400 |
|---|---|---|
| committer | LillyJadeKatrin <lilly.kitty.1988@gmail.com> | 2024-06-15 22:42:40 -0400 |
| commit | 9e1f5ed4b566df704b2041012944bbbd605a9592 (patch) | |
| tree | b0750ad6d9c0b5fbcc71c3f9f737d2b8c8a127ad /Source/Core/VideoCommon/OnScreenUI.cpp | |
| parent | a79f4289722784452e0322cf46aa058bc4180d5f (diff) | |
Stack Challenge Icons Horizontally
Diffstat (limited to 'Source/Core/VideoCommon/OnScreenUI.cpp')
| -rw-r--r-- | Source/Core/VideoCommon/OnScreenUI.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/Source/Core/VideoCommon/OnScreenUI.cpp b/Source/Core/VideoCommon/OnScreenUI.cpp index d3a3c7397d..61e59484e4 100644 --- a/Source/Core/VideoCommon/OnScreenUI.cpp +++ b/Source/Core/VideoCommon/OnScreenUI.cpp @@ -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 | @@ -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(); } |
