M&B: Bannerlord 1.2.7
The horns sound, the ravens gather.
Loading...
Searching...
No Matches
TaleWorlds.GauntletUI.EventManager Class Reference

Public Member Functions

void AddAfterFinalizedCallback (Action callback)
 
void ClearFocus ()
 
bool FocusTest (Widget root)
 
void AddLateUpdateAction (Widget owner, Action< float > action, int order)
 
void SetWidgetFocused (Widget widget, bool fromClick=false)
 
void SetHoveredView (Widget view)
 
void UpdateLayout ()
 
bool GetIsHitThisFrame ()
 

Static Public Member Functions

static bool HitTest (Widget widget, Vector2 position)
 

Public Attributes

Func< bool > OnGetIsHitThisFrame
 

Static Public Attributes

const int MinParallelUpdateCount = 64
 

Properties

float Time [get]
 Time since the creation of EventManager in seconds.
 
Vec2 UsableArea = new Vec2(1, 1) [get, set]
 
float LeftUsableAreaStart [get]
 
float TopUsableAreaStart [get]
 
static TaleWorlds.Library.EventSystem.EventManager UIEventManager [get]
 
Vector2 MousePositionInReferenceResolution [get]
 
bool IsControllerActive [get]
 
Vector2 PageSize [get]
 
UIContext Context [get]
 
IInputService InputService [get]
 
IInputContext InputContext [get]
 
Widget Root [get]
 
Widget FocusedWidget [get]
 
Widget HoveredView [get]
 
List< WidgetMouseOveredViews [get]
 
Widget DragHoveredView [get]
 
Widget DraggedWidget [get]
 
Vector2 DraggedWidgetPosition [get]
 
Widget LatestMouseDownWidget [get]
 
Widget LatestMouseUpWidget [get]
 
Widget LatestMouseAlternateDownWidget [get]
 
Widget LatestMouseAlternateUpWidget [get]
 
Vector2 MousePosition [get]
 
float DeltaMouseScroll [get]
 
float RightStickVerticalScrollAmount [get]
 
float RightStickHorizontalScrollAmount [get]
 

Events

Action OnDragStarted
 
Action OnDragEnded
 
Action LoseFocus
 
Action GainFocus
 

Member Function Documentation

◆ AddAfterFinalizedCallback()

void TaleWorlds.GauntletUI.EventManager.AddAfterFinalizedCallback ( Action  callback)

◆ ClearFocus()

void TaleWorlds.GauntletUI.EventManager.ClearFocus ( )

◆ HitTest()

static bool TaleWorlds.GauntletUI.EventManager.HitTest ( Widget  widget,
Vector2  position 
)
static

◆ FocusTest()

bool TaleWorlds.GauntletUI.EventManager.FocusTest ( Widget  root)

◆ AddLateUpdateAction()

void TaleWorlds.GauntletUI.EventManager.AddLateUpdateAction ( Widget  owner,
Action< float >  action,
int  order 
)

◆ SetWidgetFocused()

void TaleWorlds.GauntletUI.EventManager.SetWidgetFocused ( Widget  widget,
bool  fromClick = false 
)

◆ SetHoveredView()

void TaleWorlds.GauntletUI.EventManager.SetHoveredView ( Widget  view)

◆ UpdateLayout()

void TaleWorlds.GauntletUI.EventManager.UpdateLayout ( )

◆ GetIsHitThisFrame()

bool TaleWorlds.GauntletUI.EventManager.GetIsHitThisFrame ( )

Member Data Documentation

◆ MinParallelUpdateCount

const int TaleWorlds.GauntletUI.EventManager.MinParallelUpdateCount = 64
static

◆ OnGetIsHitThisFrame

Func<bool> TaleWorlds.GauntletUI.EventManager.OnGetIsHitThisFrame

Property Documentation

◆ Time

float TaleWorlds.GauntletUI.EventManager.Time
get

◆ UsableArea

Vec2 TaleWorlds.GauntletUI.EventManager.UsableArea = new Vec2(1, 1)
getset

◆ LeftUsableAreaStart

float TaleWorlds.GauntletUI.EventManager.LeftUsableAreaStart
get

◆ TopUsableAreaStart

float TaleWorlds.GauntletUI.EventManager.TopUsableAreaStart
get

◆ UIEventManager

TaleWorlds.Library.EventSystem.EventManager TaleWorlds.GauntletUI.EventManager.UIEventManager
staticget

◆ MousePositionInReferenceResolution

Vector2 TaleWorlds.GauntletUI.EventManager.MousePositionInReferenceResolution
get

◆ IsControllerActive

bool TaleWorlds.GauntletUI.EventManager.IsControllerActive
get

◆ PageSize

Vector2 TaleWorlds.GauntletUI.EventManager.PageSize
get

◆ Context

UIContext TaleWorlds.GauntletUI.EventManager.Context
get

◆ InputService

IInputService TaleWorlds.GauntletUI.EventManager.InputService
get

◆ InputContext

IInputContext TaleWorlds.GauntletUI.EventManager.InputContext
get

◆ Root

Widget TaleWorlds.GauntletUI.EventManager.Root
get

◆ FocusedWidget

Widget TaleWorlds.GauntletUI.EventManager.FocusedWidget
get

◆ HoveredView

Widget TaleWorlds.GauntletUI.EventManager.HoveredView
get

◆ MouseOveredViews

List<Widget> TaleWorlds.GauntletUI.EventManager.MouseOveredViews
get

◆ DragHoveredView

Widget TaleWorlds.GauntletUI.EventManager.DragHoveredView
get

◆ DraggedWidget

Widget TaleWorlds.GauntletUI.EventManager.DraggedWidget
get

◆ DraggedWidgetPosition

Vector2 TaleWorlds.GauntletUI.EventManager.DraggedWidgetPosition
get

◆ LatestMouseDownWidget

Widget TaleWorlds.GauntletUI.EventManager.LatestMouseDownWidget
get

◆ LatestMouseUpWidget

Widget TaleWorlds.GauntletUI.EventManager.LatestMouseUpWidget
get

◆ LatestMouseAlternateDownWidget

Widget TaleWorlds.GauntletUI.EventManager.LatestMouseAlternateDownWidget
get

◆ LatestMouseAlternateUpWidget

Widget TaleWorlds.GauntletUI.EventManager.LatestMouseAlternateUpWidget
get

◆ MousePosition

Vector2 TaleWorlds.GauntletUI.EventManager.MousePosition
get

◆ DeltaMouseScroll

float TaleWorlds.GauntletUI.EventManager.DeltaMouseScroll
get

◆ RightStickVerticalScrollAmount

float TaleWorlds.GauntletUI.EventManager.RightStickVerticalScrollAmount
get

◆ RightStickHorizontalScrollAmount

float TaleWorlds.GauntletUI.EventManager.RightStickHorizontalScrollAmount
get

Event Documentation

◆ OnDragStarted

Action TaleWorlds.GauntletUI.EventManager.OnDragStarted

◆ OnDragEnded

Action TaleWorlds.GauntletUI.EventManager.OnDragEnded

◆ LoseFocus

Action TaleWorlds.GauntletUI.EventManager.LoseFocus

◆ GainFocus

Action TaleWorlds.GauntletUI.EventManager.GainFocus