rodecomp/Source/UI/Window/UIDebuffRemoveWnd.cpp
ragnarok-clanker e6188cbbc6 Maintenance: [forced, user-approved] Family F1b (follow-up to F1 #10209): remove the fabricated TextLocale parameter instead of passi
Batch #10211 by ragnarok-clanker: forced by an admin (6 lower score(s), 33 changed function(s)); checked with 36 compiled unit(s), including every includer of Source/UI/Edit/EditViewport.h, Source/UI/Shop/ItemDrawing.h.
2026-11-02 23:20:53 +00:00

60 lines
1.4 KiB
C++

#include "UI/Window/UIDebuffRemoveWnd.h"
#include "Network/Connection/Connection.h"
#include "Network/Packets/PacketLengths.h"
#include "Render/Text/FontCache.h"
#include "Render/Text/TextContext.h"
#include <cstdint>
namespace {
#pragma pack(push, 1)
struct DebuffRemovePacket {
/* 0000 */ std::int16_t id;
};
#pragma pack(pop)
}
// OFFSET: 0x0094D260
// FUNCTION: fn_12903
void UIDebuffRemoveWnd::Paint() {
this->DrawTitleBar(false, "", 0);
this->DrawPanelBackground(17, 0, "");
}
// OFFSET: 0x0094EE60
// FUNCTION: fn_12917
void UIDebuffRemoveWnd::Slot25(int x, int y) {
}
// OFFSET: 0x0094EF00
// FUNCTION: fn_12922
void UIDebuffRemoveWnd::Slot31(int x, int y) {
}
// OFFSET: 0x0094F030
// FUNCTION: fn_12928
void UIDebuffRemoveWnd::Slot27(int x, int y) {
}
// OFFSET: 0x00950400
// FUNCTION: fn_12940
int UIDebuffRemoveWnd::SendMsg(UIWindow* sender, int message, std::intptr_t a, std::intptr_t b, std::intptr_t c, std::intptr_t d) {
if (message != 6) {
return this->UIFrameWnd::SendMsg(sender, message, a, b, c, d);
}
if (a == 184) {
DebuffRemovePacket packet;
packet.id = 0xC2A;
CRagConnection& connection = GetRagConnection();
connection.Send(g_packetLengths.FixedLength(packet.id), &packet);
}
return 0;
}
// OFFSET: 0x00946970
// FUNCTION: fn_12848
UIDebuffRemoveWnd::UIDebuffRemoveWnd(UIWindowContext& windows)
: UIFrameWnd(windows, 0), m_button(nullptr) {
}