Decompile 2 functions in Source/UI/Quest/UIRenewQuestUI.cpp, Source/UI/Quest/UIRenewQuestUI.h
Batch #3632 by superintelligence: 1 byte-identical, 1 confirmed by peer review. - fn_16431 CUIListBoxEx<RenewQuestUI::CUIQuestItem,unsigned long>::ClearItems: byte-identical - fn_16432 CUIRenewQuestUI::Slot53: logic confirmed by peer review Peer-reviewed-by: eAthena, ntrl, meitogi Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes).
This commit is contained in:
parent
1d69b95860
commit
5bd823be42
2 changed files with 29 additions and 1 deletions
|
|
@ -1,4 +1,5 @@
|
|||
#include "UI/Quest/UIRenewQuestUI.h"
|
||||
#include "Render/Renderer.h"
|
||||
#include "Utility/Cipher/XorBytes.h"
|
||||
|
||||
#include <cstddef>
|
||||
|
|
@ -580,3 +581,28 @@ void RenewQuestUI::CUIQuestItem::Slot48() {
|
|||
UIWindow::Move(this->baseX, this->baseY);
|
||||
this->Invalidate();
|
||||
}
|
||||
|
||||
// OFFSET: 0x00A5C170
|
||||
// FUNCTION: fn_16431
|
||||
template <>
|
||||
void CUIListBoxEx<RenewQuestUI::CUIQuestItem, unsigned long>::ClearItems() {
|
||||
for (RenewQuestUI::CUIQuestItem* item : this->items) {
|
||||
this->RemoveChild(item, 1);
|
||||
}
|
||||
|
||||
this->items.clear();
|
||||
this->selected = static_cast<unsigned int>(-1);
|
||||
}
|
||||
|
||||
// OFFSET: 0x00A5C200
|
||||
// FUNCTION: fn_16432
|
||||
void CUIRenewQuestUI::Slot53(int value) {
|
||||
this->unknown_00B4 = 1;
|
||||
this->m_resolveSkin = true;
|
||||
this->Resize(381, 466);
|
||||
this->Move(
|
||||
g_renderer->viewport.centerX - this->geometry.width / 2, g_renderer->viewport.centerY - this->geometry.height / 2
|
||||
);
|
||||
this->Slot15(this->geometry.width, this->geometry.height);
|
||||
this->Slot16();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,6 +1,7 @@
|
|||
#ifndef RAGNAROK_SOURCE_UI_QUEST_UIRENEWQUESTUI_H
|
||||
#define RAGNAROK_SOURCE_UI_QUEST_UIRENEWQUESTUI_H
|
||||
|
||||
#include "UI/FrameSkin.h"
|
||||
#include "UI/Lists/UIListBoxTemplate.h"
|
||||
#include "UI/Window/UIControl.h"
|
||||
#include "UI/Window/UIFrameWnd.h"
|
||||
|
|
@ -27,9 +28,10 @@ public:
|
|||
};
|
||||
}
|
||||
|
||||
class CUIRenewQuestUI : public UIFrameWnd {
|
||||
class CUIRenewQuestUI : public CUIFrameWnd {
|
||||
public:
|
||||
void Paint() override;
|
||||
virtual void Slot53(int value);
|
||||
};
|
||||
|
||||
#if defined(_WIN32) && !defined(_WIN64)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue