diff --git a/CHANGELOG.md b/CHANGELOG.md index 818e171b..d7c88b2f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,9 +1,13 @@ +## 2024/4/25 (hotfix 1) + +* fixed mismatching push/pop for the overlay style, resulting in a crash when the default colors are changed + ## 2024/4/25 * **[schmurger]** improved achievement notification: - added new overlay appearance option `Notification_Rounding` which allows increasing the roundness of the notifications corners - the overlay ini file now contains color scheme similar to the one used in steam for the notification background -* added a new button to the overlay `"Test achievement"` which triggeres a test achievement, suggested by **[Kirius88]** +* added a new button to the overlay `"Test achievement"` which triggers a test achievement, suggested by **[Kirius88]** note that the icon for this test achievement is selected randomly from the current list of achievements * added a new overlay appearance option `Achievement_Unlock_Datetime_Format` which allows changing the date/time format of the unlocked achievements, suggested by **[Clompress]** * removed the condition which disabled the overlay sounds when it is shown, suggested by **[Vlxst]** diff --git a/overlay_experimental/overlay/steam_overlay_translations.h b/overlay_experimental/overlay/steam_overlay_translations.h index 777c8602..40f57d1e 100644 --- a/overlay_experimental/overlay/steam_overlay_translations.h +++ b/overlay_experimental/overlay/steam_overlay_translations.h @@ -247,7 +247,7 @@ const char translationTestAchievement[TRANSLATION_NUMBER_OF_LANGUAGES][TRANSLATI u8"Test achievement", // 19 - Brazilian Portuguese - u8"Copiar ID", + u8"Test achievement", // 20 - Romanian u8"Test achievement", diff --git a/overlay_experimental/steam_overlay.cpp b/overlay_experimental/steam_overlay.cpp index d1b24d4a..f51d4241 100644 --- a/overlay_experimental/steam_overlay.cpp +++ b/overlay_experimental/steam_overlay.cpp @@ -1338,6 +1338,7 @@ void Steam_Overlay::render_main_window() if (ImGui::IsItemClicked() && ImGui::IsMouseDoubleClicked(0)) { i.second.window_state |= window_state_show; } + ImGui::PopID(); build_friend_window(i.first, i.second); @@ -1465,9 +1466,11 @@ void Steam_Overlay::render_main_window() if (ImGui::Begin(URL_WINDOW_NAME, &show)) { ImGui::Text("%s", translationSteamOverlayURL[current_language]); ImGui::Spacing(); + ImGui::PushItemWidth(ImGui::CalcTextSize(url.c_str()).x + 20); ImGui::InputText("##url_copy", (char *)url.data(), url.size(), ImGuiInputTextFlags_ReadOnly); ImGui::PopItemWidth(); + ImGui::Spacing(); if (ImGui::Button(translationClose[current_language]) || !show) show_url = "";