Release 1.11.4.1 (Winter Update)

This commit is contained in:
Markus Isberg
2025-12-08 14:56:47 +00:00
parent 21e34e5cd8
commit 598966f200
121 changed files with 1614 additions and 819 deletions
@@ -2221,11 +2221,7 @@ namespace Barotrauma
if (GameMain.Client == null) { return true; }
//the player presumably no longer wants to be afk if they clicked the start button
if (afkBox.Selected)
{
afkBox.Flash(GUIStyle.Green);
}
afkBox.Selected = false;
SetAFKSelected(false);
if (CampaignSetupFrame.Visible && CampaignSetupUI != null)
{
@@ -2357,7 +2353,7 @@ namespace Barotrauma
if (GameMain.Client != null)
{
afkBox.Visible = !GameMain.Client.IsServerOwner && GameMain.Client.ServerSettings.AllowAFK;
afkBox.Visible = GameMain.Client.IsServerOwner || GameMain.Client.ServerSettings.AllowAFK;
GameMain.Client.Voting.ResetVotes(GameMain.Client.ConnectedClients);
joinOnGoingRoundButton.OnClicked = (btn, userdata) =>
{
@@ -3082,6 +3078,15 @@ namespace Barotrauma
}
}
public void SetAFKSelected(bool selected)
{
if (afkBox.Selected != selected)
{
afkBox.Flash(GUIStyle.Green);
afkBox.Selected = selected;
}
}
public void SetAutoRestart(bool enabled, float timer = 0.0f)
{
autoRestartBox.Selected = enabled;
@@ -4994,7 +4999,7 @@ namespace Barotrauma
};
micIcon = new GUIImage(new RectTransform(new Vector2(0.05f, 1.0f), chatRow.RectTransform), style: "GUIMicrophoneUnavailable");
chatInput.Select();
chatInput.Select(ignoreSelectSound: true);
}
//this needs to be done even if we're using the existing chatinput instance instead of creating a new one,