Files
sbox-public/engine/Sandbox.Engine/Game/LoadingScreen.cs
s&box team 71f266059a Open source release
This commit imports the C# engine code and game files, excluding C++ source code.

[Source-Commit: ceb3d758046e50faa6258bc3b658a30c97743268]
2025-11-24 09:05:18 +00:00

40 lines
735 B
C#

namespace Sandbox;
/// <summary>
/// Holds metadata and raw data relating to a Saved Game.
/// </summary>
public static class LoadingScreen
{
private static bool _loading;
public static bool IsVisible
{
get => _loading;
set
{
if ( _loading == value )
return;
//Log.Info( $"Loading: {value}\n{new StackTrace( true ).ToString()}" );
_loading = value;
}
}
/// <summary>
/// A title to show
/// </summary>
public static string Title { get; set; } = "Loading..";
/// <summary>
/// A subtitle to show
/// </summary>
public static string Subtitle { get; set; } = "";
/// <summary>
/// A URL or filepath to show as the background image.
/// </summary>
public static string Media { get; set; }
}