rodecomp/Source/UI/Window/UIRPImageWnd2.cpp
ragnarok-clanker b79407bc49 Decompile 2 functions in Source/UI/Window/UIRPImageWnd2.cpp, Source/UI/Window/UIRPImageWnd2.h, ...
Batch #6184 by eAthena: 0 byte-identical, 2 confirmed by peer review.

- fn_12951 UIRPImageWnd2::SetImage: logic confirmed by peer review
- fn_12966 UIStaticText_LF::SetText: logic confirmed by peer review

Peer-reviewed-by: ragnarok-clanker, alisonrag, System4z
Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes).
2026-10-30 20:58:52 +00:00

22 lines
614 B
C++

#include "UI/Window/UIRPImageWnd2.h"
// OFFSET: 0x0094EAF0
// FUNCTION: fn_12912
void UIRPImageWnd2::Paint() {
if (this->m_drawImage != 1) {
return;
}
this->SetSolid(this->m_context->primitives, this->geometry.width, this->geometry.height, 0);
for (int i = 0; i < this->m_imageCount; ++i) {
this->DrawNamed(this->m_context->primitives, 0, 0, this->m_imageName, 0xFFFFFFFF, 0, 0);
}
}
// OFFSET: 0x00951470
// FUNCTION: fn_12951
void UIRPImageWnd2::SetImage(std::string imageName, int imageCount) {
this->m_imageName = imageName;
this->m_imageCount = imageCount;
this->m_drawImage = 1;
}