Batch #11110 by cremane: 0 byte-identical, 1 confirmed by peer review. - fn_12655 UISubChatHisWnd::Slot15: logic confirmed by peer review Peer-reviewed-by: Yommy, KWDev, dori Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes).
70 lines
2 KiB
C++
70 lines
2 KiB
C++
#ifndef RAGNAROK_SOURCE_UI_CHAT_UISUBCHATHISWND_H
|
|
#define RAGNAROK_SOURCE_UI_CHAT_UISUBCHATHISWND_H
|
|
|
|
#include "Contents/Configuration/ServiceConfiguration.h"
|
|
#include "UI/Buttons/UIBitmapButton.h"
|
|
#include "UI/Window/UIFrameWnd.h"
|
|
|
|
#include <string>
|
|
|
|
class UIChatHisBox;
|
|
class UIEditCtrl;
|
|
class UIResizer;
|
|
class UIWindowMgr;
|
|
struct SubChatHisWndInfo;
|
|
|
|
struct SubChatHistoryState {
|
|
/* 0000 */ int unknown_0000;
|
|
/* 0004 */ int unknown_0004;
|
|
/* 0008 */ int unknown_0008;
|
|
/* 000C */ int unknown_000C;
|
|
/* 0010 */ int unknown_0010;
|
|
/* 0014 */ int unknown_0014;
|
|
/* 0018 */ int unknown_0018;
|
|
};
|
|
|
|
class UISubChatHisWnd : public UIFrameWnd {
|
|
friend class UIWindowMgr;
|
|
friend class UINewChatWnd;
|
|
|
|
public:
|
|
UISubChatHisWnd();
|
|
void Resize(int width, int height) override;
|
|
void Move(int x, int y) override;
|
|
void Slot11() override;
|
|
void Slot15(int width, int height) override;
|
|
void Paint() override;
|
|
void Slot25(int x, int y) override;
|
|
void Slot26(int x, int y) override;
|
|
void Slot27(int x, int y) override;
|
|
void Slot31(int x, int y) override;
|
|
bool Slot42(void* output) override;
|
|
void Slot43() 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 ApplyButtonLayout();
|
|
UIChatHisBox* ChatBox() const { return m_chatBox; }
|
|
std::string Name() const { return m_name; }
|
|
|
|
private:
|
|
/* 00B4 */ UIChatHisBox* m_chatBox;
|
|
/* 00B8 */ SubChatHisWndInfo* m_saved;
|
|
/* 00BC */ UIResizer* m_resizer;
|
|
/* 00C0 */ SubChatHistoryState m_state;
|
|
/* 00DC */ UIBitmapButton* m_stickButton;
|
|
/* 00E0 */ UIBitmapButton* m_optionButton;
|
|
/* 00E4 */ UIBitmapButton* m_miniButton;
|
|
/* 00E8 */ int m_inputHeight;
|
|
/* 00EC */ int m_inputWidth;
|
|
/* 00F0 */ int unknown_00F0;
|
|
/* 00F4 */ int m_index;
|
|
/* 00F8 */ bool m_options[25];
|
|
/* 0111 */ unsigned char unknown_0111[3];
|
|
/* 0114 */ std::string m_name;
|
|
/* 012C */ UIEditCtrl* m_edit;
|
|
};
|
|
|
|
#if defined(_WIN32) && !defined(_WIN64)
|
|
static_assert(sizeof(SubChatHistoryState) == 0x1C);
|
|
#endif
|
|
|
|
#endif
|