mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-03-23 07:40:14 +00:00
feat: apply WoW class colors to guild roster class column
Online guild members now show their class name in the standard WoW class color in the guild roster table, matching the familiar in-game appearance. Offline members retain the dimmed gray style.
This commit is contained in:
parent
102b34db2f
commit
71df1ccf6f
1 changed files with 17 additions and 1 deletions
|
|
@ -7980,7 +7980,23 @@ void GameScreen::renderGuildRoster(game::GameHandler& gameHandler) {
|
|||
|
||||
ImGui::TableNextColumn();
|
||||
const char* className = (m.classId < 12) ? classNames[m.classId] : "Unknown";
|
||||
ImGui::TextColored(textColor, "%s", className);
|
||||
// Class-colored text for online members (gray for offline)
|
||||
ImVec4 classCol = textColor;
|
||||
if (m.online) {
|
||||
switch (m.classId) {
|
||||
case 1: classCol = ImVec4(0.78f, 0.61f, 0.43f, 1.0f); break; // Warrior
|
||||
case 2: classCol = ImVec4(0.96f, 0.55f, 0.73f, 1.0f); break; // Paladin
|
||||
case 3: classCol = ImVec4(0.67f, 0.83f, 0.45f, 1.0f); break; // Hunter
|
||||
case 4: classCol = ImVec4(1.00f, 0.96f, 0.41f, 1.0f); break; // Rogue
|
||||
case 5: classCol = ImVec4(1.00f, 1.00f, 1.00f, 1.0f); break; // Priest
|
||||
case 6: classCol = ImVec4(0.77f, 0.12f, 0.23f, 1.0f); break; // Death Knight
|
||||
case 7: classCol = ImVec4(0.00f, 0.44f, 0.87f, 1.0f); break; // Shaman
|
||||
case 8: classCol = ImVec4(0.41f, 0.80f, 0.94f, 1.0f); break; // Mage
|
||||
case 9: classCol = ImVec4(0.58f, 0.51f, 0.79f, 1.0f); break; // Warlock
|
||||
case 11: classCol = ImVec4(1.00f, 0.49f, 0.04f, 1.0f); break; // Druid
|
||||
}
|
||||
}
|
||||
ImGui::TextColored(classCol, "%s", className);
|
||||
|
||||
ImGui::TableNextColumn();
|
||||
// Zone name lookup
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue