Batch #5221 by Yommy: 0 byte-identical, 13 confirmed by peer review. - fn_11568 UIRechargeGage::SetValues: logic confirmed by peer review - fn_11569 UIPlayerGage::SetFourthValues: logic confirmed by peer review - fn_11578 UIPlayerGage::SetFirstValues: logic confirmed by peer review - fn_11579 UIPlayerGage::SetThirdValues: logic confirmed by peer review - fn_11580 UIMonsterGage::SetMode: logic confirmed by peer review - fn_11587 UIPlayerGage::SetSecondValues: logic confirmed by peer review - fn_11593 UIBarGraphHomun::SetValues: logic confirmed by peer review - fn_11594 UIBarGraphPlayer::SetValues: logic confirmed by peer review - fn_11570 UIBmpRadioBtn::SetBitmap: logic confirmed by peer review - fn_11573 UITextButton::CenterIn: logic confirmed by peer review - fn_11590 UITVTextButton::SetLabel: logic confirmed by peer review - fn_11592 UIBmpRadioBtn::AddText: logic confirmed by peer review - fn_11595 UIItemTagOnMail::SetLines: logic confirmed by peer review Peer-reviewed-by: eAthena, alisonrag Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes). Adds to the build: Source/UI/Gauges/UIPlayerGage.cpp
80 lines
1.8 KiB
C++
80 lines
1.8 KiB
C++
#ifndef RAGNAROK_SOURCE_UI_UIBARGRAPH_H
|
|
#define RAGNAROK_SOURCE_UI_UIBARGRAPH_H
|
|
|
|
#include "UI/Window/UIWindow.h"
|
|
|
|
#include <cstdint>
|
|
#include <functional>
|
|
|
|
struct UIButtonContext;
|
|
|
|
class UIBarGraph : public UIWindow {
|
|
public:
|
|
void SetValue(float value);
|
|
|
|
/* 007C */ float m_value;
|
|
};
|
|
|
|
class UIBarGraph3 : public UIWindow {
|
|
public:
|
|
~UIBarGraph3() override;
|
|
};
|
|
|
|
class UIBarGraph4 : public UIBarGraph3 {
|
|
public:
|
|
void Slot28(int x, int y) override;
|
|
|
|
void SetValues(const int* current, const int* maximum);
|
|
|
|
protected:
|
|
/* 007C */ const int* m_current;
|
|
/* 0080 */ const int* m_maximum;
|
|
UIButtonContext* m_controls;
|
|
};
|
|
|
|
class UIINT64BarGraph : public UIWindow {
|
|
public:
|
|
void Paint() override;
|
|
void Slot28(int x, int y) override;
|
|
|
|
void SetValues(std::int64_t current, std::int64_t maximum);
|
|
|
|
protected:
|
|
/* 007C */ unsigned char m_plainColor;
|
|
/* 0080 */ std::int64_t m_current;
|
|
/* 0088 */ std::int64_t m_maximum;
|
|
UIButtonContext* m_controls;
|
|
};
|
|
|
|
class UIPetInfoBarGraph : public UIWindow {
|
|
public:
|
|
void Paint() override;
|
|
void SetValue(int value);
|
|
|
|
/* 007C */ int unknown_007C;
|
|
};
|
|
|
|
class UIBarGraphHomun : public UIWindow {
|
|
public:
|
|
explicit UIBarGraphHomun(UIWindowContext& context);
|
|
|
|
void SetValues(std::function<std::int64_t()> current, std::function<std::int64_t()> maximum);
|
|
|
|
protected:
|
|
/* 0080 */ std::function<std::int64_t()> m_current;
|
|
/* 00A8 */ std::function<std::int64_t()> m_maximum;
|
|
};
|
|
|
|
class UIBarGraphPlayer : public UIWindow {
|
|
public:
|
|
explicit UIBarGraphPlayer(UIWindowContext& context);
|
|
~UIBarGraphPlayer() override;
|
|
|
|
void SetValues(std::function<std::int64_t()> current, std::function<std::int64_t()> maximum);
|
|
|
|
protected:
|
|
/* 0080 */ std::function<std::int64_t()> m_current;
|
|
/* 00A8 */ std::function<std::int64_t()> m_maximum;
|
|
};
|
|
|
|
#endif
|