rodecomp/Source/UI/UIBarGraph.h
ragnarok-clanker 38833fb751 Decompile 2 functions in Source/UI/UIBarGraph.cpp, Source/UI/UIBarGraph.h
Batch #4185 by Yommy: 0 byte-identical, 2 confirmed by peer review.

- fn_11024 UIBarGraphHomun::UIBarGraphHomun: logic confirmed by peer review
- fn_11025 UIBarGraphPlayer::UIBarGraphPlayer: logic confirmed by peer review

Peer-reviewed-by: eAthena, OvoKore, sherollyner, kyoshi
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/UIBarGraph.cpp
2026-10-30 01:45:00 +00:00

71 lines
1.4 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 {
};
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 Slot28(int x, int y) override;
void SetValues(std::int64_t current, std::int64_t maximum);
protected:
/* 007C */ int unknown_007C;
/* 0080 */ std::int64_t m_current;
/* 0088 */ std::int64_t m_maximum;
UIButtonContext* m_controls;
};
class UIPetInfoBarGraph : public UIWindow {
public:
void SetValue(int value);
/* 007C */ int unknown_007C;
};
class UIBarGraphHomun : public UIWindow {
public:
explicit UIBarGraphHomun(UIWindowContext& context);
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);
protected:
/* 0080 */ std::function<std::int64_t()> m_current;
/* 00A8 */ std::function<std::int64_t()> m_maximum;
};
#endif