mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-03-23 07:40:14 +00:00
feat: parse MSG_INSPECT_ARENA_TEAMS and display in inspect window
Implements MSG_INSPECT_ARENA_TEAMS (WotLK): reads the inspected player's arena team data (2v2/3v3/5v5 bracket, team name, personal rating, week/season W-L) and stores it in InspectResult.arenaTeams. The inspect window now shows an "Arena Teams" section below the gear list when arena team data is available, displaying bracket, team name, rating, and win/loss record. Also implement SMSG_COMPLAIN_RESULT with user-visible feedback for report-player results.
This commit is contained in:
parent
a1edddd1f0
commit
758ca76bd3
3 changed files with 76 additions and 4 deletions
|
|
@ -20697,6 +20697,28 @@ void GameScreen::renderInspectWindow(game::GameHandler& gameHandler) {
|
|||
ImGui::EndChild();
|
||||
}
|
||||
|
||||
// Arena teams (WotLK — from MSG_INSPECT_ARENA_TEAMS)
|
||||
if (!result->arenaTeams.empty()) {
|
||||
ImGui::Separator();
|
||||
ImGui::TextColored(ImVec4(1.0f, 0.75f, 0.2f, 1.0f), "Arena Teams");
|
||||
ImGui::Spacing();
|
||||
for (const auto& team : result->arenaTeams) {
|
||||
const char* bracket = (team.type == 2) ? "2v2"
|
||||
: (team.type == 3) ? "3v3"
|
||||
: (team.type == 5) ? "5v5" : "?v?";
|
||||
ImGui::TextColored(ImVec4(0.9f, 0.9f, 0.9f, 1.0f),
|
||||
"[%s] %s", bracket, team.name.c_str());
|
||||
ImGui::SameLine();
|
||||
ImGui::TextColored(ImVec4(0.4f, 0.85f, 1.0f, 1.0f),
|
||||
" Rating: %u", team.personalRating);
|
||||
if (team.weekGames > 0 || team.seasonGames > 0) {
|
||||
ImGui::TextDisabled(" Week: %u/%u Season: %u/%u",
|
||||
team.weekWins, team.weekGames,
|
||||
team.seasonWins, team.seasonGames);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
ImGui::End();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue