mirror of
https://github.com/Facepunch/sbox-public.git
synced 2026-04-24 08:19:49 -04:00
24 lines
490 B
C#
24 lines
490 B
C#
using Sandbox.Engine;
|
|
using Sandbox.Internal;
|
|
using static System.Net.Mime.MediaTypeNames;
|
|
|
|
namespace Sandbox.Network;
|
|
|
|
internal partial class NetworkSystem
|
|
{
|
|
public void UpdateLoading( string text )
|
|
{
|
|
if ( !LoadingScreen.IsVisible )
|
|
{
|
|
// Reset media when first starting a new connection loading phase,
|
|
// so stale media from a previous session doesn't bleed through.
|
|
LoadingScreen.Media = null;
|
|
}
|
|
|
|
LoadingScreen.IsVisible = true;
|
|
LoadingScreen.Title = text;
|
|
}
|
|
}
|
|
|
|
|