mirror of
https://github.com/Facepunch/sbox-public.git
synced 2025-12-31 10:28:22 -05:00
This commit imports the C# engine code and game files, excluding C++ source code. [Source-Commit: ceb3d758046e50faa6258bc3b658a30c97743268]
40 lines
735 B
C#
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; }
|
|
|
|
}
|