Decompile 2 functions in Source/UI/Window/UIWindowMgr.cpp, Source/UI/Window/UIWindowMgr.h, ...
Batch #7991 by eAthena: 0 byte-identical, 2 confirmed by peer review. - fn_17127 UIWindowMgr::RefreshFrameSkins: logic confirmed by peer review - fn_24159 SerializeMessengerMembers: logic confirmed by peer review Peer-reviewed-by: Yommy, pedrao 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
fb7054eca8
commit
33e6e1fc77
4 changed files with 29 additions and 0 deletions
|
|
@ -46,6 +46,8 @@
|
|||
#include <new>
|
||||
#include <timeapi.h>
|
||||
#include "Render/Textures/Surface.h"
|
||||
#include "UI/FrameSkin.h"
|
||||
#include "UI/Window/UIRegisterMgr.h"
|
||||
namespace {
|
||||
#pragma pack(push, 1)
|
||||
struct AddFriendPacket {
|
||||
|
|
@ -850,6 +852,20 @@ void UIWindowMgr::AddWhisperName(const char* name) {
|
|||
}
|
||||
}
|
||||
|
||||
// OFFSET: 0x00A8BB20
|
||||
// FUNCTION: fn_17127
|
||||
void UIWindowMgr::RefreshFrameSkins() {
|
||||
for (UIWindow* window : this->rendered) {
|
||||
if (CUIRegisterMgr::s_instance == nullptr) {
|
||||
CUIRegisterMgr::s_instance = new (std::nothrow) CUIRegisterMgr;
|
||||
}
|
||||
std::map<int, int>& entries = CUIRegisterMgr::s_instance->entries;
|
||||
if (entries.find(window->geometry.id) != entries.end()) {
|
||||
static_cast<CUIFrameWnd*>(window)->RefreshSkinColors();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// OFFSET: 0x00A8B840
|
||||
// FUNCTION: fn_17124
|
||||
void UIWindowMgr::RegisterNamedWindow(std::string name, UIWindow* window) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue