rodecomp/Source/UI/SkillDelayInfo/UISkillDelayInfo.cpp
ragnarok-clanker d12b37d296 Decompile 6 functions in Source/UI/SkillDelayInfo/UISkillDelayInfo.cpp, Source/UI/SkillDelayInfo/SkillDelayInfo.h
Batch #3479 by eAthena: 2 byte-identical, 4 confirmed by peer review.

- fn_16877 SkillDelayInfo::CUITime::`scalar deleting destructor': logic confirmed by peer review
- fn_16882 SkillDelayInfo::CUIDelayItem::Paint: logic confirmed by peer review
- fn_16883 CUISkillDelayInfo::Paint: logic confirmed by peer review
- fn_16884 SkillDelayInfo::CUITime::Paint: byte-identical
- fn_16885 SkillDelayInfo::CUIDelayItem::Slot16: logic confirmed by peer review
- fn_16887 SkillDelayInfo::CUITime::Slot16: byte-identical

Peer-reviewed-by: Yommy, youko
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/SkillDelayInfo/UISkillDelayInfo.cpp
2026-10-29 22:38:11 +00:00

59 lines
2.2 KiB
C++

#include "UI/SkillDelayInfo/SkillDelayInfo.h"
#include "Resource/ResourceMgr.h"
#include "Resource/SkinPalette.h"
#include "UI/Window/WindowBorder.h"
namespace SkillDelayInfo {
// OFFSET: 0x00A778C0
// FUNCTION: fn_16877
CUITime::~CUITime() = default;
// OFFSET: 0x00A77CE0
// FUNCTION: fn_16882
void CUIDelayItem::Paint() {
this->backgroundColor = SkinPaletteColor(ResourceMgr::Instance(), SkinPaletteCell{0, 2}, true);
this->borderColor = SkinPaletteColor(ResourceMgr::Instance(), SkinPaletteCell{6, 2}, true);
DrawRectangleBorder(*this, 0, 0, 325, 22, this->borderColor);
this->FillRegion(1, 0, 43, 21, this->backgroundColor);
this->FillRegion(44, 0, 280, 21, 0xFFFFFF);
DrawRectangleBorder(*this, 44, 0, 1, 21, this->borderColor);
DrawRectangleBorder(*this, 114, 0, 1, 21, this->borderColor);
DrawRectangleBorder(*this, 184, 0, 1, 21, this->borderColor);
DrawRectangleBorder(*this, 254, 0, 1, 21, this->borderColor);
}
// OFFSET: 0x00A77F00
// FUNCTION: fn_16884
void CUITime::Paint() {
this->ClearSurface(0xFFFF00FF);
}
// OFFSET: 0x00A77F10
// FUNCTION: fn_16885
void CUIDelayItem::Slot16() {
this->backgroundColor = SkinPaletteColor(ResourceMgr::Instance(), SkinPaletteCell{0, 2}, true);
this->borderColor = SkinPaletteColor(ResourceMgr::Instance(), SkinPaletteCell{6, 2}, true);
}
// OFFSET: 0x00A78180
// FUNCTION: fn_16887
void CUITime::Slot16() {
}
}
// OFFSET: 0x00A77DD0
// FUNCTION: fn_16883
void CUISkillDelayInfo::Paint() {
CUIFrameWnd::Paint();
this->backgroundColor = SkinPaletteColor(ResourceMgr::Instance(), SkinPaletteCell{0, 2}, true);
this->borderColor = SkinPaletteColor(ResourceMgr::Instance(), SkinPaletteCell{6, 2}, true);
this->FillRegion(11, 28, 323, 23, this->backgroundColor);
DrawRectangleBorder(*this, 10, 27, 325, 25, this->borderColor);
DrawRectangleBorder(*this, 10, 58, 325, 46, this->borderColor);
this->FillRegion(11, 59, 323, 44, this->backgroundColor);
DrawRectangleBorder(*this, 11, 81, 323, 1, this->borderColor);
DrawRectangleBorder(*this, 54, 59, 1, 44, this->borderColor);
DrawRectangleBorder(*this, 194, 59, 1, 44, this->borderColor);
DrawRectangleBorder(*this, 124, 83, 1, 21, this->borderColor);
DrawRectangleBorder(*this, 264, 83, 1, 21, this->borderColor);
}