mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-03-22 23:30:14 +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));
|
||||
if (ImGui::IsItemHovered()) {
|
||||
ImGui::BeginTooltip();
|
||||
ImGui::TextColored(qc, "%s", name.c_str());
|
||||
if (att.stackCount > 1) ImGui::Text("Count: %u", att.stackCount);
|
||||
ImGui::EndTooltip();
|
||||
}
|
||||
if (ImGui::IsItemHovered() && info && info->valid)
|
||||
inventoryScreen.renderItemTooltip(*info);
|
||||
ImGui::SameLine();
|
||||
ImGui::TextColored(qc, "%s", name.c_str());
|
||||
ImGui::SameLine();
|
||||
|
|
@ -11272,12 +11268,8 @@ void GameScreen::renderGuildBankWindow(game::GameHandler& gameHandler) {
|
|||
if (ImGui::IsItemClicked(ImGuiMouseButton_Left)) {
|
||||
gameHandler.guildBankWithdrawItem(activeTab, item.slotId, 0xFF, 0);
|
||||
}
|
||||
if (ImGui::IsItemHovered()) {
|
||||
ImGui::BeginTooltip();
|
||||
ImGui::TextColored(qc, "%s", name.c_str());
|
||||
if (item.stackCount > 1) ImGui::Text("Count: %u", item.stackCount);
|
||||
ImGui::EndTooltip();
|
||||
}
|
||||
if (ImGui::IsItemHovered() && info && info->valid)
|
||||
inventoryScreen.renderItemTooltip(*info);
|
||||
}
|
||||
ImGui::PopID();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue