rodecomp/Source/UI/Dialogs/UIBookWnd.h
ragnarok-clanker 99ba376b0c Decompile fn_12211 (UIBookWnd::Paint)
Batch #9155 by Bielhp: 0 byte-identical, 1 confirmed by peer review.

- fn_12211 UIBookWnd::Paint: logic confirmed by peer review

Peer-reviewed-by: youko, superintelligence
Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes).
2026-11-01 03:00:15 +00:00

51 lines
1.3 KiB
C++

#ifndef RAGNAROK_SOURCE_UI_DIALOGS_UIBOOKWND_H
#define RAGNAROK_SOURCE_UI_DIALOGS_UIBOOKWND_H
#include "UI/Window/UIFrameWnd.h"
#include <cstdint>
#include <string>
#include <vector>
class UISpriteButton;
class UITextViewer;
struct UITextViewerContext;
struct WindowOrdering;
struct UIBookContext {
UITextViewerContext& text;
WindowOrdering& ordering;
};
class UIBookWnd : public UIFrameWnd {
public:
UIBookWnd(UIWindowContext& windows, UIFrameContext& frames, UIBookContext& book);
/* 00B4 */ UITextViewer* m_viewer;
/* 00B8 */ UIWindow* unknown_00B8;
/* 00BC */ char m_bookName[100];
/* 0120 */ int m_lineCount;
/* 0124 */ int m_pageCount;
/* 0128 */ int m_page;
/* 012C */ int m_autoLine;
/* 0130 */ std::uint32_t m_autoTick;
/* 0134 */ unsigned char m_autoRead;
/* 0138 */ unsigned m_red;
/* 013C */ unsigned m_green;
/* 0140 */ unsigned m_blue;
/* 0144 */ std::vector<std::string> m_lines;
/* 0150 */ UISpriteButton* m_buttons[4];
void Slot15(int width, int height) override;
void Paint() override;
void Slot25(int x, int y) override;
int SendMsg(UIWindow* sender, int message, std::intptr_t a, std::intptr_t b, std::intptr_t c, std::intptr_t d) override;
int LoadBookmark(const char* name);
protected:
UIBookContext* m_book;
};
extern const char* g_bookmarkKeySuffix;
#endif