Skip to content

Commit

Permalink
Pathfinding window added
Browse files Browse the repository at this point in the history
  • Loading branch information
3vcloud committed Dec 5, 2023
1 parent 2bf300e commit 50778c7
Show file tree
Hide file tree
Showing 8 changed files with 360 additions and 493 deletions.
4 changes: 2 additions & 2 deletions GWToolboxdll/Modules/ToolboxSettings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
#include <Windows/DoorMonitorWindow.h>
#include <Windows/StringDecoderWindow.h>
#include <Windows/SkillListingWindow.h>
#include <Windows/Pathfinder.h>
#include <Windows/PathfindingWindow.h>
#endif
#include <Windows/RerollWindow.h>
#include <Windows/ArmoryWindow.h>
Expand Down Expand Up @@ -209,7 +209,7 @@ void ToolboxSettings::LoadModules(ToolboxIni* ini)
GWToolbox::ToggleModule(StringDecoderWindow::Instance());
GWToolbox::ToggleModule(DoorMonitorWindow::Instance());
GWToolbox::ToggleModule(SkillListingWindow::Instance());
GWToolbox::ToggleModule(Pathfinder::Instance());
GWToolbox::ToggleModule(PathfindingWindow::Instance());
#endif
for (const auto& m : optional_modules) {
GWToolbox::ToggleModule(*m.toolbox_module, m.enabled);
Expand Down
5 changes: 5 additions & 0 deletions GWToolboxdll/Windows/InfoWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@
#include <GWCA/Utilities/Hooker.h>
#include <Modules/GwDatTextureModule.h>
#include <Utils/ToolboxUtils.h>
#include <GWCA/Context/MapContext.h>

namespace {
enum class Status {
Expand Down Expand Up @@ -883,6 +884,10 @@ void InfoWindow::Draw(IDirect3DDevice9*)
InfoField("Instance Info Type", "%d", GW::Map::GetMapTypeInstanceInfo(map_info->type)->request_instance_map_type);
InfoField("Flags", "0x%X", map_info->flags);
InfoField("Thumbnail ID", "%d", map_info->thumbnail_id);
const auto m = GW::GetMapContext();
if (m) {
InfoField("Map Boundaries", "%.0f, %.0f, %.0f, %.0f, %.0f", m->map_boundaries[0],m->map_boundaries[1],m->map_boundaries[2],m->map_boundaries[3],m->map_boundaries[4]);
}
GW::Vec2f pos = {static_cast<float>(map_info->x), static_cast<float>(map_info->y)};
InfoField("Map Pos", "%.2f, %.2f", pos.x, pos.y);
if (!pos.x) {
Expand Down
202 changes: 0 additions & 202 deletions GWToolboxdll/Windows/Pathfinder.cpp

This file was deleted.

25 changes: 0 additions & 25 deletions GWToolboxdll/Windows/Pathfinder.h

This file was deleted.

Loading

0 comments on commit 50778c7

Please sign in to comment.