Batch #4429 by eAthena: 0 byte-identical, 9 confirmed by peer review. - fn_10915 UIEditCtrlVarId::SendMsg: logic confirmed by peer review - fn_10916 UIEditCtrl_OldList::SendMsg: logic confirmed by peer review - fn_10917 UIEmblemWnd::SendMsg: logic confirmed by peer review - fn_10919 UIRadioBtn::SendMsg: logic confirmed by peer review - fn_10920 UISlotBitmap::SendMsg: logic confirmed by peer review - fn_10921 UITab::SendMsg: logic confirmed by peer review - fn_10923 UIWordDisplayWnd::SendMsg: logic confirmed by peer review - fn_10935 UIBalloonText::SetFontHeight: logic confirmed by peer review - fn_10936 UIStaticText::SetFont: logic confirmed by peer review Peer-reviewed-by: alisonrag, willerthal Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes).
49 lines
1.1 KiB
C++
49 lines
1.1 KiB
C++
#ifndef RAGNAROK_SOURCE_UI_TEXT_UIBALLOONTEXT_H
|
|
#define RAGNAROK_SOURCE_UI_TEXT_UIBALLOONTEXT_H
|
|
|
|
#include "UI/Window/UIWindow.h"
|
|
|
|
#include <string>
|
|
#include <vector>
|
|
|
|
class FontCache;
|
|
struct TextLocale;
|
|
struct ItemDescriptions;
|
|
|
|
struct BalloonTextContext {
|
|
FontCache& fonts;
|
|
const TextLocale& locale;
|
|
const unsigned short& codePage;
|
|
ItemDescriptions& items;
|
|
};
|
|
|
|
class UIBalloonText : public UIWindow {
|
|
public:
|
|
UIBalloonText(UIWindowContext& windows, BalloonTextContext& text);
|
|
~UIBalloonText() override;
|
|
|
|
bool CanHitTest() override;
|
|
void Slot19() override;
|
|
void Paint() override;
|
|
|
|
void SetText(const char* text, int width);
|
|
void FitText();
|
|
void SetFontHeight(int height);
|
|
|
|
protected:
|
|
/* 007C */ unsigned char unknown_007C;
|
|
/* 0080 */ int m_fontHeight;
|
|
/* 0084 */ std::vector<std::string> m_lines;
|
|
/* 0090 */ std::uint32_t m_textColor;
|
|
/* 0094 */ std::uint32_t m_outlineColor;
|
|
/* 0098 */ std::uint16_t unknown_0098;
|
|
/* 009A */ std::uint16_t m_fontMode;
|
|
/* 009C */ unsigned char m_richText;
|
|
BalloonTextContext* m_textContext;
|
|
};
|
|
|
|
#if defined(_WIN32) && !defined(_WIN64)
|
|
static_assert(sizeof(UIBalloonText) == 168);
|
|
#endif
|
|
|
|
#endif
|