mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-04-17 17:43:52 +00:00
Use rich item tooltips in mail attachments and guild bank slots
This commit is contained in:
parent
4394f93a17
commit
e34357a0a4
1 changed files with 4 additions and 12 deletions
|
|
@ -10802,12 +10802,8 @@ void GameScreen::renderMailWindow(game::GameHandler& gameHandler) {
|
||||||
}
|
}
|
||||||
|
|
||||||
ImGui::InvisibleButton("##mailatt", ImVec2(MAIL_SLOT, MAIL_SLOT));
|
ImGui::InvisibleButton("##mailatt", ImVec2(MAIL_SLOT, MAIL_SLOT));
|
||||||
if (ImGui::IsItemHovered()) {
|
if (ImGui::IsItemHovered() && info && info->valid)
|
||||||
ImGui::BeginTooltip();
|
inventoryScreen.renderItemTooltip(*info);
|
||||||
ImGui::TextColored(qc, "%s", name.c_str());
|
|
||||||
if (att.stackCount > 1) ImGui::Text("Count: %u", att.stackCount);
|
|
||||||
ImGui::EndTooltip();
|
|
||||||
}
|
|
||||||
ImGui::SameLine();
|
ImGui::SameLine();
|
||||||
ImGui::TextColored(qc, "%s", name.c_str());
|
ImGui::TextColored(qc, "%s", name.c_str());
|
||||||
ImGui::SameLine();
|
ImGui::SameLine();
|
||||||
|
|
@ -11272,12 +11268,8 @@ void GameScreen::renderGuildBankWindow(game::GameHandler& gameHandler) {
|
||||||
if (ImGui::IsItemClicked(ImGuiMouseButton_Left)) {
|
if (ImGui::IsItemClicked(ImGuiMouseButton_Left)) {
|
||||||
gameHandler.guildBankWithdrawItem(activeTab, item.slotId, 0xFF, 0);
|
gameHandler.guildBankWithdrawItem(activeTab, item.slotId, 0xFF, 0);
|
||||||
}
|
}
|
||||||
if (ImGui::IsItemHovered()) {
|
if (ImGui::IsItemHovered() && info && info->valid)
|
||||||
ImGui::BeginTooltip();
|
inventoryScreen.renderItemTooltip(*info);
|
||||||
ImGui::TextColored(qc, "%s", name.c_str());
|
|
||||||
if (item.stackCount > 1) ImGui::Text("Count: %u", item.stackCount);
|
|
||||||
ImGui::EndTooltip();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
ImGui::PopID();
|
ImGui::PopID();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue