Skip to content

Commit

Permalink
Show non-release notice in CnCNet lobby
Browse files Browse the repository at this point in the history
  • Loading branch information
SadPencil committed Nov 5, 2024
1 parent fa9e893 commit fffb942
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions DXMainClient/DXGUI/Multiplayer/CnCNet/CnCNetLobby.cs
Original file line number Diff line number Diff line change
Expand Up @@ -560,6 +560,14 @@ private void PostUIInit()
string.Format("*** DTA CnCNet Client version {0} ***".L10N("Client:Main:CnCNetClientVersionMessage"), Assembly.GetAssembly(typeof(CnCNetLobby)).GetName().Version),
lbChatMessages.FontIndex)));

{
string developBuildWarningMessage = "This is a development build. Stability and reliability may not be fully guaranteed.".L10N("Client:Main:DevelopmentBuildWarning");
#if DEVELOPMENT_BUILD
connectionManager.MainChannel.AddMessage(new ChatMessage(Color.Red, Renderer.GetSafeString(
developBuildWarningMessage, lbChatMessages.FontIndex)));
#endif
}

connectionManager.BannedFromChannel += ConnectionManager_BannedFromChannel;

loginWindow = new CnCNetLoginWindow(WindowManager);
Expand Down

0 comments on commit fffb942

Please sign in to comment.