Batch #9761 by ragnarok-clanker: 0 byte-identical, 1 confirmed by peer review. - fn_12331 UIChoose3Wnd::SendMsg: logic confirmed by peer review Peer-reviewed-by: KWDev, Romain, Montyla Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes).
45 lines
1.3 KiB
C++
45 lines
1.3 KiB
C++
#ifndef RAGNAROK_SOURCE_UI_DIALOGS_UICHOOSEWND_H
|
|
#define RAGNAROK_SOURCE_UI_DIALOGS_UICHOOSEWND_H
|
|
|
|
#include "UI/Window/UIFrameWnd.h"
|
|
|
|
#include <vector>
|
|
|
|
struct ChooseWndInfo;
|
|
struct UIButtonContext;
|
|
struct UIListBoxContext;
|
|
class UIBitmapButton;
|
|
class UIListBox;
|
|
|
|
class UIChooseWnd : public UIFrameWnd {
|
|
public:
|
|
UIChooseWnd(UIWindowContext& windows, UIFrameContext& frames, UIButtonContext& controls, UIListBoxContext& lists);
|
|
~UIChooseWnd() override;
|
|
void Slot11() 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;
|
|
std::vector<unsigned char> Slot44() override;
|
|
|
|
/* 00B4 */ int unknown_00B4;
|
|
/* 00B8 */ std::vector<int> m_items;
|
|
/* 00C4 */ UIListBox* m_list;
|
|
/* 00C8 */ int unknown_00C8;
|
|
/* 00CC */ ChooseWndInfo* m_placement;
|
|
/* 00D0 */ UIBitmapButton* m_okButton;
|
|
/* 00D4 */ UIBitmapButton* m_cancelButton;
|
|
|
|
protected:
|
|
UIButtonContext* m_controls;
|
|
UIListBoxContext* m_listContext;
|
|
};
|
|
|
|
class UIChoose3Wnd : public UIChooseWnd {
|
|
public:
|
|
int SendMsg(UIWindow* sender, int message, std::intptr_t a, std::intptr_t b, std::intptr_t c, std::intptr_t d) override;
|
|
|
|
/* 00D8 */ int m_minimumLines;
|
|
/* 00DC */ int m_maximumLines;
|
|
};
|
|
|
|
#endif
|