rodecomp/Source/UI/Items/UIExchangeWnd.h
ragnarok-clanker efcc05aaea Decompile 13 functions in Source/UI/Acceptance/UIChooseSellBuyWnd.cpp, Source/UI/Items/UIExchangeWnd.h
Batch #16924 by eAthena: 10 byte-identical, 3 confirmed by peer review.

- fn_12141 UIExchangeWnd::LayoutButtons: byte-identical
- fn_12164 UIChooseWnd::OnCreate: byte-identical
- fn_12167 UIComboBoxIDWnd::OnCreate: byte-identical
- fn_12173 UIExchangeWnd::OnCreate: byte-identical
- fn_12192 UIPasswordWnd::OnCreate: byte-identical
- fn_12195 UIQuitWnd::OnCreate: byte-identical
- fn_12197 UISayDialogWnd::OnCreate: byte-identical
- fn_12205 UIToolTipWnd::OnCreate: byte-identical
- fn_12211 UIBookWnd::Paint: byte-identical
- fn_12413 UIWhisperWnd::StoreInfo: byte-identical
- fn_12169 UIDisconnectedServerMsgWnd::OnCreate: logic confirmed by peer review
- fn_12162 UIChooseSellBuyWnd::OnCreate: logic confirmed by peer review
- fn_12184 UINoticeConfirmWnd::OnCreate: 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-11-11 11:24:21 +00:00

54 lines
1.7 KiB
C++

#ifndef RAGNAROK_SOURCE_UI_ITEMS_UIEXCHANGEWND_H
#define RAGNAROK_SOURCE_UI_ITEMS_UIEXCHANGEWND_H
#include "Contents/Items/ItemInfo.h"
#include "UI/Window/UIFrameWnd.h"
#include <list>
#include <string>
class UIBitmapButton;
class UIEditCtrl;
class UICheckBox;
class UIExchangeWnd : public UIFrameWnd {
public:
/* 00B4 */ UIBitmapButton* m_buttons[3];
/* 00C0 */ UIEditCtrl* zenyEdit;
/* 00C4 */ UIWindow* m_scrollBar;
/* 00C8 */ unsigned char padding_00C8[0x04];
/* 00CC */ int isLocalTrader;
/* 00D0 */ int localConfirmed;
/* 00D4 */ int remoteConfirmed;
/* 00D8 */ int localAccepted;
/* 00DC */ int remoteAccepted;
/* 00E0 */ std::list<ITEM_INFO> m_myItems;
/* 00E8 */ std::list<ITEM_INFO> m_otherItems;
/* 00F0 */ std::string partnerName;
/* 0108 */ int partnerId;
/* 010C */ short partnerLevel;
/* 010E */ unsigned char padding_010E[0x04];
/* 0112 */ short m_rowHeight;
/* 0114 */ short m_hoverX;
/* 0116 */ unsigned char padding_0116[0x02];
/* 0118 */ UICheckBox* screenshotCheckBox;
/* 011C */ unsigned char takeScreenshot;
/* 0120 */ int m_moneyLength;
/* 0124 */ std::string m_moneyText;
void OnCreate(int width, int height) override;
void Paint() override;
int SendMsg(UIWindow* sender, int message, std::intptr_t argument1, std::intptr_t argument2, std::intptr_t argument3, std::intptr_t argument4) override;
void DragAndDrop(int x, int y, std::intptr_t value) override;
void OnMouseHover(int x, int y) override;
void OnRBtnDown(int x, int y) override;
void OnWheel(int delta) override;
void OnProcess() override;
std::vector<unsigned char> GetReplayData() override;
void LayoutButtons();
void CancelInput();
ITEM_INFO ItemAt(int x, int y);
};
#endif