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
101 lines
1.9 KiB
C++
101 lines
1.9 KiB
C++
#include "Client/Replay.h"
|
|
#include "Contents/Configuration/ServiceOptions.h"
|
|
#include "UI/Window/UIWindow.h"
|
|
#include "UI/Window/UIWindowMgr.h"
|
|
#include "UI/Window/UIWindowMgr.inl"
|
|
|
|
// OFFSET: 0x00AAA310
|
|
// FUNCTION: fn_17269
|
|
bool UIWindowMgr::ShowWindowById(int id, int visible) {
|
|
switch (id) {
|
|
case 1: {
|
|
if (g_replayAnimationScaling && !Replay::Instance().header.options.recordRestricted) {
|
|
return false;
|
|
}
|
|
|
|
this->unknown_003C = visible;
|
|
|
|
if (!this->window_01C8) {
|
|
g_windowMgr.EnsureWindow(1);
|
|
}
|
|
|
|
this->window_01C8->Show(visible);
|
|
UIWindow* window = this->window_01C8;
|
|
|
|
if (visible == 0) {
|
|
window->Slot11();
|
|
return true;
|
|
}
|
|
|
|
g_windowMgr.Promote(window);
|
|
return true;
|
|
}
|
|
|
|
case 15:
|
|
g_windowMgr.EnsureWindow(15);
|
|
|
|
if (this->window_01EC->geometry.visible != visible) {
|
|
this->window_01EC->Show(visible);
|
|
}
|
|
|
|
if (visible != 0) {
|
|
g_windowMgr.Promote(this->window_01EC);
|
|
}
|
|
|
|
return false;
|
|
|
|
case 36:
|
|
return this->ShowShortcutWindow(visible);
|
|
|
|
case 46: {
|
|
this->unknown_0048 = visible;
|
|
|
|
if (!this->window_0230) {
|
|
if (visible == 0) {
|
|
return true;
|
|
}
|
|
|
|
g_windowMgr.EnsureWindow(46);
|
|
|
|
if (!this->window_0230) {
|
|
return true;
|
|
}
|
|
}
|
|
|
|
this->window_0230->Show(visible);
|
|
UIWindow* window = this->window_0230;
|
|
|
|
if (visible == 0) {
|
|
window->Slot11();
|
|
return true;
|
|
}
|
|
|
|
g_windowMgr.Promote(window);
|
|
return true;
|
|
}
|
|
|
|
case 273:
|
|
g_windowMgr.LookupWindow(273)->Show(visible);
|
|
return true;
|
|
|
|
case 276:
|
|
this->visible_276 = visible;
|
|
|
|
if (!this->window_4F1E4) {
|
|
if (visible == 0) {
|
|
return true;
|
|
}
|
|
|
|
g_windowMgr.EnsureWindow(276);
|
|
|
|
if (!this->window_4F1E4) {
|
|
return true;
|
|
}
|
|
}
|
|
|
|
this->window_4F1E4->Show(visible);
|
|
return true;
|
|
}
|
|
|
|
return false;
|
|
}
|