Decompile 2 functions in Source/UI/Shortcuts/ShortcutCooldowns.cpp, Source/UI/Window/UIRebirthWnd.h, ...

Batch #1768 by ragnarok-clanker: 0 byte-identical, 2 confirmed by peer review.

- fn_12673 UIRebirthWnd::Paint: logic confirmed by peer review
- fn_12676 UISeekPartyMBWnd::Paint: logic confirmed by peer review

Reviewed-by: ragnarok-clanker
This commit is contained in:
ragnarok-clanker 2026-10-28 22:10:51 +00:00
commit 013f1a4dd5
3 changed files with 65 additions and 0 deletions

View file

@ -1,4 +1,11 @@
#include "Client/Session.h" #include "Client/Session.h"
#include "Resource/Bitmap/BitmapResource.h"
#include "Resource/ResourceMgr.h"
#include "Resource/SkinPalette.h"
#include "Resource/TextureNames.h"
#include "UI/Buttons/UIButton.h"
#include "UI/Window/UIRebirthWnd.h"
#include "UI/Window/UISeekPartyMBWnd.h"
#include "UI/Shortcuts/ShortcutCooldowns.h" #include "UI/Shortcuts/ShortcutCooldowns.h"
#include <algorithm> #include <algorithm>
@ -204,3 +211,32 @@ void ShortcutCooldowns::Paint(
++entry; ++entry;
} }
} }
// OFFSET: 0x0092DDE0
// FUNCTION: fn_12673
void UIRebirthWnd::Paint() {
auto* background = static_cast<CBitmapRes*>(ResourceMgr::Instance().Load(Resolve("유저인터페이스\\win_msgbox1.bmp")));
this->DrawBitmap(0, 0, &background->image, false);
}
// OFFSET: 0x0092E230
// FUNCTION: fn_12676
void UISeekPartyMBWnd::Paint() {
auto& controls = *this->m_controls;
this->DrawTitleBar(controls.fonts, controls.locale, true, "", 0);
if (this->m_minimized) {
return;
}
unsigned red;
unsigned green;
unsigned blue;
SkinPaletteChannels(ResourceMgr::Instance(), 2, 2, red, green, blue);
this->FillRegion(0, 17, this->geometry.width, this->geometry.height - 38, RGB(red, green, blue));
const RECT outer = {50, 95, 310, 293};
const RECT inner = {51, 96, 309, 292};
this->FillSurface(0, &outer);
this->FillSurface(0xF0F0F0, &inner);
this->DrawButtonBar(2, 0, 1);
}

View file

@ -0,0 +1,11 @@
#ifndef RAGNAROK_SOURCE_UI_WINDOW_UIREBIRTHWND_H
#define RAGNAROK_SOURCE_UI_WINDOW_UIREBIRTHWND_H
#include "UI/Window/UIFrameWnd.h"
class UIRebirthWnd : public UIFrameWnd {
public:
void Paint() override;
};
#endif

View file

@ -0,0 +1,18 @@
#ifndef RAGNAROK_SOURCE_UI_WINDOW_UISEEKPARTYMBWND_H
#define RAGNAROK_SOURCE_UI_WINDOW_UISEEKPARTYMBWND_H
#include "UI/Window/UIFrameWnd.h"
struct UIButtonContext;
class UISeekPartyMBWnd : public UIFrameWnd {
public:
void Paint() override;
protected:
/* 00BC */ unsigned char unknown_00BC[0xAC];
/* 0168 */ unsigned char m_minimized;
UIButtonContext* m_controls;
};
#endif