rodecomp/Source/Client/Mode/ModeCursor.cpp
ragnarok-clanker 11f900fb57 Decompile fn_17820 (CMode::CMode)
Batch #13071 by cremane: 1 byte-identical, 0 confirmed by peer review.

- fn_17820 CMode::CMode: byte-identical

Merged automatically: every function is byte-identical to the original.
2026-11-06 04:54:03 +00:00

36 lines
882 B
C++

#include "Client/Mode/CMode.h"
#include "UI/Window/UIWindowMgr.h"
#include <windows.h>
#include <timeapi.h>
// OFFSET: 0x00AD52D0
// FUNCTION: fn_17820
CMode::CMode() : screenshotName("") {
this->running = 1;
this->pendingCursorType = -1;
this->unknown_0018 = 1;
this->tooltip = nullptr;
this->tooltipTick = timeGetTime();
this->cursorAction = 0;
this->cursorActionFrame = 0;
this->cursorTick = timeGetTime();
this->unknown_0028 = 0;
this->screenshotRequested = 0;
this->cursorOffsetX = 0.0f;
this->cursorOffsetY = 0.0f;
this->fadeInRequested = 0;
}
// OFFSET: 0x00AD75E0
// FUNCTION: fn_17850
void CMode::SetCursorAction(int action) {
if (this->cursorAction == action) {
return;
}
this->cursorAction = action;
this->cursorActionFrame = 0;
this->cursorTick = timeGetTime();
g_windowMgr.SendNotice(15, this->cursorAction, 0, 0, 0, 0);
}