Skip to content

Commit

Permalink
reorder armory to match ingame order
Browse files Browse the repository at this point in the history
  • Loading branch information
DubbleClick committed Apr 3, 2024
1 parent 3508771 commit 8bb2cf6
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions GWToolboxdll/Windows/ArmoryWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -898,10 +898,11 @@ void ArmoryWindow::Draw(IDirect3DDevice9*)
if (ImGui::MyCombo("##filter", "All", (int*)&current_campaign, armor_filter_array_getter, nullptr, 6)) {
UpdateArmorsFilter();
}
for (size_t slot = 0; slot < _countof(gwarmory_window_pieces); slot++) {
if (!IsEquipmentSlotSupportedByArmory(static_cast<ItemSlot>(slot)))
const auto order = {Headpiece, Chestpiece, Leggings, Boots, CostumeHead, CostumeBody};
for (const auto slot : order) {
if (!IsEquipmentSlotSupportedByArmory(slot))
continue;
if (DrawArmorPieceNew(static_cast<ItemSlot>(slot))) {
if (DrawArmorPieceNew(slot)) {
SetArmorItem(&gwarmory_window_pieces[slot]);
}
}
Expand Down

0 comments on commit 8bb2cf6

Please sign in to comment.