Table of Contents

Class EventManager

Namespace
TaleWorlds.GauntletUI
Assembly
TaleWorlds.GauntletUI.dll
public class EventManager
Inheritance
EventManager
Inherited Members

Fields

MinParallelUpdateCount

public const int MinParallelUpdateCount = 64

Field Value

int

OnGetIsHitThisFrame

public Func<bool> OnGetIsHitThisFrame

Field Value

Func<bool>

Properties

Context

public UIContext Context { get; }

Property Value

UIContext

DeltaMouseScroll

public float DeltaMouseScroll { get; }

Property Value

float

DragHoveredView

public Widget DragHoveredView { get; }

Property Value

Widget

DraggedWidget

public Widget DraggedWidget { get; }

Property Value

Widget

DraggedWidgetPosition

public Vector2 DraggedWidgetPosition { get; }

Property Value

Vector2

FocusedWidget

public Widget FocusedWidget { get; }

Property Value

Widget

HoveredView

public Widget HoveredView { get; }

Property Value

Widget

InputContext

public IInputContext InputContext { get; }

Property Value

IInputContext

InputService

public IInputService InputService { get; }

Property Value

IInputService

IsControllerActive

public bool IsControllerActive { get; }

Property Value

bool

LatestMouseAlternateDownWidget

public Widget LatestMouseAlternateDownWidget { get; }

Property Value

Widget

LatestMouseAlternateUpWidget

public Widget LatestMouseAlternateUpWidget { get; }

Property Value

Widget

LatestMouseDownWidget

public Widget LatestMouseDownWidget { get; }

Property Value

Widget

LatestMouseUpWidget

public Widget LatestMouseUpWidget { get; }

Property Value

Widget

LeftUsableAreaStart

public float LeftUsableAreaStart { get; }

Property Value

float

MouseOveredViews

public List<Widget> MouseOveredViews { get; }

Property Value

List<Widget>

MousePosition

public Vector2 MousePosition { get; }

Property Value

Vector2

MousePositionInReferenceResolution

public Vector2 MousePositionInReferenceResolution { get; }

Property Value

Vector2

PageSize

public Vector2 PageSize { get; }

Property Value

Vector2

RightStickHorizontalScrollAmount

public float RightStickHorizontalScrollAmount { get; }

Property Value

float

RightStickVerticalScrollAmount

public float RightStickVerticalScrollAmount { get; }

Property Value

float

Root

public Widget Root { get; }

Property Value

Widget

Time

public float Time { get; }

Property Value

float

TopUsableAreaStart

public float TopUsableAreaStart { get; }

Property Value

float

UIEventManager

public static EventManager UIEventManager { get; }

Property Value

EventManager

UsableArea

public Vec2 UsableArea { get; set; }

Property Value

Vec2

Methods

AddAfterFinalizedCallback(Action)

public void AddAfterFinalizedCallback(Action callback)

Parameters

callback Action

AddLateUpdateAction(Widget, Action<float>, int)

public void AddLateUpdateAction(Widget owner, Action<float> action, int order)

Parameters

owner Widget
action Action<float>
order int

ClearFocus()

public void ClearFocus()

FocusTest(Widget)

public bool FocusTest(Widget root)

Parameters

root Widget

Returns

bool

GetIsHitThisFrame()

public bool GetIsHitThisFrame()

Returns

bool

HitTest(Widget, Vector2)

public static bool HitTest(Widget widget, Vector2 position)

Parameters

widget Widget
position Vector2

Returns

bool

SetHoveredView(Widget)

public void SetHoveredView(Widget view)

Parameters

view Widget

SetWidgetFocused(Widget, bool)

public void SetWidgetFocused(Widget widget, bool fromClick = false)

Parameters

widget Widget
fromClick bool

UpdateLayout()

public void UpdateLayout()

Events

GainFocus

public event Action GainFocus

Event Type

Action

LoseFocus

public event Action LoseFocus

Event Type

Action

OnDragEnded

public event Action OnDragEnded

Event Type

Action

OnDragStarted

public event Action OnDragStarted

Event Type

Action

This page was last modified at 09/01/2024 16:12:00 +00:00 (UTC).