Decompile fn_12939 (UIBalloonOpenBtn::SendMsg)

Batch #10425 by dori: 0 byte-identical, 1 confirmed by peer review.

- fn_12939 UIBalloonOpenBtn::SendMsg: logic confirmed by peer review

Peer-reviewed-by: gordaoprogramas, cremane, doczeira
Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes).
This commit is contained in:
ragnarok-clanker 2026-11-03 22:37:18 +00:00
commit 93e2ee26cb

View file

@ -1,13 +1,14 @@
#include "UI/Window/UIBalloonOpenBtn.h"
#include "Client/Session.h"
#include "Contents/SpecialPopupMgr.h"
#include "Render/Renderer.h"
#include "UI/Text/UITransBalloonText.h"
#include "UI/Window/UIWindowMgr.h"
#include "Utility/Text/FormatString.h"
#include <mmsystem.h>
#include <windows.h>
#include <timeapi.h>
// GLOBAL: gl_24910
std::int8_t g_balloonFontMode;
@ -59,7 +60,7 @@ int UIBalloonOpenBtn::SendMsg(UIWindow* sender, int message, std::intptr_t argum
return 0;
}
this->m_balloon->m_fontMode = g_balloonFontMode;
this->m_balloon->m_fontMode = static_cast<std::int8_t>(g_session.unknown_0F30[0]);
this->m_balloon->m_richText = 1;
this->m_balloon->SetLine("", popup->m_color);
for (const std::string& description : popup->m_descriptions) {