mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-03-22 23:30:14 +00:00
Add Loot All button to loot window
This commit is contained in:
parent
2f1c9eb01b
commit
9a199e20b6
1 changed files with 9 additions and 0 deletions
|
|
@ -7455,6 +7455,15 @@ void GameScreen::renderLootWindow(game::GameHandler& gameHandler) {
|
|||
}
|
||||
|
||||
ImGui::Spacing();
|
||||
bool hasItems = !loot.items.empty();
|
||||
if (hasItems) {
|
||||
if (ImGui::Button("Loot All", ImVec2(-1, 0))) {
|
||||
for (const auto& item : loot.items) {
|
||||
gameHandler.lootItem(item.slotIndex);
|
||||
}
|
||||
}
|
||||
ImGui::Spacing();
|
||||
}
|
||||
if (ImGui::Button("Close", ImVec2(-1, 0))) {
|
||||
gameHandler.closeLoot();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue