Batch #1065 by ragnarok-clanker: no function's compiled code changes; checked with 92 compiled unit(s), including every includer of Source/UI/Buttons/UIBmpTextButton.h, Source/UI/Chat/ChatNotifications.h, Source/UI/Cooldowns/CooldownDrawing.h, Source/UI/Cooldowns/CooldownState.h, Source/UI/Edit/ItemTagRetirement.h, Source/UI/Layout/SnapRectangle.h, Source/UI/Lists/UIListBoxEx.h, Source/UI/MiniPartyGrid.h, Source/UI/Party/UIAdvenPartyBoardWnd.h, Source/UI/Party/UIRequestJoinPartyMgr.h, Source/UI/Shop/PriceColor.h, Source/UI/Shortcuts/ShortcutCooldowns.h, Source/UI/Shortcuts/ShortcutGrid.h, Source/UI/Text/TextMarkup.h, Source/UI/Text/UITransBalloonText.h, Source/UI/Window/FrameTextCache.h, Source/UI/Window/UIWindow.h, Source/UI/Window/WindowAncestry.h, Source/UI/Window/WindowRegistration.h.
41 lines
1.3 KiB
C++
41 lines
1.3 KiB
C++
#ifndef RAGNAROK_SOURCE_UI_BUTTONS_UIBMPTEXTBUTTON_H
|
|
#define RAGNAROK_SOURCE_UI_BUTTONS_UIBMPTEXTBUTTON_H
|
|
|
|
#include "UI/Buttons/UIBitmapButton.h"
|
|
|
|
#include <cstddef>
|
|
|
|
struct BitmapButtonTextStyle {
|
|
/* 0000 */ int state;
|
|
/* 0004 */ int x;
|
|
/* 0008 */ int y;
|
|
/* 000C */ int height;
|
|
/* 0010 */ unsigned char bold;
|
|
/* 0014 */ std::uint32_t color;
|
|
/* 0018 */ unsigned char shadow;
|
|
};
|
|
|
|
class UIBmpTextButton : public UIBitmapButton {
|
|
public:
|
|
UIBmpTextButton(UIWindowContext& windows, UIButtonContext& controls);
|
|
~UIBmpTextButton() override;
|
|
void Paint() override;
|
|
void SetText(std::string value);
|
|
|
|
/* 0120 */ std::string text;
|
|
/* 0138 */ std::vector<BitmapButtonTextStyle> styles;
|
|
};
|
|
|
|
#if defined(_WIN32) && !defined(_WIN64)
|
|
static_assert(sizeof(BitmapButtonTextStyle) == 28);
|
|
static_assert(offsetof(BitmapButtonTextStyle, state) == 0x0000);
|
|
static_assert(offsetof(BitmapButtonTextStyle, x) == 0x0004);
|
|
static_assert(offsetof(BitmapButtonTextStyle, y) == 0x0008);
|
|
static_assert(offsetof(BitmapButtonTextStyle, height) == 0x000C);
|
|
static_assert(offsetof(BitmapButtonTextStyle, bold) == 0x0010);
|
|
static_assert(offsetof(BitmapButtonTextStyle, color) == 0x0014);
|
|
static_assert(offsetof(BitmapButtonTextStyle, shadow) == 0x0018);
|
|
static_assert(sizeof(UIBmpTextButton) == 332);
|
|
#endif
|
|
|
|
#endif
|