Batch #3721 by youko: 5 byte-identical, 3 confirmed by peer review. - fn_10813 UINoneVisibleButton::Paint: byte-identical - fn_10822 UITextureButton::Paint: byte-identical - fn_10827 UIEditCtrlVarId::Slot24: byte-identical - fn_10833 UISlotBitmap::Slot26: byte-identical - fn_10844 UIRadioBtn::Slot25: logic confirmed by peer review - fn_10846 UISlotBitmap::Slot25: logic confirmed by peer review - fn_10862 UIResizer::Slot28: byte-identical - fn_10887 UISlotBitmap::Slot32: logic confirmed by peer review Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes). Adds to the build: Source/UI/Buttons/UIBmpTextButton2.cpp, Source/UI/Buttons/UIColorButton.cpp, Source/UI/Buttons/UINoneVisibleButton.cpp, Source/UI/Buttons/UIRadioBtn.cpp, Source/UI/Buttons/UITextureButton.cpp, Source/UI/Chat/UIChatRoomTitle.cpp, Source/UI/Shop/UIMerchantShopTitle.cpp, Source/UI/UISlotBitmap.cpp, Source/UI/Window/UIBitmapTab.cpp, Source/UI/Window/UIEmblemWnd.cpp, Source/UI/Window/UIResizer.cpp, Source/UI/Window/UITab.cpp, Source/UI/Window/UIWordDisplayWnd.cpp
56 lines
1.4 KiB
C++
56 lines
1.4 KiB
C++
#ifndef RAGNAROK_SOURCE_UI_TEXT_UISTATICTEXT_H
|
|
#define RAGNAROK_SOURCE_UI_TEXT_UISTATICTEXT_H
|
|
|
|
#include "UI/Window/UIWindow.h"
|
|
|
|
#include <string>
|
|
|
|
struct UIButtonContext;
|
|
|
|
class UIStaticText : public UIWindow {
|
|
public:
|
|
UIStaticText(UIWindowContext& windows, UIButtonContext& controls);
|
|
~UIStaticText() 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 Slot28(int x, int y) override;
|
|
void ResetCursor(int x, int y) override;
|
|
void Slot31(int x, int y) override;
|
|
void Slot32(int x, int y) override;
|
|
void Slot33(int x, int y) override;
|
|
void Slot35(int value) override;
|
|
void SetText(const char* value, int outline);
|
|
|
|
/* 007C */ int red;
|
|
/* 0080 */ int green;
|
|
/* 0084 */ int blue;
|
|
/* 0088 */ int shadow;
|
|
/* 008C */ int outline;
|
|
/* 0090 */ std::uint32_t background;
|
|
/* 0094 */ std::uint32_t outlineColor;
|
|
/* 0098 */ int fontHeight;
|
|
/* 009C */ int fontFamily;
|
|
/* 00A0 */ unsigned char bold;
|
|
/* 00A1 */ unsigned char italic;
|
|
/* 00A4 */ int tooltipEnabled;
|
|
/* 00A8 */ std::string text;
|
|
/* 00C0 */ std::string tooltip;
|
|
|
|
protected:
|
|
UIButtonContext* m_controls;
|
|
};
|
|
|
|
class UIStaticText3 : public UIStaticText {
|
|
public:
|
|
void Paint() override;
|
|
|
|
/* 00D8 */ int textX;
|
|
};
|
|
|
|
#if defined(_WIN32) && !defined(_WIN64)
|
|
static_assert(sizeof(UIStaticText) == 224);
|
|
#endif
|
|
|
|
#endif
|