mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-03-26 00:40:15 +00:00
lfg: implement CMSG_LFG_SET_BOOT_VOTE and vote-to-kick UI
CMSG_LFG_SET_BOOT_VOTE was defined in the opcode table but never sent. - Add GameHandler::lfgSetBootVote(bool) which sends the packet - Fix handleLfgBootProposalUpdate() to set lfgState_=Boot while the vote is in progress and return to InDungeon when it ends - Add Yes/No vote buttons to the Dungeon Finder window when in Boot state
This commit is contained in:
parent
acbfe99401
commit
8856af6b2d
3 changed files with 35 additions and 3 deletions
|
|
@ -10583,6 +10583,20 @@ void GameScreen::renderDungeonFinderWindow(game::GameHandler& gameHandler) {
|
|||
ImGui::Separator();
|
||||
}
|
||||
|
||||
// ---- Vote-to-kick buttons ----
|
||||
if (state == LfgState::Boot) {
|
||||
ImGui::TextColored(ImVec4(1.0f, 0.3f, 0.3f, 1.0f), "Vote to kick in progress:");
|
||||
ImGui::Spacing();
|
||||
if (ImGui::Button("Vote Yes (kick)", ImVec2(140, 0))) {
|
||||
gameHandler.lfgSetBootVote(true);
|
||||
}
|
||||
ImGui::SameLine();
|
||||
if (ImGui::Button("Vote No (keep)", ImVec2(140, 0))) {
|
||||
gameHandler.lfgSetBootVote(false);
|
||||
}
|
||||
ImGui::Separator();
|
||||
}
|
||||
|
||||
// ---- Teleport button (in dungeon) ----
|
||||
if (state == LfgState::InDungeon) {
|
||||
if (ImGui::Button("Teleport to Dungeon", ImVec2(-1, 0))) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue