rodecomp/Source/UI/Window/UIWindowMgr.inl
ragnarok-clanker 33611655e5 Maintenance: [forced, user-approved] Family G17 (coordinator round-5 fixes). (1) ShortcutVisibility.h only held inline UIWindowMgr::S
Batch #10224 by ragnarok-clanker: forced by an admin (0 lower score(s), 2 changed function(s)); checked with 22 compiled unit(s), including every includer of Source/UI/Window/UIWindowMgr.inl, Source/UI/Shortcuts/ShortcutVisibility.h.
Deletes: Source/UI/Shortcuts/ShortcutVisibility.h
2026-11-03 09:09:57 +00:00

41 lines
974 B
C++

#ifndef RAGNAROK_SOURCE_UI_WINDOW_UIWINDOWMGR_INL
#define RAGNAROK_SOURCE_UI_WINDOW_UIWINDOWMGR_INL
#include "Client/Replay.h"
#include "Contents/Configuration/ServiceOptions.h"
#include "UI/Window/UIWindow.h"
#include "UI/Window/UIWindowMgr.h"
#include "UI/Window/WindowOrdering.h"
// INLINED
inline bool UIWindowMgr::ShowShortcutWindow(int value) {
if (g_replayAnimationScaling && !Replay::Instance().header.options.unknown_0007) {
return false;
}
this->unknown_0758 = value;
g_windowMgr.EnsureWindow(36);
this->window_01E8->Show(value);
if (value != 0) {
reinterpret_cast<WindowOrdering&>(g_windowMgr).Promote(this->window_01E8);
}
if (g_serviceOptions.Get(0x10E)) {
g_windowMgr.EnsureWindow(159);
}
UIWindow* companion = g_windowMgr.LookupWindow(159);
if (companion) {
companion->Show(value);
if (value != 0) {
reinterpret_cast<WindowOrdering&>(g_windowMgr).Promote(companion);
}
}
return true;
}
#endif