diff --git a/Barotrauma/BarotraumaClient/Source/GameSession/CrewManager.cs b/Barotrauma/BarotraumaClient/Source/GameSession/CrewManager.cs
index a4387b521..5a263c325 100644
--- a/Barotrauma/BarotraumaClient/Source/GameSession/CrewManager.cs
+++ b/Barotrauma/BarotraumaClient/Source/GameSession/CrewManager.cs
@@ -17,10 +17,9 @@ namespace Barotrauma
const float ChatMessageFadeTime = 10.0f;
///
- /// How long the previously selected character waits doing nothing when switching to another character
+ /// How long the previously selected character waits doing nothing when switching to another character. Only affects idling.
///
- const float CharacterWaitOnSwitch = 20.0f;
-
+ const float CharacterWaitOnSwitch = 10.0f;
private List characterInfos = new List();
private List characters = new List();
@@ -272,6 +271,7 @@ namespace Barotrauma
DebugConsole.ThrowError("Tried to add the same character info to CrewManager twice.\n" + Environment.StackTrace);
return;
}
+ }
characterInfos.Add(characterInfo);
}
@@ -599,7 +599,20 @@ namespace Barotrauma
characterListBox.BarScroll = roundedPos;
}
- return false;
+ #region Dialog
+ ///
+ /// Adds the message to the single player chatbox.
+ ///
+ public void AddSinglePlayerChatMessage(string senderName, string text, ChatMessageType messageType, Character sender)
+ {
+ if (!isSinglePlayer)
+ {
+ DebugConsole.ThrowError("Cannot add messages to single player chat box in multiplayer mode!\n" + Environment.StackTrace);
+ return;
+ }
+ if (string.IsNullOrEmpty(text)) { return; }
+
+ chatBox.AddMessage(ChatMessage.Create(senderName, text, messageType, sender));
}
private IEnumerable