rodecomp/Source/UI/Gauges/UIPlayerGage.cpp
ragnarok-clanker 8adad7f267 Decompile 2 functions in Source/UI/Gauges/UIPlayerGage.cpp, Source/UI/Gauges/UIPcGage.h
Batch #8070 by Montyla: 0 byte-identical, 2 confirmed by peer review.

- fn_11044 UIGage::UIGage: logic confirmed by peer review
- fn_11061 UIMonsterGage::UIMonsterGage: logic confirmed by peer review

Peer-reviewed-by: eAthena, secret, gordaoprogramas
Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes).
2026-10-31 14:05:06 +00:00

87 lines
2.3 KiB
C++

#include "UI/Gauges/UIPcGage.h"
// OFFSET: 0x0086D2D0
// FUNCTION: fn_11044
UIGage::UIGage() : UIWindow(*reinterpret_cast<UIWindowContext*>(nullptr), 0) {
this->m_context = reinterpret_cast<UIWindowContext*>(0x009B1914);
this->colors[0] = 0x00444444;
this->colors[1] = 0x0025EA16;
this->colors[2] = 0x00DB651D;
this->colors[3] = 0x001616EA;
this->colors[4] = 0x00E1E4FF;
this->colors[5] = 0x001616EA;
this->colors[6] = 0x0060C0FF;
}
// OFFSET: 0x0086E120
// FUNCTION: fn_11065
UIPcGage::UIPcGage() : unknown_009C(0), current(0), maximum(0), unknown_00A8(0), unknown_00AC(0) {
}
// OFFSET: 0x0086E3A0
// FUNCTION: fn_11069
UIRechargeGage::UIRechargeGage() : current(0), maximum(100) {
}
// OFFSET: 0x0086E210
// FUNCTION: fn_11067
UIPlayerGage::UIPlayerGage() : unknown_009C(0) {
}
// OFFSET: 0x0086DE90
// FUNCTION: fn_11061
UIMonsterGage::UIMonsterGage() : m_threshold(0x19) {
this->m_context = reinterpret_cast<UIWindowContext*>(0x009C1810);
this->colors[0] = 0x00424142;
this->colors[1] = 0x00E700FF;
this->colors[3] = 0x0000FFFF;
this->unknown_009C = 1;
}
// OFFSET: 0x00882450
// FUNCTION: fn_11304
bool UIPlayerGage::Slot03() {
return true;
}
// OFFSET: 0x0089B560
// FUNCTION: fn_11568
void UIRechargeGage::SetValues(int current, int maximum) {
this->current = current;
this->maximum = maximum;
this->Invalidate();
}
// OFFSET: 0x0089B590
// FUNCTION: fn_11569
void UIPlayerGage::SetFourthValues(std::function<std::int64_t()> current, std::function<std::int64_t()> maximum) {
this->m_fourthCurrent = current;
this->m_fourthMaximum = maximum;
}
// OFFSET: 0x0089BCF0
// FUNCTION: fn_11578
void UIPlayerGage::SetFirstValues(std::function<std::int64_t()> current, std::function<std::int64_t()> maximum) {
this->m_firstCurrent = current;
this->m_firstMaximum = maximum;
}
// OFFSET: 0x0089BDA0
// FUNCTION: fn_11579
void UIPlayerGage::SetThirdValues(std::function<std::int64_t()> current, std::function<std::int64_t()> maximum) {
this->m_thirdCurrent = current;
this->m_thirdMaximum = maximum;
}
// OFFSET: 0x0089C070
// FUNCTION: fn_11580
void UIMonsterGage::SetMode(int mode) {
this->unknown_009C = mode;
}
// OFFSET: 0x0089C390
// FUNCTION: fn_11587
void UIPlayerGage::SetSecondValues(std::function<std::int64_t()> current, std::function<std::int64_t()> maximum) {
this->m_secondCurrent = current;
this->m_secondMaximum = maximum;
}