Batch #8228 by eAthena: 0 byte-identical, 4 confirmed by peer review. - fn_16323 CUIRecommendedQuestInfo::Slot15: logic confirmed by peer review - fn_04182 UILapineBox_IngredientListWnd::CanUseIngredient: logic confirmed by peer review - fn_10647 UIAchBalloonText::UIAchBalloonText: logic confirmed by peer review - fn_10651 UIBmpTextButton2::UIBmpTextButton2: logic confirmed by peer review Peer-reviewed-by: gordaoprogramas, System4z, Toshiro Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes).
34 lines
803 B
C++
34 lines
803 B
C++
#ifndef RAGNAROK_SOURCE_UI_BUTTONS_UIBMPTEXTBUTTON2_H
|
|
#define RAGNAROK_SOURCE_UI_BUTTONS_UIBMPTEXTBUTTON2_H
|
|
|
|
#include "UI/Buttons/UIBitmapButton.h"
|
|
|
|
#include <cstdint>
|
|
#include <string>
|
|
#include <vector>
|
|
|
|
struct BmpTextButtonLabel {
|
|
/* 0000 */ std::string text;
|
|
/* 0018 */ int unknown_0018;
|
|
/* 001C */ int x;
|
|
/* 0020 */ int y;
|
|
/* 0024 */ int height;
|
|
/* 0028 */ unsigned char bold;
|
|
/* 002C */ std::uint32_t color;
|
|
/* 0030 */ unsigned char shadow;
|
|
};
|
|
|
|
class UIBmpTextButton2 : public UIBitmapButton {
|
|
public:
|
|
UIBmpTextButton2(UIWindowContext& windows, UIButtonContext& buttons);
|
|
void Paint() override;
|
|
void DrawLabels();
|
|
|
|
/* 0120 */ std::vector<BmpTextButtonLabel> labels;
|
|
};
|
|
|
|
#if defined(_WIN32) && !defined(_WIN64)
|
|
static_assert(sizeof(BmpTextButtonLabel) == 52);
|
|
#endif
|
|
|
|
#endif
|