From 245f276f3582b2f89a01ea74cf42f5e2065292ee Mon Sep 17 00:00:00 2001 From: Pieter-Jan Briers Date: Sun, 28 Feb 2021 22:11:45 +0100 Subject: [PATCH] Restart vote improvements, voting localization. Restart votes now need 80% majority to succeed. Restart votes now have a 3 minute cooldown on the caller. Voting stuff has been localized. --- Content.Client/Voting/VoteCallMenu.xaml | 6 +- Content.Client/Voting/VoteCallMenu.xaml.cs | 4 +- Content.Client/Voting/VoteCallMenuButton.cs | 2 +- Content.Client/Voting/VotePopup.xaml.cs | 4 +- Content.Server/Voting/IVoteHandle.cs | 5 +- .../Voting/VoteManager.DefaultVotes.cs | 43 ++++++------ Content.Server/Voting/VoteManager.cs | 66 ++++++++++++++++++- Content.Shared/CCVars.cs | 8 +++ Resources/Changelog/Parts/restart_votes.yml | 4 ++ Resources/Locale/en-US/gamemodes/modes.ftl | 4 ++ Resources/Locale/en-US/ui/voting.ftl | 30 +++++++++ 11 files changed, 145 insertions(+), 31 deletions(-) create mode 100644 Resources/Changelog/Parts/restart_votes.yml create mode 100644 Resources/Locale/en-US/gamemodes/modes.ftl create mode 100644 Resources/Locale/en-US/ui/voting.ftl diff --git a/Content.Client/Voting/VoteCallMenu.xaml b/Content.Client/Voting/VoteCallMenu.xaml index 7fa7f2ade0..11e2cc4fb4 100644 --- a/Content.Client/Voting/VoteCallMenu.xaml +++ b/Content.Client/Voting/VoteCallMenu.xaml @@ -6,7 +6,7 @@ - -