Batch #11499 by StrawberrysherbetIX: 2 byte-identical, 4 confirmed by peer review. - fn_02938 CCashEmotionMgr::RefreshCommands: logic confirmed by peer review (already on main) - fn_02942 CCashEmotionMgr::ProcessChatCommand: logic confirmed by peer review (already on main) - fn_09352 UICashEmotionListChildWnd_Basic::Refresh: logic confirmed by peer review (already on main) - fn_09406 UICashEmotionListWnd::Slot15: logic confirmed by peer review (already on main) - fn_09499 UICashEmotionSprBtn::UICashEmotionSprBtn: byte-identical (already on main) - fn_10697 UISpriteButton2::~UISpriteButton2: byte-identical (already on main) Peer-reviewed-by: Yommy, cremane Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes).
63 lines
1.6 KiB
C++
63 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();
|
|
__declspec(noinline) ~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);
|
|
__declspec(noinline) void SetSprite(const char* name);
|
|
void SetPalette(const char* name);
|
|
|
|
public:
|
|
/* 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:
|
|
using UISpriteButton::UISpriteButton;
|
|
UIHeadsprButton();
|
|
void Paint() override;
|
|
};
|
|
|
|
class UISpriteButton2 : public UISpriteButton {
|
|
public:
|
|
__declspec(noinline) UISpriteButton2(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
|