From c1b203ad1f6c9b17be22c0d451d453fce2a183ff Mon Sep 17 00:00:00 2001 From: universal963 <36097923+universal963@users.noreply.github.com> Date: Fri, 21 Feb 2025 00:20:09 +0800 Subject: [PATCH] Patches to steam_overlay.cpp --- overlay_experimental/steam_overlay.cpp | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/overlay_experimental/steam_overlay.cpp b/overlay_experimental/steam_overlay.cpp index 473368ed..663593c2 100644 --- a/overlay_experimental/steam_overlay.cpp +++ b/overlay_experimental/steam_overlay.cpp @@ -878,7 +878,17 @@ void Steam_Overlay::set_next_notification_pos(std::pair scrn_size, } break; - case notification_type::invite: pos = settings->overlay_appearance.invite_pos; break; + // case notification_type::invite: pos = settings->overlay_appearance.invite_pos; break; + case notification_type::invite: { + pos = settings->overlay_appearance.invite_pos; + const float msg_height = ImGui::CalcTextSize( + noti.message.c_str(), + noti.message.c_str() + noti.message.size(), + false, + noti_width - padding_all_sides - global_style.ItemSpacing.x + ).y; + noti_height = msg_height + settings->overlay_appearance.font_size + global_style.WindowPadding.y; + } case notification_type::message: pos = settings->overlay_appearance.chat_msg_pos; break; default: PRINT_DEBUG("ERROR: unhandled notification type %i", (int)noti.type); break; } @@ -1187,7 +1197,7 @@ void Steam_Overlay::add_invite_notification(std::pair