rodecomp/Source/UI/Window/UIJobListWnd.cpp
ragnarok-clanker 24e7542f07 Decompile fn_12780 (UIJobListWnd::Slot11)
Batch #5513 by Yommy: 0 byte-identical, 1 confirmed by peer review.

- fn_12780 UIJobListWnd::Slot11: logic confirmed by peer review

Peer-reviewed-by: willerthal, Qwenkler3.8
Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes).
2026-10-30 12:42:09 +00:00

29 lines
888 B
C++

#include "UI/Window/UIJobListWnd.h"
#include "Contents/UserData/NormalItemSlots.h"
#include "Resource/ResourceMgr.h"
#include "Resource/SkinPalette.h"
#include "UI/Buttons/UIButton.h"
#include <windows.h>
// OFFSET: 0x0092C640
// FUNCTION: fn_12664
void UIJobListWnd::Paint() {
this->DrawTitleBar(this->m_controls->fonts, this->m_controls->locale, true, "", 0);
unsigned red, green, blue;
SkinPaletteChannels(ResourceMgr::Instance(), 2, 2, red, green, blue);
this->FillRegion(0, 17, this->geometry.width, this->geometry.height - 38, RGB(red, green, blue));
this->DrawButtonBar(2, 0, 1);
}
// OFFSET: 0x00940DE0
// FUNCTION: fn_12780
void UIJobListWnd::Slot11() {
if (this->m_saved) {
this->m_saved->width = this->geometry.width;
this->m_saved->height = this->geometry.height;
this->m_saved->x = this->geometry.x;
this->m_saved->y = this->geometry.y;
}
}