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

Public Member Functions

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 ()
 
void OnMovieLoaded (string movieName)
 
void OnMovieReleased (string movieName)
 
bool GetIsHitThisFrame ()
 
bool GetIsBlockedAtPosition (Vector2 position)
 
int GetLastScreenOrder ()
 
bool IsAvailableForNavigation ()
 
void OnWidgetUsedNavigationMovementsUpdated (Widget widget)
 
void OnGainNavigation ()
 
void GainNavigationAfterFrames (int frameCount, Func< bool > predicate=null)
 
void GainNavigationAfterTime (float seconds, Func< bool > predicate=null)
 
void OnWidgetNavigationStatusChanged (Widget widget)
 
void OnWidgetNavigationIndexUpdated (Widget widget)
 
void AddNavigationScope (GamepadNavigationScope scope, bool initialize=false)
 
void RemoveNavigationScope (GamepadNavigationScope scope)
 
void AddForcedScopeCollection (GamepadNavigationForcedScopeCollection collection)
 
void RemoveForcedScopeCollection (GamepadNavigationForcedScopeCollection collection)
 
bool HasNavigationScope (GamepadNavigationScope scope)
 
bool HasNavigationScope (Func< GamepadNavigationScope, bool > predicate)
 

Static Public Member Functions

static bool HitTest (Widget widget, Vector2 position)
 

Public Attributes

Func< bool > OnGetIsHitThisFrame
 
Func< Vector2, bool > OnGetIsBlockedAtPosition
 
Func< int > OnGetLastScreenOrder
 
Func< bool > OnGetIsAvailableForGamepadNavigation
 

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

◆ 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 ( )

◆ OnMovieLoaded()

void TaleWorlds.GauntletUI.EventManager.OnMovieLoaded ( string  movieName)

◆ OnMovieReleased()

void TaleWorlds.GauntletUI.EventManager.OnMovieReleased ( string  movieName)

◆ GetIsHitThisFrame()

bool TaleWorlds.GauntletUI.EventManager.GetIsHitThisFrame ( )

◆ GetIsBlockedAtPosition()

bool TaleWorlds.GauntletUI.EventManager.GetIsBlockedAtPosition ( Vector2  position)

◆ GetLastScreenOrder()

int TaleWorlds.GauntletUI.EventManager.GetLastScreenOrder ( )

◆ IsAvailableForNavigation()

bool TaleWorlds.GauntletUI.EventManager.IsAvailableForNavigation ( )

◆ OnWidgetUsedNavigationMovementsUpdated()

void TaleWorlds.GauntletUI.EventManager.OnWidgetUsedNavigationMovementsUpdated ( Widget  widget)

◆ OnGainNavigation()

void TaleWorlds.GauntletUI.EventManager.OnGainNavigation ( )

◆ GainNavigationAfterFrames()

void TaleWorlds.GauntletUI.EventManager.GainNavigationAfterFrames ( int  frameCount,
Func< bool >  predicate = null 
)

◆ GainNavigationAfterTime()

void TaleWorlds.GauntletUI.EventManager.GainNavigationAfterTime ( float  seconds,
Func< bool >  predicate = null 
)

◆ OnWidgetNavigationStatusChanged()

void TaleWorlds.GauntletUI.EventManager.OnWidgetNavigationStatusChanged ( Widget  widget)

◆ OnWidgetNavigationIndexUpdated()

void TaleWorlds.GauntletUI.EventManager.OnWidgetNavigationIndexUpdated ( Widget  widget)

◆ AddNavigationScope()

void TaleWorlds.GauntletUI.EventManager.AddNavigationScope ( GamepadNavigationScope  scope,
bool  initialize = false 
)

◆ RemoveNavigationScope()

void TaleWorlds.GauntletUI.EventManager.RemoveNavigationScope ( GamepadNavigationScope  scope)

◆ AddForcedScopeCollection()

void TaleWorlds.GauntletUI.EventManager.AddForcedScopeCollection ( GamepadNavigationForcedScopeCollection  collection)

◆ RemoveForcedScopeCollection()

void TaleWorlds.GauntletUI.EventManager.RemoveForcedScopeCollection ( GamepadNavigationForcedScopeCollection  collection)

◆ HasNavigationScope() [1/2]

bool TaleWorlds.GauntletUI.EventManager.HasNavigationScope ( GamepadNavigationScope  scope)

◆ HasNavigationScope() [2/2]

bool TaleWorlds.GauntletUI.EventManager.HasNavigationScope ( Func< GamepadNavigationScope, bool >  predicate)

Member Data Documentation

◆ MinParallelUpdateCount

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

◆ OnGetIsHitThisFrame

Func<bool> TaleWorlds.GauntletUI.EventManager.OnGetIsHitThisFrame

◆ OnGetIsBlockedAtPosition

Func<Vector2, bool> TaleWorlds.GauntletUI.EventManager.OnGetIsBlockedAtPosition

◆ OnGetLastScreenOrder

Func<int> TaleWorlds.GauntletUI.EventManager.OnGetLastScreenOrder

◆ OnGetIsAvailableForGamepadNavigation

Func<bool> TaleWorlds.GauntletUI.EventManager.OnGetIsAvailableForGamepadNavigation

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