mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-03-23 07:40:14 +00:00
Use rich item tooltips in bank window slots
This commit is contained in:
parent
e34357a0a4
commit
95ac97a41c
1 changed files with 8 additions and 4 deletions
|
|
@ -11094,10 +11094,14 @@ void GameScreen::renderBankWindow(game::GameHandler& gameHandler) {
|
|||
|
||||
// Tooltip
|
||||
if (ImGui::IsItemHovered() && !isHolding) {
|
||||
ImGui::BeginTooltip();
|
||||
ImGui::TextColored(qc, "%s", item.name.c_str());
|
||||
if (item.stackCount > 1) ImGui::Text("Count: %u", item.stackCount);
|
||||
ImGui::EndTooltip();
|
||||
auto* info = gameHandler.getItemInfo(item.itemId);
|
||||
if (info && info->valid)
|
||||
inventoryScreen.renderItemTooltip(*info);
|
||||
else {
|
||||
ImGui::BeginTooltip();
|
||||
ImGui::TextColored(qc, "%s", item.name.c_str());
|
||||
ImGui::EndTooltip();
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue