G1R AngelScript
Scripting reference for the Gothic 1 Remake
Loading...
Searching...
No Matches
WidgetLayout Namespace Reference

Functions

Slot
UGridSlot SlotAsGridSlot (UWidget Widget)
 Gets the slot object on the child widget as a Grid Slot, allowing you to manipulate layout information.
UCanvasPanelSlot SlotAsCanvasSlot (UWidget Widget)
 Gets the slot object on the child widget as a Canvas Slot, allowing you to manipulate layout information.
UWrapBoxSlot SlotAsWrapBoxSlot (UWidget Widget)
 Gets the slot object on the child widget as a Wrap Box Slot, allowing you to manipulate its information.
USafeZoneSlot SlotAsSafeBoxSlot (UWidget Widget)
 Gets the slot object on the child widget as a Safe Box Slot, allowing you to manipulate its information.
UUniformGridSlot SlotAsUniformGridSlot (UWidget Widget)
 Gets the slot object on the child widget as a Uniform Grid Slot, allowing you to manipulate layout information.
UScaleBoxSlot SlotAsScaleBoxSlot (UWidget Widget)
 Gets the slot object on the child widget as a Scale Box Slot, allowing you to manipulate its information.
USizeBoxSlot SlotAsSizeBoxSlot (UWidget Widget)
 Gets the slot object on the child widget as a Size Box Slot, allowing you to manipulate its information.
UVerticalBoxSlot SlotAsVerticalBoxSlot (UWidget Widget)
 Gets the slot object on the child widget as a Vertical Box Slot, allowing you to manipulate its information.
UBorderSlot SlotAsBorderSlot (UWidget Widget)
 Gets the slot object on the child widget as a Border Slot, allowing you to manipulate layout information.
UWidgetSwitcherSlot SlotAsWidgetSwitcherSlot (UWidget Widget)
 Gets the slot object on the child widget as a Widget Switcher Slot, allowing you to manipulate its information.
UScrollBoxSlot SlotAsScrollBoxSlot (UWidget Widget)
 Gets the slot object on the child widget as a Scroll Box Slot, allowing you to manipulate its information.
UHorizontalBoxSlot SlotAsHorizontalBoxSlot (UWidget Widget)
 Gets the slot object on the child widget as a Horizontal Box Slot, allowing you to manipulate its information.
UOverlaySlot SlotAsOverlaySlot (UWidget Widget)
 Gets the slot object on the child widget as a Overlay Slot, allowing you to manipulate layout information.
Viewport
FGeometry GetPlayerScreenWidgetGeometry (APlayerController PlayerController)
 Gets the geometry of the widget holding all widgets added to the "Player Screen". You can use this geometry to convert between absolute and local space of widgets held on this widget.
FGeometry GetViewportWidgetGeometry ()
 Gets the geometry of the widget holding all widgets added to the "Viewport". You can use this geometry to convert between absolute and local space of widgets held on this widget.
bool ProjectWorldLocationToWidgetPosition (APlayerController PlayerController, FVector WorldLocation, FVector2D &ScreenPosition, bool bPlayerViewportRelative)
 Gets the projected world to screen position for a player, then converts it into a widget position, which takes into account any quality scaling.
float32 GetViewportScale ()
 Gets the current DPI Scale being applied to the viewport and all the Widgets.
void RemoveAllWidgets ()
 Removes all widgets from the viewport.
FVector2D GetViewportSize ()
 Gets the size of the game viewport.
bool GetMousePositionScaledByDPI (APlayerController Player, float32 &LocationX, float32 &LocationY)
 Gets the mouse position of the player controller, scaled by the DPI. If you're trying to go from raw mouse screenspace coordinates to fullscreen widget space, you'll need to transform the mouse into DPI Scaled space. This function performs that scaling.
FVector2D GetMousePositionOnViewport ()
 Gets the platform's mouse cursor position in the local space of the viewport widget.
FVector2D GetMousePositionOnPlatform ()
 Gets the platform's mouse cursor position. This is the 'absolute' desktop location of the mouse.

Variables

Variables
const FVector2D MousePositionOnPlatform

Function Documentation

◆ GetMousePositionOnPlatform()

FVector2D GetMousePositionOnPlatform ( )

Gets the platform's mouse cursor position. This is the 'absolute' desktop location of the mouse.

◆ GetMousePositionOnViewport()

FVector2D GetMousePositionOnViewport ( )

Gets the platform's mouse cursor position in the local space of the viewport widget.

◆ GetMousePositionScaledByDPI()

bool GetMousePositionScaledByDPI ( APlayerController Player,
float32 & LocationX,
float32 & LocationY )

Gets the mouse position of the player controller, scaled by the DPI. If you're trying to go from raw mouse screenspace coordinates to fullscreen widget space, you'll need to transform the mouse into DPI Scaled space. This function performs that scaling.

MousePositionScaledByDPI = MousePosition * (1 / ViewportScale). UE_DEPRECATED(4.17, "Use GetMousePositionOnViewport() instead. Optionally and for more options, you can use GetViewportWidgetGeometry and GetPlayerScreenWidgetGeometry are newly introduced to give you the geometry of the viewport and the player screen for widgets to help convert between spaces.")

◆ GetPlayerScreenWidgetGeometry()

FGeometry GetPlayerScreenWidgetGeometry ( APlayerController PlayerController)

Gets the geometry of the widget holding all widgets added to the "Player Screen". You can use this geometry to convert between absolute and local space of widgets held on this widget.

◆ GetViewportScale()

float32 GetViewportScale ( )

Gets the current DPI Scale being applied to the viewport and all the Widgets.

◆ GetViewportSize()

FVector2D GetViewportSize ( )

Gets the size of the game viewport.

◆ GetViewportWidgetGeometry()

FGeometry GetViewportWidgetGeometry ( )

Gets the geometry of the widget holding all widgets added to the "Viewport". You can use this geometry to convert between absolute and local space of widgets held on this widget.

◆ ProjectWorldLocationToWidgetPosition()

bool ProjectWorldLocationToWidgetPosition ( APlayerController PlayerController,
FVector WorldLocation,
FVector2D & ScreenPosition,
bool bPlayerViewportRelative )

Gets the projected world to screen position for a player, then converts it into a widget position, which takes into account any quality scaling.

Parameters
PlayerControllerThe player controller to project the position in the world to their screen.
WorldLocationThe world location to project from.
ScreenPositionThe position in the viewport with quality scale removed and DPI scale remove.
bPlayerViewportRelativeShould this be relative to the player viewport subregion (useful when using player attached widgets in split screen or when aspect-ratio constrained)
Returns
true if the position projects onto the screen.

◆ RemoveAllWidgets()

void RemoveAllWidgets ( )

Removes all widgets from the viewport.

◆ SlotAsBorderSlot()

UBorderSlot SlotAsBorderSlot ( UWidget Widget)

Gets the slot object on the child widget as a Border Slot, allowing you to manipulate layout information.

Parameters
WidgetThe child widget of a border panel.

◆ SlotAsCanvasSlot()

UCanvasPanelSlot SlotAsCanvasSlot ( UWidget Widget)

Gets the slot object on the child widget as a Canvas Slot, allowing you to manipulate layout information.

Parameters
WidgetThe child widget of a canvas panel.

◆ SlotAsGridSlot()

UGridSlot SlotAsGridSlot ( UWidget Widget)

Gets the slot object on the child widget as a Grid Slot, allowing you to manipulate layout information.

Parameters
WidgetThe child widget of a grid panel.

◆ SlotAsHorizontalBoxSlot()

UHorizontalBoxSlot SlotAsHorizontalBoxSlot ( UWidget Widget)

Gets the slot object on the child widget as a Horizontal Box Slot, allowing you to manipulate its information.

Parameters
WidgetThe child widget of a Horizontal Box.

◆ SlotAsOverlaySlot()

UOverlaySlot SlotAsOverlaySlot ( UWidget Widget)

Gets the slot object on the child widget as a Overlay Slot, allowing you to manipulate layout information.

Parameters
WidgetThe child widget of a overlay panel.

◆ SlotAsSafeBoxSlot()

USafeZoneSlot SlotAsSafeBoxSlot ( UWidget Widget)

Gets the slot object on the child widget as a Safe Box Slot, allowing you to manipulate its information.

Parameters
WidgetThe child widget of a Safe Box.

◆ SlotAsScaleBoxSlot()

UScaleBoxSlot SlotAsScaleBoxSlot ( UWidget Widget)

Gets the slot object on the child widget as a Scale Box Slot, allowing you to manipulate its information.

Parameters
WidgetThe child widget of a Scale Box.

◆ SlotAsScrollBoxSlot()

UScrollBoxSlot SlotAsScrollBoxSlot ( UWidget Widget)

Gets the slot object on the child widget as a Scroll Box Slot, allowing you to manipulate its information.

Parameters
WidgetThe child widget of a Scroll Box.

◆ SlotAsSizeBoxSlot()

USizeBoxSlot SlotAsSizeBoxSlot ( UWidget Widget)

Gets the slot object on the child widget as a Size Box Slot, allowing you to manipulate its information.

Parameters
WidgetThe child widget of a Size Box.

◆ SlotAsUniformGridSlot()

UUniformGridSlot SlotAsUniformGridSlot ( UWidget Widget)

Gets the slot object on the child widget as a Uniform Grid Slot, allowing you to manipulate layout information.

Parameters
WidgetThe child widget of a uniform grid panel.

◆ SlotAsVerticalBoxSlot()

UVerticalBoxSlot SlotAsVerticalBoxSlot ( UWidget Widget)

Gets the slot object on the child widget as a Vertical Box Slot, allowing you to manipulate its information.

Parameters
WidgetThe child widget of a Vertical Box.

◆ SlotAsWidgetSwitcherSlot()

UWidgetSwitcherSlot SlotAsWidgetSwitcherSlot ( UWidget Widget)

Gets the slot object on the child widget as a Widget Switcher Slot, allowing you to manipulate its information.

Parameters
WidgetThe child widget of a Widget Switcher Slot.

◆ SlotAsWrapBoxSlot()

UWrapBoxSlot SlotAsWrapBoxSlot ( UWidget Widget)

Gets the slot object on the child widget as a Wrap Box Slot, allowing you to manipulate its information.

Parameters
WidgetThe child widget of a Wrap Box.

Variable Documentation

◆ MousePositionOnPlatform

const FVector2D MousePositionOnPlatform