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

Public Types

enum  MouseCursors {
  System ,
  Default ,
  Attack ,
  Move ,
  HorizontalResize ,
  VerticalResize ,
  DiagonalRightResize ,
  DiagonalLeftResize ,
  Rotate ,
  Custom ,
  Disabled ,
  RightClickLink
}
 

Public Member Functions

 UIContext (TwoDimensionContext twoDimensionContext, IInputContext inputContext, IInputService inputService, SpriteData spriteData, FontFactory fontFactory, BrushFactory brushFactory)
 
 UIContext (TwoDimensionContext twoDimensionContext, IInputContext inputContext, IInputService inputService)
 
Brush GetBrush (string name)
 
void Initialize ()
 
void InitializeGamepadNavigation (IGamepadNavigationContext context)
 
void OnFinalize ()
 
void Update (float dt)
 
void LateUpdate (float dt)
 
void OnOnScreenkeyboardTextInputDone (string inputText)
 
void OnOnScreenKeyboardCanceled ()
 
bool HitTest (Widget root, Vector2 position)
 
bool HitTest (Widget root)
 
bool FocusTest (Widget root)
 
void UpdateInput (InputType handleInputs)
 
void OnMovieLoaded (string movieName)
 
void OnMovieReleased (string movieName)
 
void DrawWidgetDebugInfo ()
 

Properties

MouseCursors ActiveCursorOfContext [get, set]
 
bool IsDynamicScaleEnabled = true [get, set]
 
float ScaleModifier = 1 [get, set]
 
float ContextAlpha = 1f [get, set]
 Used for setting alpha for the whole context. Every widget in this context will use this value to multiply/calculate their final alphavalues.
 
float Scale [get]
 
float CustomScale [get]
 Scale times with Custom modifier.
 
float CustomInverseScale [get]
 
string CurrentLanugageCode [get]
 
Random UIRandom [get]
 
float InverseScale [get]
 
EventManager EventManager [get]
 
Widget Root [get]
 
ResourceDepot ResourceDepot [get]
 
TwoDimensionContext TwoDimensionContext [get]
 
IEnumerable< BrushBrushes [get]
 
Brush DefaultBrush [get]
 
SpriteData SpriteData [get]
 
BrushFactory BrushFactory [get]
 
FontFactory FontFactory [get]
 
IGamepadNavigationContext GamepadNavigation [get]
 

Member Enumeration Documentation

◆ MouseCursors

Enumerator
System 
Default 
Attack 
Move 
HorizontalResize 
VerticalResize 
DiagonalRightResize 
DiagonalLeftResize 
Rotate 
Custom 
Disabled 
RightClickLink 

Constructor & Destructor Documentation

◆ UIContext() [1/2]

TaleWorlds.GauntletUI.UIContext.UIContext ( TwoDimensionContext  twoDimensionContext,
IInputContext  inputContext,
IInputService  inputService,
SpriteData  spriteData,
FontFactory  fontFactory,
BrushFactory  brushFactory 
)

◆ UIContext() [2/2]

TaleWorlds.GauntletUI.UIContext.UIContext ( TwoDimensionContext  twoDimensionContext,
IInputContext  inputContext,
IInputService  inputService 
)

Member Function Documentation

◆ GetBrush()

Brush TaleWorlds.GauntletUI.UIContext.GetBrush ( string  name)

◆ Initialize()

void TaleWorlds.GauntletUI.UIContext.Initialize ( )

◆ InitializeGamepadNavigation()

void TaleWorlds.GauntletUI.UIContext.InitializeGamepadNavigation ( IGamepadNavigationContext  context)

◆ OnFinalize()

void TaleWorlds.GauntletUI.UIContext.OnFinalize ( )

◆ Update()

void TaleWorlds.GauntletUI.UIContext.Update ( float  dt)

◆ LateUpdate()

void TaleWorlds.GauntletUI.UIContext.LateUpdate ( float  dt)

◆ OnOnScreenkeyboardTextInputDone()

void TaleWorlds.GauntletUI.UIContext.OnOnScreenkeyboardTextInputDone ( string  inputText)

◆ OnOnScreenKeyboardCanceled()

void TaleWorlds.GauntletUI.UIContext.OnOnScreenKeyboardCanceled ( )

◆ HitTest() [1/2]

bool TaleWorlds.GauntletUI.UIContext.HitTest ( Widget  root,
Vector2  position 
)

◆ HitTest() [2/2]

bool TaleWorlds.GauntletUI.UIContext.HitTest ( Widget  root)

◆ FocusTest()

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

◆ UpdateInput()

void TaleWorlds.GauntletUI.UIContext.UpdateInput ( InputType  handleInputs)

◆ OnMovieLoaded()

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

◆ OnMovieReleased()

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

◆ DrawWidgetDebugInfo()

void TaleWorlds.GauntletUI.UIContext.DrawWidgetDebugInfo ( )

Property Documentation

◆ ActiveCursorOfContext

MouseCursors TaleWorlds.GauntletUI.UIContext.ActiveCursorOfContext
getset

◆ IsDynamicScaleEnabled

bool TaleWorlds.GauntletUI.UIContext.IsDynamicScaleEnabled = true
getset

◆ ScaleModifier

float TaleWorlds.GauntletUI.UIContext.ScaleModifier = 1
getset

◆ ContextAlpha

float TaleWorlds.GauntletUI.UIContext.ContextAlpha = 1f
getset

◆ Scale

float TaleWorlds.GauntletUI.UIContext.Scale
get

◆ CustomScale

float TaleWorlds.GauntletUI.UIContext.CustomScale
get

◆ CustomInverseScale

float TaleWorlds.GauntletUI.UIContext.CustomInverseScale
get

◆ CurrentLanugageCode

string TaleWorlds.GauntletUI.UIContext.CurrentLanugageCode
get

◆ UIRandom

Random TaleWorlds.GauntletUI.UIContext.UIRandom
get

◆ InverseScale

float TaleWorlds.GauntletUI.UIContext.InverseScale
get

◆ EventManager

EventManager TaleWorlds.GauntletUI.UIContext.EventManager
get

◆ Root

Widget TaleWorlds.GauntletUI.UIContext.Root
get

◆ ResourceDepot

ResourceDepot TaleWorlds.GauntletUI.UIContext.ResourceDepot
get

◆ TwoDimensionContext

TwoDimensionContext TaleWorlds.GauntletUI.UIContext.TwoDimensionContext
get

◆ Brushes

IEnumerable<Brush> TaleWorlds.GauntletUI.UIContext.Brushes
get

◆ DefaultBrush

Brush TaleWorlds.GauntletUI.UIContext.DefaultBrush
get

◆ SpriteData

SpriteData TaleWorlds.GauntletUI.UIContext.SpriteData
get

◆ BrushFactory

BrushFactory TaleWorlds.GauntletUI.UIContext.BrushFactory
get

◆ FontFactory

FontFactory TaleWorlds.GauntletUI.UIContext.FontFactory
get

◆ GamepadNavigation

IGamepadNavigationContext TaleWorlds.GauntletUI.UIContext.GamepadNavigation
get