rodecomp/Source/UI/Acceptance/UIJoinPartyAcceptWnd.h
ragnarok-clanker 5d04bb83a7 Decompile fn_12326 (UIBabyAcceptWnd::SendMsg)
Batch #1958 by ragnarok-clanker: 0 byte-identical, 1 confirmed by peer review.

- fn_12326 UIBabyAcceptWnd::SendMsg: logic confirmed by peer review

Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes).
2026-10-29 00:10:46 +00:00

80 lines
2.7 KiB
C++

#ifndef RAGNAROK_SOURCE_UI_ACCEPTANCE_UIJOINPARTYACCEPTWND_H
#define RAGNAROK_SOURCE_UI_ACCEPTANCE_UIJOINPARTYACCEPTWND_H
#include "Contents/Items/ItemInfo.h"
#include "UI/Window/UIFrameWnd.h"
class UITextViewer;
struct UITextViewerContext;
struct WindowResponseRecorder;
struct NormalItemSlotWindow;
struct UIAcceptanceContext {
UITextViewerContext& text;
WindowResponseRecorder& recorder;
const int& screenWidth;
const int& screenHeight;
const int& service;
std::list<ItemInfo>& firstShopItems;
std::list<ItemInfo>& secondShopItems;
std::list<ItemInfo>& thirdShopItems;
int& replayShopState;
std::string& replayExchangeName;
};
class UIChooseSellBuyWnd : public UIFrameWnd {
public:
UIChooseSellBuyWnd(UIWindowContext& windows, UIFrameContext& frames, UIAcceptanceContext& acceptance);
~UIChooseSellBuyWnd() override;
void Slot15(int width, int height) override;
void Paint() override;
int SendMsg(UIWindow* sender, int message, std::intptr_t a, std::intptr_t b, std::intptr_t c, std::intptr_t d) override;
/* 00B4 */ std::uint32_t identity;
/* 00B8 */ UITextViewer* viewer;
protected:
UIAcceptanceContext* m_acceptance;
void AddChoice(const char* name, int id, int x, int y);
void CreateViewer(int width, int height);
};
class UIExchangeAcceptWnd : public UIChooseSellBuyWnd {
public:
UIExchangeAcceptWnd(UIWindowContext& windows, UIFrameContext& frames, UIAcceptanceContext& acceptance);
~UIExchangeAcceptWnd() override;
void Slot15(int width, int height) override;
int SendMsg(UIWindow* sender, int message, std::intptr_t a, std::intptr_t b, std::intptr_t c, std::intptr_t d) override;
/* 00BC */ NormalItemSlotWindow* saved;
};
class UIJoinPartyAcceptWnd : public UIExchangeAcceptWnd {
public:
UIJoinPartyAcceptWnd(UIWindowContext& windows, UIFrameContext& frames, UIAcceptanceContext& acceptance);
~UIJoinPartyAcceptWnd() override;
int SendMsg(UIWindow* sender, int message, std::intptr_t a, std::intptr_t b, std::intptr_t c, std::intptr_t d) override;
};
class UIAllyGuildAcceptWnd : public UIExchangeAcceptWnd {
public:
int SendMsg(UIWindow* sender, int message, std::intptr_t a, std::intptr_t b, std::intptr_t c, std::intptr_t d) override;
};
class UIBabyAcceptWnd2 : public UIExchangeAcceptWnd {
public:
int SendMsg(UIWindow* sender, int message, std::intptr_t a, std::intptr_t b, std::intptr_t c, std::intptr_t d) override;
};
class UIBabyAcceptWnd : public UIExchangeAcceptWnd {
public:
int SendMsg(UIWindow* sender, int message, std::intptr_t a, std::intptr_t b, std::intptr_t c, std::intptr_t d) override;
};
#if defined(_WIN32) && !defined(_WIN64)
static_assert(sizeof(UIChooseSellBuyWnd) == 200);
static_assert(sizeof(UIExchangeAcceptWnd) == 204);
static_assert(sizeof(UIJoinPartyAcceptWnd) == 204);
#endif
#endif