rodecomp/Source/Client/Browser/BrowserCursor.cpp
ragnarok-clanker 86a5142dbd Decompile 15 functions in Source/Client/Browser/BrowserCursor.cpp, Source/Client/Input/Language.cpp, ...
Batch #12875 by KWDev: 15 byte-identical, 0 confirmed by peer review.

- fn_03576 UINavigationV4Wnd::RefreshLayout: byte-identical
- fn_05441 CRenewQuestMgr::GetIconTooltip: byte-identical
- fn_10202 UIRuneSetReWard::Slot31: byte-identical
- fn_13844 UITagButton::Slot31: byte-identical
- fn_14354 CUIListBox<AdventureGuide::CUISubTab>::SelectItem: byte-identical
- fn_14355 CUIListBox<AdventureGuide::CUITab>::SelectItem: byte-identical
- fn_14417 CUIDropDownBox::HasChild: byte-identical
- fn_14420 CUIDropDownBox::Attach: byte-identical (already on main)
- fn_14685 CUITab::Select: byte-identical
- fn_16497 CQuestItemSelector::SetHighlighted: byte-identical
- fn_17063 ContainsValue: byte-identical
- fn_17764 CLanguageBase::Paste: byte-identical
- fn_18377 GetMessageString: byte-identical
- fn_19310 Replay::Cipher: byte-identical
- fn_45438 CWebBrowser::PollCursor: byte-identical

Merged automatically: every function is byte-identical to the original.
2026-11-06 02:20:45 +00:00

39 lines
843 B
C++

#include "Client/Application/ApplicationWindow.h"
#include "Client/Browser/WebBrowser.h"
#include "Client/Input/Mouse.h"
// OFFSET: 0x00AB32E0
// FUNCTION: fn_45439
void CWebBrowser::SetCursorState(int value) {
if (this->cursorState == value) {
return;
}
if (value != 0) {
SetCursor(LoadCursorA(nullptr, reinterpret_cast<LPCSTR>(IDC_ARROW)));
g_mouse.Center();
g_mouse.SetX(-100);
g_mouse.SetY(-100);
} else {
SetCursor(nullptr);
}
g_mouse.Reset();
ShowCursor(value);
this->cursorState = value;
}
// OFFSET: 0x00AB3230
// FUNCTION: fn_45438
void CWebBrowser::PollCursor() {
POINT point;
GetCursorPos(&point);
if (hWnd != WindowFromPoint(point)) {
if (this->cursorState != 1) {
this->SetCursorState(1);
}
} else if (this->cursorState != 0) {
this->SetCursorState(0);
}
}