rodecomp/Source/UI/Window/UIWindowMgr.inl
ragnarok-clanker bd0ade90cd Maintenance: [forced, user-approved] Family G27 (resubmit of 10254 rebased on e235d90a; only conflict was the AsyncWorkMgr.h forward
Batch #10259 by ragnarok-clanker: forced by an admin (1 lower score(s), 11 changed function(s)); checked with 508 compiled unit(s), including every includer of Source/Contents/Async/AsyncWorkMgr.h, Source/Contents/Skills/SkillLevelRegistry.h, Source/Contents/UserData/CharacterLinkedUserDataLoadAsyncWork.h, Source/Contents/UserData/CharacterLinkedUserDataMgr.h, Source/UI/Window/UIWindowMgr.h, Source/UI/Window/UIWindowMgr.inl, Source/Contents/Skills/SkillLevelConfig.h, Source/Contents/UserData/CharacterConfigLoad.h, Source/UI/Shortcuts/NormalItemSlotLoad.h.
Deletes: Source/Contents/Skills/SkillLevelConfig.h, Source/Contents/UserData/CharacterConfigLoad.h, Source/UI/Shortcuts/NormalItemSlotLoad.h
2026-11-03 13:32:00 +00:00

40 lines
881 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"
// INLINED
inline bool UIWindowMgr::ShowShortcutWindow(int value) {
if (g_replayAnimationScaling && !Replay::Instance().header.options.unknown_0007) {
return false;
}
this->m_normalItemSlotWindow.show = value;
g_windowMgr.EnsureWindow(36);
this->window_01E8->Show(value);
if (value != 0) {
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) {
g_windowMgr.Promote(companion);
}
}
return true;
}
#endif