From 6ffc0cec3d44455ca428ea4055d9636d79c8a05f Mon Sep 17 00:00:00 2001 From: Kelsi Date: Thu, 12 Mar 2026 13:21:00 -0700 Subject: [PATCH] feat: show spell tooltip on hover in combat log --- src/ui/game_screen.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/ui/game_screen.cpp b/src/ui/game_screen.cpp index 08e009ec..5ce867e1 100644 --- a/src/ui/game_screen.cpp +++ b/src/ui/game_screen.cpp @@ -17511,6 +17511,16 @@ void GameScreen::renderCombatLog(game::GameHandler& gameHandler) { ImGui::TextDisabled("%s", timeBuf); ImGui::TableSetColumnIndex(1); ImGui::TextColored(color, "%s", desc); + // Hover tooltip: show rich spell info for entries with a known spell + if (e.spellId != 0 && ImGui::IsItemHovered()) { + auto* assetMgrLog = core::Application::getInstance().getAssetManager(); + ImGui::BeginTooltip(); + bool richOk = spellbookScreen.renderSpellInfoTooltip(e.spellId, gameHandler, assetMgrLog); + if (!richOk) { + ImGui::Text("%s", spellName.c_str()); + } + ImGui::EndTooltip(); + } } // Auto-scroll to bottom