Batch #15141 by ragnarok-clanker: no function's compiled code changes; checked with 537 compiled unit(s), including every includer of Source/Client/Input/LanguageTC.h, Source/Client/Mode/CGameMode.h, Source/Client/Mode/CLoginMode.h, Source/Client/Replay.h, Source/Client/Session.h, Source/Contents/AchievementMgr.h, Source/Contents/Actors/CharacterRender.h, Source/Contents/Actors/EffectActors.h, Source/Contents/Actors/GameActor.h, Source/Contents/Actors/Pc.h, Source/Contents/EnchantMgr.h, Source/Contents/GuildInfo.h, Source/Contents/Messenger/MessengerWindows.h, Source/Contents/Schedule/TimeScheduler.h, Source/Contents/Sound/SoundMgr.h, Source/Contents/SpriteLayerDrawing.h, Source/Contents/TableMng.h, Source/Contents/World/SkyBox.h, Source/UI/Chat/UINewChatWnd.h, Source/UI/Text/CreateLineInfo.h, Source/UI/UIGradeEnchantWnd.h, Source/UI/Window/UINewSelectCharWnd.h, Source/UI/Window/UINewSkillListWnd.h, Source/UI/Window/UIPetInfoWnd.h, Source/UI/Window/UIReplayRECControlWnd.h, Source/UI/Window/UIWindowMgr.h, Source/UI/Window/UIWindowMgr.inl.
40 lines
882 B
C++
40 lines
882 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.showItemSlots) {
|
|
return false;
|
|
}
|
|
|
|
this->m_normalItemSlotWindow.show = value;
|
|
g_windowMgr.EnsureWindow(36);
|
|
this->shortCutWnd->Show(value);
|
|
|
|
if (value != 0) {
|
|
g_windowMgr.Promote(this->shortCutWnd);
|
|
}
|
|
|
|
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
|