rodecomp/Source/UI/Window/WindowPolicy.cpp
ragnarok-clanker de0e8b0464 Decompile fn_11547 (UIComboBoxV2Wnd::SendMsg)
Batch #13917 by SapitoSucio: 0 byte-identical, 1 confirmed by peer review.

- fn_11547 UIComboBoxV2Wnd::SendMsg: logic confirmed by peer review

Peer-reviewed-by: eAthena, Yommy
Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes).
2026-11-07 00:48:16 +00:00

31 lines
647 B
C++

#include "Client/Replay.h"
#include "UI/Window/UIWindowMgr.h"
#include "UI/Window/WindowPolicy.h"
// OFFSET: 0x00A970E0
// FUNCTION: fn_17200
int UIWindowMgr::WindowPolicy(int action, unsigned int id) const {
if (action == 3) {
if (g_replayAnimationScaling == 0) {
return 1;
}
} else {
if (action >= 8) {
return 0;
}
if (action < 0) {
return 0;
}
}
if (id <= 10040) {
return this->policy[id].actions[action];
}
return 0;
}
// INLINED
int WindowPolicy(const int* table, bool restricted, unsigned action, unsigned id) {
return g_windowMgr.WindowPolicy(static_cast<int>(action), id);
}