Skip to content

Commit

Permalink
make infowindow npcinteract thing debug only
Browse files Browse the repository at this point in the history
  • Loading branch information
DubbleClick committed Jun 16, 2024
1 parent e4e4715 commit 92513d3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 1 addition & 3 deletions GWToolboxdll/Modules/ChatCommands.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
#include <GWCA/Managers/AgentMgr.h>
#include <GWCA/Managers/CameraMgr.h>
#include <GWCA/Managers/MemoryMgr.h>
#include <GWCA/Managers/QuestMgr.h>
#include <GWCA/Managers/PlayerMgr.h>
#include <GWCA/Managers/SkillbarMgr.h>
#include <GWCA/Managers/FriendListMgr.h>
Expand All @@ -43,7 +44,6 @@
#include <Logger.h>

#include <Modules/ChatCommands.h>
#include <Modules/ObserverModule.h>
#include <Modules/GameSettings.h>
#include <Modules/ChatSettings.h>
#include <Modules/InventoryManager.h>
Expand All @@ -56,8 +56,6 @@
#include <Modules/HallOfMonumentsModule.h>
#include <Modules/DialogModule.h>
#include <Modules/Resources.h>
#include <GWCA/Managers/QuestMgr.h>
#include <Widgets/BondsWidget.h>

constexpr auto CMDTITLE_KEEP_CURRENT = 0xfffe;
constexpr auto CMDTITLE_REMOVE_CURRENT = 0xffff;
Expand Down
3 changes: 2 additions & 1 deletion GWToolboxdll/Windows/InfoWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -953,6 +953,7 @@ namespace {
[[maybe_unused]] const GW::Chat::ChatBuffer* log = GW::Chat::GetChatLog();
[[maybe_unused]] const GW::AreaInfo* ai = GW::Map::GetMapInfo(GW::Map::GetMapID());

#ifdef _DEBUG
const auto frame = GW::UI::GetFrameByLabel(L"NPCInteract");
if (frame && frame->IsVisible()) {
auto dialog_buttons_frame = GW::UI::GetChildFrame(frame, 2); // Scrollable frame
Expand All @@ -972,8 +973,8 @@ namespace {
draw_list->AddText({ top_left.x, top_left.y }, IM_COL32_WHITE, label.c_str());
}
}

}
#endif
}
}

Expand Down

0 comments on commit 92513d3

Please sign in to comment.