From eeadc75b0a2a72fa1225610fee853eb0004456bf Mon Sep 17 00:00:00 2001 From: SlamBamActionman <83650252+SlamBamActionman@users.noreply.github.com> Date: Thu, 26 Sep 2024 18:32:13 +0200 Subject: [PATCH] Add Votekick functionality (#32005) --- Content.Client/Voting/UI/VoteCallMenu.xaml | 22 +- Content.Client/Voting/UI/VoteCallMenu.xaml.cs | 195 ++++++-- Content.Client/Voting/UI/VotePopup.xaml | 7 +- Content.Client/Voting/UI/VotePopup.xaml.cs | 33 +- Content.Client/Voting/VoteManager.cs | 7 +- Content.Client/Voting/VotingSystem.cs | 34 ++ Content.Server/Voting/IVoteHandle.cs | 7 +- .../Voting/Managers/IVoteManager.cs | 4 +- .../Managers/VoteManager.DefaultVotes.cs | 428 ++++++++++++++---- Content.Server/Voting/Managers/VoteManager.cs | 83 +++- Content.Server/Voting/VoteCommands.cs | 10 +- Content.Server/Voting/VoteOptions.cs | 17 +- Content.Server/Voting/VotingSystem.cs | 122 +++++ Content.Shared/CCVar/CCVars.cs | 82 +++- Content.Shared/Voting/MsgVoteData.cs | 8 +- Content.Shared/Voting/StandardVoteType.cs | 48 +- Content.Shared/Voting/VotingEvents.cs | 30 ++ .../en-US/voting/managers/vote-manager.ftl | 13 + .../Locale/en-US/voting/ui/vote-call-menu.ftl | 19 + .../Locale/en-US/voting/ui/vote-popup.ftl | 4 +- 20 files changed, 1009 insertions(+), 164 deletions(-) create mode 100644 Content.Client/Voting/VotingSystem.cs create mode 100644 Content.Server/Voting/VotingSystem.cs create mode 100644 Content.Shared/Voting/VotingEvents.cs diff --git a/Content.Client/Voting/UI/VoteCallMenu.xaml b/Content.Client/Voting/UI/VoteCallMenu.xaml index cb03dd6bb8..caca4fd553 100644 --- a/Content.Client/Voting/UI/VoteCallMenu.xaml +++ b/Content.Client/Voting/UI/VoteCallMenu.xaml @@ -1,7 +1,7 @@ - + MouseFilter="Stop" MinSize="350 200"> @@ -13,16 +13,18 @@ - - - - - + + + + + + +