Batch #10231 by ragnarok-clanker: forced by an admin (5 lower score(s), 39 changed function(s)); checked with 495 compiled unit(s), including every includer of Source/Client/Mode/ModeTooltip.h, Source/UI/AdventureGuide/UIAdventureGuide.h, Source/UI/Lists/UIDropDownBox.h, Source/UI/Window/UIWindowMgr.h, Source/UI/Window/UIWindowMgr.inl, Source/UI/Window/WindowMouseHit.h, Source/UI/Window/WindowOrdering.h. Deletes: Source/UI/Window/WindowOrdering.h
40 lines
866 B
C++
40 lines
866 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->unknown_0758 = 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
|