rodecomp/Source/UI/Window/UIRPImageWnd2.cpp
ragnarok-clanker b6436d5059 Maintenance: [forced, user-approved] Family F1: UIWindowContext field reads replaced by the real objects. primitives->g_renderer->pri
Batch #10209 by ragnarok-clanker: forced by an admin (36 lower score(s), 108 changed function(s)); checked with 561 compiled unit(s), including every includer of Source/Client/Mode/CMode.h, Source/UI/Window/UIWindow.h, Source/UI/Window/UIWindowMgr.h.
2026-11-02 23:01:18 +00:00

28 lines
778 B
C++

#include "Render/Renderer.h"
#include "UI/Window/UIRPImageWnd2.h"
// OFFSET: 0x0094EAF0
// FUNCTION: fn_12912
void UIRPImageWnd2::Paint() {
if (this->m_drawImage != 1) {
return;
}
this->SetSolid(g_renderer->primitives, this->geometry.width, this->geometry.height, 0);
for (int i = 0; i < this->m_imageCount; ++i) {
this->DrawNamed(g_renderer->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;
}
// OFFSET: 0x00946F20
// FUNCTION: fn_12856
UIRPImageWnd2::UIRPImageWnd2(UIWindowContext& windows) : UIFrameWnd(windows, 1), m_drawImage(0) {
}