Make lobby ready button clear what state you are in (#12152)
This commit is contained in:
@@ -180,7 +180,7 @@ namespace Content.Client.Lobby
|
||||
else
|
||||
{
|
||||
_lobby!.StartTime.Text = string.Empty;
|
||||
_lobby!.ReadyButton.Text = Loc.GetString("lobby-state-ready-button-ready-up-state");
|
||||
_lobby!.ReadyButton.Text = Loc.GetString(_lobby!.ReadyButton.Pressed ? "lobby-state-player-status-ready": "lobby-state-player-status-not-ready");
|
||||
_lobby!.ReadyButton.ToggleMode = true;
|
||||
_lobby!.ReadyButton.Disabled = false;
|
||||
_lobby!.ReadyButton.Pressed = _gameTicker.AreWeReady;
|
||||
|
||||
@@ -24,11 +24,11 @@
|
||||
<cc:UICommandButton Command="observe" Name="ObserveButton" Access="Public" Text="{Loc 'ui-lobby-observe-button'}" StyleClasses="ButtonBig" WindowType="{x:Type lobbyUi:ObserveWarningWindow}"/>
|
||||
<Label Name="StartTime"
|
||||
Access="Public"
|
||||
Align="Right"
|
||||
Align="Left"
|
||||
FontColorOverride="{x:Static maths:Color.DarkGray}"
|
||||
StyleClasses="LabelBig" HorizontalExpand="True" />
|
||||
<Button Name="ReadyButton" Access="Public" ToggleMode="True" Text="{Loc 'ui-lobby-ready-up-button'}"
|
||||
StyleClasses="ButtonBig" />
|
||||
StyleClasses="ButtonBig" MinWidth="137"/>
|
||||
</BoxContainer>
|
||||
</controls:StripeBack>
|
||||
</BoxContainer>
|
||||
|
||||
Reference in New Issue
Block a user