mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-03-22 23:30:14 +00:00
feat: show tactical role badges in party frames; fix talent reset
- Add MT/MA/Asst badges to party frames (matching raid frame treatment) - Clear learnedTalents_ on SMSG_TALENTS_INVOLUNTARILY_RESET so the talent screen stays accurate after a server-side talent wipe
This commit is contained in:
parent
f70df191a9
commit
ae40d393c3
2 changed files with 15 additions and 0 deletions
|
|
@ -6086,6 +6086,9 @@ void GameHandler::handlePacket(network::Packet& packet) {
|
||||||
|
|
||||||
// ---- Talents involuntarily reset ----
|
// ---- Talents involuntarily reset ----
|
||||||
case Opcode::SMSG_TALENTS_INVOLUNTARILY_RESET:
|
case Opcode::SMSG_TALENTS_INVOLUNTARILY_RESET:
|
||||||
|
// Clear cached talent data so the talent screen reflects the reset.
|
||||||
|
learnedTalents_[0].clear();
|
||||||
|
learnedTalents_[1].clear();
|
||||||
addSystemChatMessage("Your talents have been reset by the server.");
|
addSystemChatMessage("Your talents have been reset by the server.");
|
||||||
packet.setReadPos(packet.getSize());
|
packet.setReadPos(packet.getSize());
|
||||||
break;
|
break;
|
||||||
|
|
|
||||||
|
|
@ -9595,6 +9595,18 @@ void GameScreen::renderPartyFrames(game::GameHandler& gameHandler) {
|
||||||
if (member.roles & 0x08) { ImGui::SameLine(); ImGui::TextColored(ImVec4(0.9f, 0.3f, 0.3f, 1.0f), "[D]"); }
|
if (member.roles & 0x08) { ImGui::SameLine(); ImGui::TextColored(ImVec4(0.9f, 0.3f, 0.3f, 1.0f), "[D]"); }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Tactical role badge (MT/MA/Asst) from group flags
|
||||||
|
if (member.flags & 0x02) {
|
||||||
|
ImGui::SameLine();
|
||||||
|
ImGui::TextColored(ImVec4(1.0f, 0.55f, 0.0f, 0.9f), "[MT]");
|
||||||
|
} else if (member.flags & 0x04) {
|
||||||
|
ImGui::SameLine();
|
||||||
|
ImGui::TextColored(ImVec4(0.4f, 0.7f, 1.0f, 0.9f), "[MA]");
|
||||||
|
} else if (member.flags & 0x01) {
|
||||||
|
ImGui::SameLine();
|
||||||
|
ImGui::TextColored(ImVec4(0.7f, 0.85f, 1.0f, 0.7f), "[A]");
|
||||||
|
}
|
||||||
|
|
||||||
// Raid mark symbol — shown on same line as name when this party member has a mark
|
// Raid mark symbol — shown on same line as name when this party member has a mark
|
||||||
{
|
{
|
||||||
static const struct { const char* sym; ImU32 col; } kPartyMarks[] = {
|
static const struct { const char* sym; ImU32 col; } kPartyMarks[] = {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue