mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-05-03 00:03:50 +00:00
feat: add bid status indicators to auction house UI
Show [Winning] (green) or [Outbid] (red) labels on the Bids tab based on bidderGuid vs player GUID comparison. Show [Bid] (gold) indicator on the seller's Auctions tab when someone has placed a bid on their listing. Improves auction house usability by making bid status visible at a glance.
This commit is contained in:
parent
fb7b2b5390
commit
e033efc998
1 changed files with 14 additions and 0 deletions
|
|
@ -22382,6 +22382,15 @@ void GameScreen::renderAuctionHouseWindow(game::GameHandler& gameHandler) {
|
||||||
ImGui::SameLine();
|
ImGui::SameLine();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
// High bidder indicator
|
||||||
|
bool isHighBidder = (a.bidderGuid != 0 && a.bidderGuid == gameHandler.getPlayerGuid());
|
||||||
|
if (isHighBidder) {
|
||||||
|
ImGui::TextColored(ImVec4(0.2f, 0.9f, 0.2f, 1.0f), "[Winning]");
|
||||||
|
ImGui::SameLine();
|
||||||
|
} else if (a.bidderGuid != 0) {
|
||||||
|
ImGui::TextColored(ImVec4(0.9f, 0.3f, 0.3f, 1.0f), "[Outbid]");
|
||||||
|
ImGui::SameLine();
|
||||||
|
}
|
||||||
ImGui::TextColored(bqc, "%s", name.c_str());
|
ImGui::TextColored(bqc, "%s", name.c_str());
|
||||||
// Tooltip and shift-click
|
// Tooltip and shift-click
|
||||||
if (ImGui::IsItemHovered() && info && info->valid)
|
if (ImGui::IsItemHovered() && info && info->valid)
|
||||||
|
|
@ -22457,6 +22466,11 @@ void GameScreen::renderAuctionHouseWindow(game::GameHandler& gameHandler) {
|
||||||
ImGui::SameLine();
|
ImGui::SameLine();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
// Bid activity indicator for seller
|
||||||
|
if (a.bidderGuid != 0) {
|
||||||
|
ImGui::TextColored(ImVec4(1.0f, 0.85f, 0.2f, 1.0f), "[Bid]");
|
||||||
|
ImGui::SameLine();
|
||||||
|
}
|
||||||
ImGui::TextColored(oqc, "%s", name.c_str());
|
ImGui::TextColored(oqc, "%s", name.c_str());
|
||||||
if (ImGui::IsItemHovered() && info && info->valid)
|
if (ImGui::IsItemHovered() && info && info->valid)
|
||||||
inventoryScreen.renderItemTooltip(*info);
|
inventoryScreen.renderItemTooltip(*info);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue