rodecomp/Source/UI/Buttons/UISpriteButton.h
ragnarok-clanker 1e071d5028 Decompile 8 functions in Source/UI/Edit/UIEditVariants.cpp, Source/Contents/CashEmotionMgr.cpp, ...
Batch #5346 by eAthena: 0 byte-identical, 8 confirmed by peer review.

- fn_10943 UIEditCtrl4::SetPlaceholder: logic confirmed by peer review
- fn_10944 UIEditCtrl4::SetPlaceholderColor: logic confirmed by peer review
- fn_10945 UISpriteButton::SetPalette: logic confirmed by peer review
- fn_10949 UIBalloonText::WrapText: logic confirmed by peer review
- fn_10954 UIRadioBtn::SetText: logic confirmed by peer review
- fn_10956 UIWhisperEditCtrl::SetText: logic confirmed by peer review
- fn_10957 UITransBalloonText::SetLine: logic confirmed by peer review
- fn_10958 UIEditCtrl3::Trim: logic confirmed by peer review

Peer-reviewed-by: willerthal, tayoba
Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes).
2026-10-30 11:47:58 +00:00

61 lines
1.6 KiB
C++

#ifndef RAGNAROK_SOURCE_UI_BUTTONS_UISPRITEBUTTON_H
#define RAGNAROK_SOURCE_UI_BUTTONS_UISPRITEBUTTON_H
#include "UI/Buttons/UIButton.h"
#include <string>
class UISpriteButton : public UIButton {
public:
UISpriteButton(UIWindowContext& windowContext, UIButtonContext& buttonContext);
~UISpriteButton() 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;
int FrameHeight(int action, int frame);
int FrameWidth(int action, int frame);
void SetActName(const char* name);
void SetSprite(const char* name);
void SetPalette(const char* name);
protected:
/* 00B4 */ int unknown_00B4;
/* 00B8 */ int unknown_00B8;
/* 00BC */ int unknown_00BC;
/* 00C0 */ int unknown_00C0;
/* 00C4 */ int unknown_00C4;
/* 00C8 */ int unknown_00C8;
public:
/* 00CC */ std::string spriteName;
/* 00E4 */ std::string actionName;
protected:
/* 00FC */ std::string unknown_00FC;
};
class UIHeadsprButton : public UISpriteButton {
public:
void Paint() override;
};
class UISpriteButton2 : public UISpriteButton {
public:
UISpriteButton2(UIWindowContext& windowContext, UIButtonContext& buttonContext, UIWindow* target);
~UISpriteButton2() 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 Slot35(int argument) override;
void Slot47() override;
void Slot48() override;
protected:
/* 0114 */ UIWindow* m_target;
};
#endif