mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-10-07 04:56:04 -04:00
27 lines
1.1 KiB
C#
27 lines
1.1 KiB
C#
// ClassicalSharp copyright 2014-2016 UnknownShadow200 | Licensed under MIT
|
|
using System;
|
|
|
|
namespace ClassicalSharp.Gui {
|
|
|
|
/// <summary> Represents a container of widgets and other 2D elements. </summary>
|
|
/// <remarks> May cover the entire game window. </remarks>
|
|
public abstract class Screen : GuiElement {
|
|
|
|
public Screen( Game game ) : base( game ) {
|
|
}
|
|
|
|
/// <summary> Whether this screen handles all mouse and keyboard input. </summary>
|
|
/// <remarks> This prevents the client from interacting with the world. </remarks>
|
|
public virtual bool HandlesAllInput { get; protected set; }
|
|
|
|
/// <summary> Whether this screen completely and opaquely covers the game world behind it. </summary>
|
|
public virtual bool BlocksWorld { get { return false; } }
|
|
|
|
/// <summary> Whether this screen hides the normal in-game hud. </summary>
|
|
public virtual bool HidesHud { get { return false; } }
|
|
|
|
/// <summary> Whether the normal in-game hud should be drawn over the top of this screen. </summary>
|
|
public virtual bool RenderHudAfter { get { return false; } }
|
|
}
|
|
}
|