mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-10-08 05:27:33 -04:00
27 lines
868 B
C#
27 lines
868 B
C#
using System;
|
|
|
|
namespace ClassicalSharp {
|
|
|
|
/// <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; }
|
|
}
|
|
}
|
|
}
|