feat: add Heroic and Unique-Equipped indicators to chat link tooltips

Chat item link tooltips now show "Heroic" (green) for items with
ITEM_FLAG_HEROIC_TOOLTIP (0x8) and "Unique-Equipped" for items with
ITEM_FLAG_UNIQUE_EQUIPPABLE (0x1000000), matching InventoryScreen.
"Unique" text is now gold-colored to match as well.
This commit is contained in:
Kelsi 2026-03-17 16:56:37 -07:00
parent cb99dbaea4
commit 1e80e294f0

View file

@ -1382,6 +1382,12 @@ void GameScreen::renderChatWindow(game::GameHandler& gameHandler) {
}
ImGui::TextColored(qColor, "%s", info->name.c_str());
// Heroic indicator (green, matches WoW tooltip style)
constexpr uint32_t kFlagHeroic = 0x8;
constexpr uint32_t kFlagUniqueEquipped = 0x1000000;
if (info->itemFlags & kFlagHeroic)
ImGui::TextColored(ImVec4(0.0f, 0.8f, 0.0f, 1.0f), "Heroic");
// Bind type (appears right under name in WoW)
switch (info->bindType) {
case 1: ImGui::TextDisabled("Binds when picked up"); break;
@ -1389,9 +1395,11 @@ void GameScreen::renderChatWindow(game::GameHandler& gameHandler) {
case 3: ImGui::TextDisabled("Binds when used"); break;
case 4: ImGui::TextDisabled("Quest Item"); break;
}
// Unique
// Unique / Unique-Equipped
if (info->maxCount == 1)
ImGui::TextDisabled("Unique");
ImGui::TextColored(ImVec4(1.0f, 0.82f, 0.0f, 1.0f), "Unique");
else if (info->itemFlags & kFlagUniqueEquipped)
ImGui::TextColored(ImVec4(1.0f, 0.82f, 0.0f, 1.0f), "Unique-Equipped");
// Slot type
if (info->inventoryType > 0) {