From 068deabb0ebeeeb644ea973a855c5df719c487ab Mon Sep 17 00:00:00 2001 From: Kelsi Date: Mon, 9 Mar 2026 17:09:48 -0700 Subject: [PATCH] Add missing power bar colours for all WoW power types Focus (2, orange), Happiness (4, green), Runic Power (6, crimson), and Soul Shards (7, purple) were falling through to the default blue colour. Applied consistently to the player frame, target frame, and party frames. --- src/ui/game_screen.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/ui/game_screen.cpp b/src/ui/game_screen.cpp index 68e0024b..2bbee10b 100644 --- a/src/ui/game_screen.cpp +++ b/src/ui/game_screen.cpp @@ -1796,7 +1796,11 @@ void GameScreen::renderPlayerFrame(game::GameHandler& gameHandler) { switch (powerType) { case 0: powerColor = ImVec4(0.2f, 0.2f, 0.9f, 1.0f); break; // Mana (blue) case 1: powerColor = ImVec4(0.9f, 0.2f, 0.2f, 1.0f); break; // Rage (red) + case 2: powerColor = ImVec4(0.9f, 0.6f, 0.1f, 1.0f); break; // Focus (orange) case 3: powerColor = ImVec4(0.9f, 0.9f, 0.2f, 1.0f); break; // Energy (yellow) + case 4: powerColor = ImVec4(0.5f, 0.9f, 0.3f, 1.0f); break; // Happiness (green) + case 6: powerColor = ImVec4(0.8f, 0.1f, 0.2f, 1.0f); break; // Runic Power (crimson) + case 7: powerColor = ImVec4(0.4f, 0.1f, 0.6f, 1.0f); break; // Soul Shards (purple) default: powerColor = ImVec4(0.2f, 0.2f, 0.9f, 1.0f); break; } ImGui::PushStyleColor(ImGuiCol_PlotHistogram, powerColor); @@ -1921,7 +1925,11 @@ void GameScreen::renderTargetFrame(game::GameHandler& gameHandler) { switch (targetPowerType) { case 0: targetPowerColor = ImVec4(0.2f, 0.2f, 0.9f, 1.0f); break; // Mana (blue) case 1: targetPowerColor = ImVec4(0.9f, 0.2f, 0.2f, 1.0f); break; // Rage (red) + case 2: targetPowerColor = ImVec4(0.9f, 0.6f, 0.1f, 1.0f); break; // Focus (orange) case 3: targetPowerColor = ImVec4(0.9f, 0.9f, 0.2f, 1.0f); break; // Energy (yellow) + case 4: targetPowerColor = ImVec4(0.5f, 0.9f, 0.3f, 1.0f); break; // Happiness (green) + case 6: targetPowerColor = ImVec4(0.8f, 0.1f, 0.2f, 1.0f); break; // Runic Power (crimson) + case 7: targetPowerColor = ImVec4(0.4f, 0.1f, 0.6f, 1.0f); break; // Soul Shards (purple) default: targetPowerColor = ImVec4(0.2f, 0.2f, 0.9f, 1.0f); break; } ImGui::PushStyleColor(ImGuiCol_PlotHistogram, targetPowerColor); @@ -4702,7 +4710,11 @@ void GameScreen::renderPartyFrames(game::GameHandler& gameHandler) { switch (member.powerType) { case 0: powerColor = ImVec4(0.2f, 0.2f, 0.9f, 1.0f); break; // Mana (blue) case 1: powerColor = ImVec4(0.9f, 0.2f, 0.2f, 1.0f); break; // Rage (red) + case 2: powerColor = ImVec4(0.9f, 0.6f, 0.1f, 1.0f); break; // Focus (orange) case 3: powerColor = ImVec4(0.9f, 0.9f, 0.2f, 1.0f); break; // Energy (yellow) + case 4: powerColor = ImVec4(0.5f, 0.9f, 0.3f, 1.0f); break; // Happiness (green) + case 6: powerColor = ImVec4(0.8f, 0.1f, 0.2f, 1.0f); break; // Runic Power (crimson) + case 7: powerColor = ImVec4(0.4f, 0.1f, 0.6f, 1.0f); break; // Soul Shards (purple) default: powerColor = ImVec4(0.5f, 0.5f, 0.5f, 1.0f); break; } ImGui::PushStyleColor(ImGuiCol_PlotHistogram, powerColor);