fix: show macro ID in action bar tooltip and context menu header

Macro slots stored from SMSG_ACTION_BUTTONS had no tooltip and no context
menu header — hovering or right-clicking gave a blank result.  Add an
"else if MACRO" branch to both the tooltip and the popup-context-item so
that "Macro #N" is displayed in both places.  Clearing via right-click
still works via the existing "Clear Slot" item which was already outside
the type branches.
This commit is contained in:
Kelsi 2026-03-18 01:42:07 -07:00
parent 7a0c7241ba
commit 36158ae3e3

View file

@ -7511,6 +7511,8 @@ void GameScreen::renderActionBar(game::GameHandler& gameHandler) {
if (ImGui::MenuItem("Use")) {
gameHandler.useItemById(slot.id);
}
} else if (slot.type == game::ActionBarSlot::MACRO) {
ImGui::TextDisabled("Macro #%u", slot.id);
}
ImGui::Separator();
if (ImGui::MenuItem("Clear Slot")) {
@ -7569,6 +7571,10 @@ void GameScreen::renderActionBar(game::GameHandler& gameHandler) {
ImGui::TextColored(ImVec4(1.0f, 0.3f, 0.3f, 1.0f), "Cooldown: %.1f sec", cd);
}
ImGui::EndTooltip();
} else if (slot.type == game::ActionBarSlot::MACRO) {
ImGui::BeginTooltip();
ImGui::Text("Macro #%u", slot.id);
ImGui::EndTooltip();
} else if (slot.type == game::ActionBarSlot::ITEM) {
ImGui::BeginTooltip();
// Prefer full rich tooltip from ItemQueryResponseData (has stats, quality, set info)