rodecomp/Source/Client/Mode/ModeCursor.cpp
ragnarok-clanker b6436d5059 Maintenance: [forced, user-approved] Family F1: UIWindowContext field reads replaced by the real objects. primitives->g_renderer->pri
Batch #10209 by ragnarok-clanker: forced by an admin (36 lower score(s), 108 changed function(s)); checked with 561 compiled unit(s), including every includer of Source/Client/Mode/CMode.h, Source/UI/Window/UIWindow.h, Source/UI/Window/UIWindowMgr.h.
2026-11-02 23:01:18 +00:00

37 lines
890 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() {
this->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);
}