Skip to content

Commit

Permalink
fix compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
DubbleClick committed Jun 16, 2024
1 parent 210d1f6 commit e4e4715
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 24 deletions.
2 changes: 1 addition & 1 deletion Dependencies/GWCA
Submodule GWCA updated from bbc752 to f0066d
7 changes: 0 additions & 7 deletions GWToolboxdll/Widgets/EffectsMonitorWidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,12 @@

#include <GWCA/Context/WorldContext.h>

#include <GWCA/Packets/StoC.h>

#include <GWCA/GameEntities/Skill.h>

#include <GWCA/Managers/AgentMgr.h>
#include <GWCA/Managers/EffectMgr.h>
#include <GWCA/Managers/SkillbarMgr.h>
#include <GWCA/Managers/MapMgr.h>
#include <GWCA/Managers/UIMgr.h>
#include <GWCA/Managers/StoCMgr.h>
#include <GWCA/Managers/GameThreadMgr.h>
#include <GWCA/Managers/RenderMgr.h>
#include <GWCA/Managers/MemoryMgr.h>

#include <Utils/GuiUtils.h>
#include <Color.h>
Expand Down
24 changes: 8 additions & 16 deletions GWToolboxdll/Windows/InfoWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -960,28 +960,20 @@ namespace {
dialog_buttons_frame = GW::UI::GetChildFrame(dialog_buttons_frame, 0);
dialog_buttons_frame = GW::UI::GetChildFrame(dialog_buttons_frame, 1);
if (dialog_buttons_frame) {
auto relation = dialog_buttons_frame->relation;
auto& siblings = dialog_buttons_frame->relation.siblings;
siblings.
do {
const auto frame = sibling->Next();
if (!frame) break;
if (frame == relation) break;
sibling = sibling->Next();

}

for(auto button_frame : siblings){
const auto button_frame = (*it)->GetFrame();
for (auto& sibling : dialog_buttons_frame->relation.siblings) {
const auto button_frame = sibling.GetFrame();
if (button_frame->child_offset_id != 0x1)
continue; // Not a button frame
const auto top_left = button_frame->position.GetTopLeftOnScreen(frame);
const auto bottom_right = button_frame->position.GetBottomRightOnScreen(frame);
ImGui::GetBackgroundDrawList()->AddRect({ top_left.x,top_left.y }, { bottom_right.x,bottom_right.y }, IM_COL32_WHITE);
const auto label = std::to_string(button_frame->field100_0x1a8);
const auto draw_list = ImGui::GetBackgroundDrawList();
draw_list->AddRect({ top_left.x, top_left.y }, { bottom_right.x, bottom_right.y }, IM_COL32_WHITE);
draw_list->AddText({ top_left.x, top_left.y }, IM_COL32_WHITE, label.c_str());
}
}

}

(frame);
}
}

Expand Down

0 comments on commit e4e4715

Please sign in to comment.