mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-03-23 07:40:14 +00:00
Pre-query action bar item information to avoid placeholder display
When items are placed on the action bar, pre-fetch their ItemDef information so the action bar displays the item name instead of a generic "Item" placeholder. This ensures item names are available when the action bar is rendered, consistent with the fix applied to quest reward items display. Calls queryItemInfo() when an item is assigned to an action bar slot.
This commit is contained in:
parent
68a379610e
commit
182b6686ac
1 changed files with 4 additions and 0 deletions
|
|
@ -13912,6 +13912,10 @@ void GameHandler::setActionBarSlot(int slot, ActionBarSlot::Type type, uint32_t
|
|||
if (slot < 0 || slot >= ACTION_BAR_SLOTS) return;
|
||||
actionBar[slot].type = type;
|
||||
actionBar[slot].id = id;
|
||||
// Pre-query item information so action bar displays item name instead of "Item" placeholder
|
||||
if (type == ActionBarSlot::ITEM && id != 0) {
|
||||
queryItemInfo(id, 0);
|
||||
}
|
||||
saveCharacterConfig();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue