Show / Hide Table of Contents

Class GameScreen

The screen of the game being rendered.

Inheritance
object
GameScreen
Inherited Members
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: LemonUI.Tools
Assembly: LemonUI.SHVDN3.dll
Syntax
public static class GameScreen

Properties

View Source

AbsoluteResolution

Gets the actual Screen resolution the game is being rendered at.

Declaration
public static SizeF AbsoluteResolution { get; }
Property Value
Type Description
SizeF
View Source

AspectRatio

The Aspect Ratio of the screen.

Declaration
public static float AspectRatio { get; }
Property Value
Type Description
float
View Source

Cursor

The location of the cursor on screen between 0 and 1.

Declaration
public static PointF Cursor { get; }
Property Value
Type Description
PointF

Methods

View Source

IsCursorInArea(PointF, SizeF)

Checks if the cursor is inside of the scaled area.

Declaration
public static bool IsCursorInArea(PointF pos, SizeF size)
Parameters
Type Name Description
PointF pos

The scaled position.

SizeF size

The scaled size of the area.

Returns
Type Description
bool

true if the cursor is in the specified bounds, false otherwise.

View Source

IsCursorInArea(float, float, float, float)

Checks if the cursor is inside of the scaled area.

Declaration
public static bool IsCursorInArea(float x, float y, float width, float height)
Parameters
Type Name Description
float x

The scaled X position.

float y

The scaled Y position.

float width

The scaled width of the area.

float height

The scaled height of the area.

Returns
Type Description
bool

true if the cursor is in the specified bounds, false otherwise.

View Source

ShowCursorThisFrame()

Shows the cursor during the current game frame.

Declaration
public static void ShowCursorThisFrame()
  • View Source
In this article
Back to top Generated by DocFX