mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-03-23 07:40:14 +00:00
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:
parent
cb99dbaea4
commit
1e80e294f0
1 changed files with 10 additions and 2 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue