From 6aea48aea9b9bfb1340e64059ba4251d34fb0a66 Mon Sep 17 00:00:00 2001 From: Kelsi Date: Wed, 18 Mar 2026 09:48:03 -0700 Subject: [PATCH] feat: show guild name on target frame for players Display below the player name in the target frame, using the same guild name cache as nameplates. --- src/ui/game_screen.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/ui/game_screen.cpp b/src/ui/game_screen.cpp index 902940e8..db869acf 100644 --- a/src/ui/game_screen.cpp +++ b/src/ui/game_screen.cpp @@ -4182,6 +4182,17 @@ void GameScreen::renderTargetFrame(game::GameHandler& gameHandler) { } } + // Player guild name (e.g. "") — mirrors NPC subtitle styling + if (target->getType() == game::ObjectType::PLAYER) { + uint32_t guildId = gameHandler.getEntityGuildId(target->getGuid()); + if (guildId != 0) { + const std::string& gn = gameHandler.lookupGuildName(guildId); + if (!gn.empty()) { + ImGui::TextColored(ImVec4(0.7f, 0.7f, 0.7f, 0.9f), "<%s>", gn.c_str()); + } + } + } + // Right-click context menu on the target name if (ImGui::BeginPopupContextItem("##TargetNameCtx")) { const bool isPlayer = (target->getType() == game::ObjectType::PLAYER);