mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-03-23 07:40:14 +00:00
feat: show kick target name and reason in LFG vote-kick UI
Parse the optional reason and target name strings from SMSG_LFG_BOOT_PROPOSAL_UPDATE and display them in the Dungeon Finder vote-kick section. Strings are cleared when the vote ends.
This commit is contained in:
parent
d8d59dcdc8
commit
c1a090a17c
3 changed files with 30 additions and 5 deletions
|
|
@ -16059,6 +16059,18 @@ void GameScreen::renderDungeonFinderWindow(game::GameHandler& gameHandler) {
|
|||
// ---- Vote-to-kick buttons ----
|
||||
if (state == LfgState::Boot) {
|
||||
ImGui::TextColored(ImVec4(1.0f, 0.3f, 0.3f, 1.0f), "Vote to kick in progress:");
|
||||
const std::string& bootTarget = gameHandler.getLfgBootTargetName();
|
||||
const std::string& bootReason = gameHandler.getLfgBootReason();
|
||||
if (!bootTarget.empty()) {
|
||||
ImGui::Text("Player: ");
|
||||
ImGui::SameLine();
|
||||
ImGui::TextColored(ImVec4(1.0f, 0.8f, 0.3f, 1.0f), "%s", bootTarget.c_str());
|
||||
}
|
||||
if (!bootReason.empty()) {
|
||||
ImGui::Text("Reason: ");
|
||||
ImGui::SameLine();
|
||||
ImGui::TextWrapped("%s", bootReason.c_str());
|
||||
}
|
||||
uint32_t bootVotes = gameHandler.getLfgBootVotes();
|
||||
uint32_t bootTotal = gameHandler.getLfgBootTotal();
|
||||
uint32_t bootNeeded = gameHandler.getLfgBootNeeded();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue