Batch #8217 by pedrao: 0 byte-identical, 1 confirmed by peer review. - fn_12905 UIMileageWnd::Paint: logic confirmed by peer review Peer-reviewed-by: ragnarok-clanker, eAthena, System4z Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes).
37 lines
1 KiB
C++
37 lines
1 KiB
C++
#ifndef RAGNAROK_SOURCE_UI_WINDOW_UIMILEAGEWND_H
|
|
#define RAGNAROK_SOURCE_UI_WINDOW_UIMILEAGEWND_H
|
|
|
|
#include "UI/Window/UIFrameWnd.h"
|
|
|
|
#include <cstdint>
|
|
#include <string>
|
|
|
|
struct UIButtonContext;
|
|
|
|
class UIMileageWnd : public UIFrameWnd {
|
|
public:
|
|
UIMileageWnd(UIWindowContext& windows, UIFrameContext& frames, UIButtonContext& controls);
|
|
void Paint() override;
|
|
void Slot19() override;
|
|
void Slot25(int x, int y) override;
|
|
void Slot27(int x, int y) override;
|
|
void Slot28(int x, int y) override;
|
|
void Slot31(int x, int y) override;
|
|
void Slot15(int width, int height) override;
|
|
int SendMsg(UIWindow* sender, int message, std::intptr_t a, std::intptr_t b, std::intptr_t c, std::intptr_t d) override;
|
|
|
|
protected:
|
|
/* 00B4 */ std::uint32_t m_startTime;
|
|
/* 00B8 */ int m_point;
|
|
/* 00BC */ int m_remaining;
|
|
/* 00C0 */ int m_bonus;
|
|
/* 00C4 */ std::string m_tooltip;
|
|
UIButtonContext* m_controls;
|
|
};
|
|
|
|
extern int g_mileageWndActive;
|
|
extern int g_mileageWndPoint;
|
|
extern int g_mileageWndElapsed;
|
|
extern int g_mileageWndBonus;
|
|
|
|
#endif
|