From f4a31fef2a0585b346eed4647c2bf4cf8377ed69 Mon Sep 17 00:00:00 2001 From: Kelsi Date: Thu, 12 Mar 2026 08:37:14 -0700 Subject: [PATCH] feat: apply class colors to focus frame player name Player entities shown in the focus frame now display their canonical WoW class color (from UNIT_FIELD_BYTES_0), consistent with how player names are now colored in the target frame, party frame, raid frame, and nameplates. --- src/ui/game_screen.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/ui/game_screen.cpp b/src/ui/game_screen.cpp index d11939a4..f8de0380 100644 --- a/src/ui/game_screen.cpp +++ b/src/ui/game_screen.cpp @@ -3486,7 +3486,9 @@ void GameScreen::renderFocusFrame(game::GameHandler& gameHandler) { // Determine color based on relation (same logic as target frame) ImVec4 focusColor(0.7f, 0.7f, 0.7f, 1.0f); if (focus->getType() == game::ObjectType::PLAYER) { - focusColor = ImVec4(0.3f, 1.0f, 0.3f, 1.0f); + // Use class color for player focus targets + uint8_t cid = entityClassId(focus.get()); + focusColor = (cid != 0) ? classColorVec4(cid) : ImVec4(0.3f, 1.0f, 0.3f, 1.0f); } else if (focus->getType() == game::ObjectType::UNIT) { auto u = std::static_pointer_cast(focus); if (u->getHealth() == 0 && u->getMaxHealth() > 0) {