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
40 lines
881 B
C++
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
|