mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-03-22 23:30:14 +00:00
feat: show random suffix names in AH bids and seller auction tabs
Extend random property name resolution to the Bids tab and Your Auctions (seller) tab. All three auction house tabs now display items with their full suffix names (e.g., "Gloves of the Monkey" instead of "Gloves").
This commit is contained in:
parent
a13dfff9a1
commit
bc4ff501e2
1 changed files with 10 additions and 0 deletions
|
|
@ -22504,6 +22504,11 @@ void GameScreen::renderAuctionHouseWindow(game::GameHandler& gameHandler) {
|
|||
const auto& a = results.auctions[bi];
|
||||
auto* info = gameHandler.getItemInfo(a.itemEntry);
|
||||
std::string name = info ? info->name : ("Item #" + std::to_string(a.itemEntry));
|
||||
if (a.randomPropertyId != 0) {
|
||||
std::string suffix = gameHandler.getRandomPropertyName(
|
||||
static_cast<int32_t>(a.randomPropertyId));
|
||||
if (!suffix.empty()) name += " " + suffix;
|
||||
}
|
||||
game::ItemQuality quality = info ? static_cast<game::ItemQuality>(info->quality) : game::ItemQuality::COMMON;
|
||||
ImVec4 bqc = InventoryScreen::getQualityColor(quality);
|
||||
|
||||
|
|
@ -22588,6 +22593,11 @@ void GameScreen::renderAuctionHouseWindow(game::GameHandler& gameHandler) {
|
|||
const auto& a = results.auctions[i];
|
||||
auto* info = gameHandler.getItemInfo(a.itemEntry);
|
||||
std::string name = info ? info->name : ("Item #" + std::to_string(a.itemEntry));
|
||||
if (a.randomPropertyId != 0) {
|
||||
std::string suffix = gameHandler.getRandomPropertyName(
|
||||
static_cast<int32_t>(a.randomPropertyId));
|
||||
if (!suffix.empty()) name += " " + suffix;
|
||||
}
|
||||
game::ItemQuality quality = info ? static_cast<game::ItemQuality>(info->quality) : game::ItemQuality::COMMON;
|
||||
|
||||
ImGui::TableNextRow();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue