From b44ff09b637281298395724c4ca34c378a84fdf5 Mon Sep 17 00:00:00 2001 From: Kelsi Date: Thu, 12 Mar 2026 14:32:15 -0700 Subject: [PATCH] feat: add pulsing golden glow to Attack action bar slot when auto-attacking --- src/ui/game_screen.cpp | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/ui/game_screen.cpp b/src/ui/game_screen.cpp index e941bba4..08308673 100644 --- a/src/ui/game_screen.cpp +++ b/src/ui/game_screen.cpp @@ -6584,6 +6584,20 @@ void GameScreen::renderActionBar(game::GameHandler& gameHandler) { } } + // Auto-attack active glow — pulsing golden border when slot 6603 (Attack) is toggled on + if (slot.type == game::ActionBarSlot::SPELL && slot.id == 6603 + && gameHandler.isAutoAttacking()) { + ImVec2 bMin = ImGui::GetItemRectMin(); + ImVec2 bMax = ImGui::GetItemRectMax(); + float pulse = 0.55f + 0.45f * std::sin(static_cast(ImGui::GetTime()) * 5.0f); + ImU32 glowCol = IM_COL32( + static_cast(255), + static_cast(200 * pulse), + static_cast(0), + static_cast(200 * pulse)); + ImGui::GetWindowDrawList()->AddRect(bMin, bMax, glowCol, 2.0f, 0, 2.5f); + } + // Item stack count overlay — bottom-right corner of icon if (slot.type == game::ActionBarSlot::ITEM && slot.id != 0) { // Count total of this item across all inventory slots