Fix lobby votes (#15041)
This commit is contained in:
@@ -59,6 +59,8 @@ namespace Content.Client.Lobby
|
|||||||
_lobby.CharacterSetupState.AddChild(_characterSetup);
|
_lobby.CharacterSetupState.AddChild(_characterSetup);
|
||||||
chatController.SetMainChat(true);
|
chatController.SetMainChat(true);
|
||||||
|
|
||||||
|
_voteManager.SetPopupContainer(_lobby.VoteContainer);
|
||||||
|
|
||||||
_characterSetup.CloseButton.OnPressed += _ =>
|
_characterSetup.CloseButton.OnPressed += _ =>
|
||||||
{
|
{
|
||||||
_lobby.SwitchState(LobbyGui.LobbyGuiState.Default);
|
_lobby.SwitchState(LobbyGui.LobbyGuiState.Default);
|
||||||
@@ -91,6 +93,8 @@ namespace Content.Client.Lobby
|
|||||||
_gameTicker.LobbyStatusUpdated -= LobbyStatusUpdated;
|
_gameTicker.LobbyStatusUpdated -= LobbyStatusUpdated;
|
||||||
_gameTicker.LobbyLateJoinStatusUpdated -= LobbyLateJoinStatusUpdated;
|
_gameTicker.LobbyLateJoinStatusUpdated -= LobbyLateJoinStatusUpdated;
|
||||||
|
|
||||||
|
_lobby!.VoteContainer.Orphan();
|
||||||
|
|
||||||
_lobby!.CharacterPreview.CharacterSetupButton.OnPressed -= OnSetupPressed;
|
_lobby!.CharacterPreview.CharacterSetupButton.OnPressed -= OnSetupPressed;
|
||||||
_lobby!.ReadyButton.OnPressed -= OnReadyPressed;
|
_lobby!.ReadyButton.OnPressed -= OnReadyPressed;
|
||||||
_lobby!.ReadyButton.OnToggled -= OnReadyToggled;
|
_lobby!.ReadyButton.OnToggled -= OnReadyToggled;
|
||||||
|
|||||||
@@ -15,6 +15,7 @@
|
|||||||
<!-- LHS Controls -->
|
<!-- LHS Controls -->
|
||||||
<BoxContainer Name="LeftSide" Orientation="Vertical" SeparationOverride="4" HorizontalExpand="True">
|
<BoxContainer Name="LeftSide" Orientation="Vertical" SeparationOverride="4" HorizontalExpand="True">
|
||||||
<Control Name="DefaultState" VerticalExpand="True">
|
<Control Name="DefaultState" VerticalExpand="True">
|
||||||
|
<BoxContainer Name="TopLeft" Orientation="Vertical">
|
||||||
<!-- Left Top Panel -->
|
<!-- Left Top Panel -->
|
||||||
<PanelContainer StyleClasses="AngleRect" HorizontalAlignment="Left" Name = "LeftSideTop" VerticalAlignment="Top" >
|
<PanelContainer StyleClasses="AngleRect" HorizontalAlignment="Left" Name = "LeftSideTop" VerticalAlignment="Top" >
|
||||||
<BoxContainer Orientation="Vertical" HorizontalAlignment="Center" MaxWidth="800">
|
<BoxContainer Orientation="Vertical" HorizontalAlignment="Center" MaxWidth="800">
|
||||||
@@ -34,7 +35,8 @@
|
|||||||
</BoxContainer>
|
</BoxContainer>
|
||||||
</PanelContainer>
|
</PanelContainer>
|
||||||
<!-- Voting Popups -->
|
<!-- Voting Popups -->
|
||||||
<BoxContainer Orientation="Vertical" SeparationOverride="4" Name="VoteContainer" Access="Public" HorizontalAlignment="Left" VerticalAlignment="Top"/>
|
<BoxContainer Orientation="Vertical" SeparationOverride="4" Name="VoteContainer" Access="Public" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="0 8"/>
|
||||||
|
</BoxContainer>
|
||||||
<!-- Vertical Padding-->
|
<!-- Vertical Padding-->
|
||||||
<Control VerticalExpand="True"/>
|
<Control VerticalExpand="True"/>
|
||||||
<!-- Left Bot Panel -->
|
<!-- Left Bot Panel -->
|
||||||
|
|||||||
@@ -1,10 +1,12 @@
|
|||||||
using Content.Client.UserInterface.Screens;
|
using Content.Client.UserInterface.Screens;
|
||||||
using Content.Client.UserInterface.Systems.Gameplay;
|
using Content.Client.UserInterface.Systems.Gameplay;
|
||||||
using Content.Client.Voting;
|
using Content.Client.Voting;
|
||||||
|
using JetBrains.Annotations;
|
||||||
using Robust.Client.UserInterface.Controllers;
|
using Robust.Client.UserInterface.Controllers;
|
||||||
|
|
||||||
namespace Content.Client.UserInterface.Systems.Vote;
|
namespace Content.Client.UserInterface.Systems.Vote;
|
||||||
|
|
||||||
|
[UsedImplicitly]
|
||||||
public sealed class VoteUIController : UIController
|
public sealed class VoteUIController : UIController
|
||||||
{
|
{
|
||||||
[Dependency] private readonly IVoteManager _votes = default!;
|
[Dependency] private readonly IVoteManager _votes = default!;
|
||||||
|
|||||||
Reference in New Issue
Block a user