Skip to content
Prev Previous commit
Next Next commit
tweak: unpause container and barter menus
  • Loading branch information
RobbeBryssinck committed Apr 14, 2022
commit e2835c7ae18ffeec82418b0a949bbc57898c536f
1 change: 1 addition & 0 deletions Code/client/Games/Skyrim/Interface/UI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ static void UnfreezeMenu(IMenu* apEntry)

static constexpr const char* kAllowList[] = {
"Console", "TweenMenu", "MagicMenu", "StatsMenu", "InventoryMenu", "MessageBoxMenu",
"ContainerMenu", "BarterMenu"
//"MapMenu", // MapMenu is disabled till we find a proper fix for first person.
//"Journal Menu", // Journal menu, aka pause menu, is disabled until we find a fix for manual save crashing while unpaused.
};
Expand Down
15 changes: 13 additions & 2 deletions Code/client/Services/Debug/TestService.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@

#include <Messages/RequestRespawn.h>

#include <Interface/UI.h>
#include <Interface/IMenu.h>

#if TP_SKYRIM64
#include <EquipManager.h>
#include <Games/Skyrim/BSGraphics/BSGraphicsRenderer.h>
Expand Down Expand Up @@ -134,8 +137,6 @@ void TestService::OnUpdate(const UpdateEvent& acUpdateEvent) noexcept
if (!s_f8Pressed)
{
s_f8Pressed = true;

PlaceActorInWorld();
}
}
else
Expand Down Expand Up @@ -210,6 +211,16 @@ void TestService::OnDraw() noexcept
if (ImGui::BeginMenu("UI"))
{
ImGui::MenuItem("Show build tag", nullptr, &m_showBuildTag);
if (ImGui::Button("Log all open windows"))
{
UI* pUI = UI::Get();
for (const auto& it : pUI->menuMap)
{
if (pUI->GetMenuOpen(it.key))
spdlog::info("{}", it.key.AsAscii());
}
}

if (ImGui::Button("Close all menus"))
{
UI::Get()->CloseAllMenus();
Expand Down