Class GameScreen
The screen of the game being rendered.
Inherited Members
Namespace: LemonUI.Tools
Assembly: LemonUI.SHVDN3.dll
Syntax
public static class GameScreen
Properties
View SourceAbsoluteResolution
Gets the actual Screen resolution the game is being rendered at.
Declaration
public static SizeF AbsoluteResolution { get; }
Property Value
| Type | Description |
|---|---|
| SizeF |
AspectRatio
The Aspect Ratio of the screen.
Declaration
public static float AspectRatio { get; }
Property Value
| Type | Description |
|---|---|
| float |
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 SourceIsCursorInArea(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. |
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. |
ShowCursorThisFrame()
Shows the cursor during the current game frame.
Declaration
public static void ShowCursorThisFrame()