rodecomp/Source/UI/Quest/UIRenewQuestWnd.cpp
ragnarok-clanker 01e714c1b6 Decompile 5 functions in Source/UI/Quest/UIRenewQuestWnd.cpp, Source/UI/Quest/UIRenewQuestWnd.h
Batch #4289 by youko: 3 byte-identical, 2 confirmed by peer review.

- fn_09951 Nullsub255: byte-identical
- fn_09952 UIRecommededQuestScrollWnd::Slot15: byte-identical
- fn_09953 UIRecommededQuestScrollWnd::Paint: byte-identical
- fn_09954 UIRecommededQuestScrollWnd::Slot35: logic confirmed by peer review
- fn_09961 UIRenewDetailQuestInfoWnd::Slot25: logic confirmed by peer review

Peer-reviewed-by: willerthal, tayoba
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/Quest/UIRenewQuestWnd.cpp
2026-10-30 02:01:30 +00:00

67 lines
1.4 KiB
C++

#include "UI/Quest/UIRenewQuestWnd.h"
#include "Contents/MessageTable.h"
#include "Contents/RenewQuestMgr.h"
#include "Render/DeviceContext/DeviceContext.h"
#include "Render/Textures/Texture.h"
#include "Render/Textures/TextureCache.h"
#include "Resource/Bitmap/BitmapResource.h"
#include "Resource/ResourceMgr.h"
#include "Resource/TextureNames.h"
#include "UI/Buttons/UIButton.h"
#include "UI/UIStaticBitmap.h"
#include "Utility/Text/FormatString.h"
#include <cstddef>
#include <cstring>
// OFFSET: 0x007FB0C0
// FUNCTION: fn_09951
void Nullsub255() {}
// OFFSET: 0x007FB0D0
// FUNCTION: fn_09952
void UIRecommededQuestScrollWnd::Slot15(int, int) {
this->scrollBarWidth = 9;
}
// OFFSET: 0x007FB0E0
// FUNCTION: fn_09953
void UIRecommededQuestScrollWnd::Paint() {
this->ClearSurface(0xFFFF00FF);
if (this->parent) {
this->parent->Invalidate();
}
}
// OFFSET: 0x007FB100
// FUNCTION: fn_09954
void UIRecommededQuestScrollWnd::Slot35(int delta) {
if (this->wheelScroll == 1) {
if (delta < 0) {
this->SendMsg(this->scrollBar, 7, 15, 0, 0, 0);
return;
}
this->SendMsg(this->scrollBar, 7, -15, 0, 0, 0);
}
}
// OFFSET: 0x007FB860
// OFFSET: 0x007FBAD0
// FUNCTION: fn_09961
void UIRenewDetailQuestInfoWnd::Slot25(int x, int y) {
if (y < 17) {
UIFrameWnd::Slot25(x, y);
}
}
// OFFSET: 0x007FBFD0
// OFFSET: 0x007FC870
// OFFSET: 0x007FC9B0
// OFFSET: 0x007FCD80
// OFFSET: 0x007FCDB0