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

Inherits TaleWorlds.GauntletUI.BaseTypes.Widget.

Public Types

enum  TooltipPropertyFlags {
  None = 0 ,
  MultiLine = 1 ,
  BattleMode = 2 ,
  BattleModeOver = 4 ,
  WarFirstEnemy = 8 ,
  WarFirstAlly = 16 ,
  WarFirstNeutral = 32 ,
  WarSecondEnemy = 64 ,
  WarSecondAlly = 128 ,
  WarSecondNeutral = 256 ,
  RundownSeperator = 512 ,
  DefaultSeperator = 1024 ,
  Cost = 2048 ,
  Title = 4096 ,
  RundownResult = 8192
}
 

Public Member Functions

 TooltipPropertyWidget (UIContext context)
 
void SetBattleScope (bool battleScope)
 
void RefreshSize (bool inBattleScope, float battleScopeSize, float maxValueLabelSizeX, float maxDefinitionLabelSizeX, Brush definitionRelationBrush=null, Brush valueRelationBrush=null)
 
- Public Member Functions inherited from TaleWorlds.GauntletUI.BaseTypes.Widget
void ApplyActionOnAllChildren (Action< Widget > action)
 
 Widget (UIContext context)
 
GetComponent< T > ()
 
void AddComponent (WidgetComponent component)
 
void AddState (string stateName)
 
bool ContainsState (string stateName)
 
virtual void SetState (string stateName)
 
Widget FindChild (BindingPath path)
 
Widget FindChild (string singlePathNode)
 
Widget FindChild (WidgetSearchDelegate widgetSearchDelegate)
 
Widget FindChild (string id, bool includeAllChildren=false)
 
void RemoveAllChildren ()
 
virtual void UpdateAnimationPropertiesSubTask (float alphaFactor)
 
void Measure (Vector2 measureSpec)
 
bool CheckIsMyChildRecursive (Widget child)
 
void AddChild (Widget widget)
 
void AddChildAtIndex (Widget widget, int index)
 
void SwapChildren (Widget widget1, Widget widget2)
 
void RemoveChild (Widget widget)
 
virtual void OnBeforeRemovedChild (Widget widget)
 Called before binding is broken and child is removed Be careful not to invalidate datasource data in here!
 
bool HasChild (Widget widget)
 
virtual void UpdateBrushes (float dt)
 
int GetChildIndex (Widget child)
 
int GetVisibleChildIndex (Widget child)
 
int GetFilterChildIndex (Widget child, Func< Widget, bool > childrenFilter)
 
Widget GetChild (int i)
 
void Layout (float left, float bottom, float right, float top)
 
virtual void HandleInput (IReadOnlyList< int > lastKeysPressed)
 
bool IsPointInsideMeasuredArea (Vector2 p)
 
bool IsPointInsideGamepadCursorArea (Vector2 p)
 
void Hide ()
 
void Show ()
 
Vector2 GetLocalPoint (Vector2 globalPoint)
 Transforms a global point to local coordinates for this widget.
 
void SetSiblingIndex (int index, bool force=false)
 
int GetSiblingIndex ()
 
int GetVisibleSiblingIndex ()
 
void Render (TwoDimensionContext twoDimensionContext, TwoDimensionDrawContext drawContext)
 
bool IsRecursivelyVisible ()
 
override string ToString ()
 
void OnGamepadNavigationFocusGain ()
 

Protected Member Functions

override void OnUpdate (float dt)
 
override void OnLateUpdate (float dt)
 
- Protected Member Functions inherited from TaleWorlds.GauntletUI.BaseTypes.Widget
void SetMeasureAndLayoutDirty ()
 
void SetMeasureDirty ()
 
void SetLayoutDirty ()
 
virtual void OnUpdate (float dt)
 
virtual void OnParallelUpdate (float dt)
 
virtual void OnLateUpdate (float dt)
 
virtual void RefreshState ()
 
virtual void OnChildAdded (Widget child)
 
virtual void OnChildRemoved (Widget child)
 
virtual void OnAfterChildRemoved (Widget child)
 
virtual void OnRender (TwoDimensionContext twoDimensionContext, TwoDimensionDrawContext drawContext)
 
void EventFired (string eventName, params object[] args)
 
virtual void OnDisconnectedFromRoot ()
 
virtual void OnConnectedToRoot ()
 
virtual void OnGamepadNavigationIndexUpdated (int newIndex)
 
virtual bool OnPreviewMousePressed ()
 
virtual bool OnPreviewMouseReleased ()
 
virtual bool OnPreviewMouseAlternatePressed ()
 
virtual bool OnPreviewMouseAlternateReleased ()
 
virtual bool OnPreviewDragBegin ()
 
virtual bool OnPreviewDragEnd ()
 
virtual bool OnPreviewDrop ()
 
virtual bool OnPreviewMouseScroll ()
 
virtual bool OnPreviewRightStickMovement ()
 
virtual bool OnPreviewMouseMove ()
 
virtual bool OnPreviewDragHover ()
 
- Protected Member Functions inherited from TaleWorlds.GauntletUI.PropertyOwnerObject
void OnPropertyChanged< T > (T value, [CallerMemberName]string propertyName=null)
 
void OnPropertyChanged (int value, [CallerMemberName] string propertyName=null)
 
void OnPropertyChanged (float value, [CallerMemberName] string propertyName=null)
 
void OnPropertyChanged (bool value, [CallerMemberName] string propertyName=null)
 
void OnPropertyChanged (Vec2 value, [CallerMemberName] string propertyName=null)
 
void OnPropertyChanged (Vector2 value, [CallerMemberName] string propertyName=null)
 
void OnPropertyChanged (double value, [CallerMemberName] string propertyName=null)
 
void OnPropertyChanged (uint value, [CallerMemberName] string propertyName=null)
 
void OnPropertyChanged (Color value, [CallerMemberName] string propertyName=null)
 

Properties

bool IsTwoColumn [get]
 
TooltipPropertyFlags PropertyModifierAsFlag [get]
 
bool IsMultiLine [get]
 
bool IsBattleMode [get]
 
bool IsBattleModeOver [get]
 
bool IsCost [get]
 
bool IsRelation [get]
 
string RundownSeperatorSpriteName [get, set]
 
string DefaultSeperatorSpriteName [get, set]
 
string TitleBackgroundSpriteName [get, set]
 
Brush ValueNameTextBrush [get, set]
 
Brush TitleTextBrush [get, set]
 
Brush SubtextBrush [get, set]
 
Brush ValueTextBrush [get, set]
 
Brush DescriptionTextBrush [get, set]
 
bool ModifyDefinitionColor [get, set]
 
RichTextWidget DefinitionLabel [get, set]
 
RichTextWidget ValueLabel [get, set]
 
ListPanel ValueBackgroundSpriteWidget [get, set]
 
Widget DefinitionLabelContainer [get, set]
 
Widget ValueLabelContainer [get, set]
 
Color TextColor [get, set]
 
int TextHeight [get, set]
 
string DefinitionText [get, set]
 
string ValueText [get, set]
 
int PropertyModifier [get, set]
 
- Properties inherited from TaleWorlds.GauntletUI.BaseTypes.Widget
float ColorFactor = 1f [get, set]
 
float AlphaFactor = 1f [get, set]
 
float ValueFactor [get, set]
 
float SaturationFactor [get, set]
 
float ExtendLeft [get, set]
 
float ExtendRight [get, set]
 
float ExtendTop [get, set]
 
float ExtendBottom [get, set]
 
bool VerticalFlip [get, set]
 
bool HorizontalFlip [get, set]
 
bool FrictionEnabled [get, set]
 Enables gamepad cursor friction while hovering over this widget.
 
Color Color [get, set]
 
string Id [get, set]
 
Vector2 LocalPosition [get]
 
Vector2 GlobalPosition [get]
 
bool DoNotUseCustomScaleAndChildren [get, set]
 
bool DoNotUseCustomScale [get, set]
 
float _scaleToUse [get]
 
float _inverseScaleToUse [get]
 
Vector2 Size [get]
 
float SuggestedWidth [get, set]
 
float SuggestedHeight [get, set]
 
float ScaledSuggestedWidth [get, set]
 
float ScaledSuggestedHeight [get, set]
 
bool TweenPosition [get, set]
 
string HoveredCursorState [get, set]
 
bool AlternateClickEventHasSpecialEvent [get, set]
 
Vector2 PosOffset [get, set]
 
Vector2 ScaledPositionOffset [get]
 
float PositionXOffset [get, set]
 
float PositionYOffset [get, set]
 
float ScaledPositionXOffset [get, set]
 
float ScaledPositionYOffset [get, set]
 
Widget ParentWidget [get, set]
 
EventManager EventManager [get]
 
IGamepadNavigationContext GamepadNavigationContext [get]
 
UIContext Context [get]
 
Vector2 MeasuredSize [get]
 
float MarginTop [get, set]
 
float MarginLeft [get, set]
 
float MarginBottom [get, set]
 
float MarginRight [get, set]
 
float ScaledMarginTop [get]
 
float ScaledMarginLeft [get]
 
float ScaledMarginBottom [get]
 
float ScaledMarginRight [get]
 
VerticalAlignment VerticalAlignment [get, set]
 
HorizontalAlignment HorizontalAlignment [get, set]
 
float Left [get]
 
float Top [get]
 
float Right [get]
 
float Bottom [get]
 
int ChildCount [get]
 
bool ForcePixelPerfectRenderPlacement [get, set]
 
bool UseGlobalTimeForAnimation [get, set]
 
SizePolicy WidthSizePolicy [get, set]
 
SizePolicy HeightSizePolicy [get, set]
 
bool AcceptDrag [get, set]
 
bool AcceptDrop [get, set]
 
bool HideOnDrag = true [get, set]
 
Widget DragWidget [get, set]
 
bool ClipContents [get, set]
 
bool ClipHorizontalContent [get, set]
 
bool ClipVerticalContent [get, set]
 
bool CircularClipEnabled [get, set]
 
float CircularClipRadius [get, set]
 
bool IsCircularClipRadiusHalfOfWidth [get, set]
 
bool IsCircularClipRadiusHalfOfHeight [get, set]
 
float CircularClipSmoothingRadius [get, set]
 
float CircularClipXOffset [get, set]
 
float CircularClipYOffset [get, set]
 
bool RenderLate [get, set]
 
bool DoNotRenderIfNotFullyInsideScissor [get, set]
 
bool FixedWidth [get]
 
bool FixedHeight [get]
 
bool IsHovered [get]
 
bool IsDisabled [get, set]
 
bool IsFocusable [get, set]
 
bool IsFocused [get]
 
bool IsEnabled [get, set]
 
bool RestartAnimationFirstFrame [get, set]
 
bool DoNotPassEventsToChildren [get, set]
 
bool DoNotAcceptEvents [get, set]
 
bool CanAcceptEvents [get, set]
 
bool IsPressed [get]
 
bool IsHidden [get, set]
 
bool IsVisible [get, set]
 
Sprite Sprite [get, set]
 
VisualDefinition VisualDefinition [get, set]
 
string CurrentState = "" [get, protected set]
 
bool UpdateChildrenStates [get, set]
 
object Tag [get, set]
 
ILayout LayoutImp [get, protected set]
 
bool DropEventHandledManually [get, set]
 
IEnumerable< WidgetAllChildrenAndThis [get]
 
IEnumerable< WidgetAllChildren [get]
 
List< WidgetChildren [get]
 
IEnumerable< WidgetParents [get]
 
float MaxWidth [get, set]
 
float MaxHeight [get, set]
 
float MinWidth [get, set]
 
float MinHeight [get, set]
 
float ScaledMaxWidth [get]
 
float ScaledMaxHeight [get]
 
float ScaledMinWidth [get]
 
float ScaledMinHeight [get]
 
bool DisableRender [get, set]
 
Action< Widget, string, object[]> EventFire
 
float ExtendCursorAreaTop [get, set]
 
float ExtendCursorAreaRight [get, set]
 
float ExtendCursorAreaBottom [get, set]
 
float ExtendCursorAreaLeft [get, set]
 
float CursorAreaXOffset [get, set]
 
float CursorAreaYOffset [get, set]
 
bool AcceptNavigation [get, set]
 
bool DoNotAcceptNavigation [get, set]
 
bool IsUsingNavigation [get, set]
 
bool UseSiblingIndexForNavigation [get, set]
 
int GamepadNavigationIndex [get, set]
 
GamepadNavigationTypes UsedNavigationMovements [get, set]
 

Additional Inherited Members

- Public Attributes inherited from TaleWorlds.GauntletUI.BaseTypes.Widget
Func< Widget, Widget, bool > AcceptDropHandler
 
Action< WidgetOnGamepadNavigationFocusGained
 
- Protected Attributes inherited from TaleWorlds.GauntletUI.BaseTypes.Widget
Vector2 _cachedGlobalPosition
 
bool _calculateSizeFirstFrame = true
 
float _stateTimer
 
VisualState _startVisualState
 
VisualStateAnimationState _currentVisualStateAnimationState
 
int _seed
 
- Events inherited from TaleWorlds.GauntletUI.BaseTypes.Widget
Action< WidgetOnVisibilityChanged
 
- Events inherited from TaleWorlds.GauntletUI.PropertyOwnerObject
Action< PropertyOwnerObject, string, object > PropertyChanged
 
Action< PropertyOwnerObject, string, bool > boolPropertyChanged
 
Action< PropertyOwnerObject, string, int > intPropertyChanged
 
Action< PropertyOwnerObject, string, float > floatPropertyChanged
 
Action< PropertyOwnerObject, string, Vec2Vec2PropertyChanged
 
Action< PropertyOwnerObject, string, Vector2 > Vector2PropertyChanged
 
Action< PropertyOwnerObject, string, double > doublePropertyChanged
 
Action< PropertyOwnerObject, string, uint > uintPropertyChanged
 
Action< PropertyOwnerObject, string, ColorColorPropertyChanged
 

Member Enumeration Documentation

◆ TooltipPropertyFlags

Enumerator
None 
MultiLine 
BattleMode 
BattleModeOver 
WarFirstEnemy 
WarFirstAlly 
WarFirstNeutral 
WarSecondEnemy 
WarSecondAlly 
WarSecondNeutral 
RundownSeperator 
DefaultSeperator 
Cost 
Title 
RundownResult 

Constructor & Destructor Documentation

◆ TooltipPropertyWidget()

TaleWorlds.MountAndBlade.GauntletUI.Widgets.Information.TooltipPropertyWidget.TooltipPropertyWidget ( UIContext  context)

Member Function Documentation

◆ SetBattleScope()

void TaleWorlds.MountAndBlade.GauntletUI.Widgets.Information.TooltipPropertyWidget.SetBattleScope ( bool  battleScope)

◆ RefreshSize()

void TaleWorlds.MountAndBlade.GauntletUI.Widgets.Information.TooltipPropertyWidget.RefreshSize ( bool  inBattleScope,
float  battleScopeSize,
float  maxValueLabelSizeX,
float  maxDefinitionLabelSizeX,
Brush  definitionRelationBrush = null,
Brush  valueRelationBrush = null 
)

◆ OnUpdate()

override void TaleWorlds.MountAndBlade.GauntletUI.Widgets.Information.TooltipPropertyWidget.OnUpdate ( float  dt)
protectedvirtual

◆ OnLateUpdate()

override void TaleWorlds.MountAndBlade.GauntletUI.Widgets.Information.TooltipPropertyWidget.OnLateUpdate ( float  dt)
protectedvirtual

Property Documentation

◆ IsTwoColumn

bool TaleWorlds.MountAndBlade.GauntletUI.Widgets.Information.TooltipPropertyWidget.IsTwoColumn
get

◆ PropertyModifierAsFlag

TooltipPropertyFlags TaleWorlds.MountAndBlade.GauntletUI.Widgets.Information.TooltipPropertyWidget.PropertyModifierAsFlag
get

◆ IsMultiLine

bool TaleWorlds.MountAndBlade.GauntletUI.Widgets.Information.TooltipPropertyWidget.IsMultiLine
get

◆ IsBattleMode

bool TaleWorlds.MountAndBlade.GauntletUI.Widgets.Information.TooltipPropertyWidget.IsBattleMode
get

◆ IsBattleModeOver

bool TaleWorlds.MountAndBlade.GauntletUI.Widgets.Information.TooltipPropertyWidget.IsBattleModeOver
get

◆ IsCost

bool TaleWorlds.MountAndBlade.GauntletUI.Widgets.Information.TooltipPropertyWidget.IsCost
get

◆ IsRelation

bool TaleWorlds.MountAndBlade.GauntletUI.Widgets.Information.TooltipPropertyWidget.IsRelation
get

◆ RundownSeperatorSpriteName

string TaleWorlds.MountAndBlade.GauntletUI.Widgets.Information.TooltipPropertyWidget.RundownSeperatorSpriteName
getset

◆ DefaultSeperatorSpriteName

string TaleWorlds.MountAndBlade.GauntletUI.Widgets.Information.TooltipPropertyWidget.DefaultSeperatorSpriteName
getset

◆ TitleBackgroundSpriteName

string TaleWorlds.MountAndBlade.GauntletUI.Widgets.Information.TooltipPropertyWidget.TitleBackgroundSpriteName
getset

◆ ValueNameTextBrush

Brush TaleWorlds.MountAndBlade.GauntletUI.Widgets.Information.TooltipPropertyWidget.ValueNameTextBrush
getset

◆ TitleTextBrush

Brush TaleWorlds.MountAndBlade.GauntletUI.Widgets.Information.TooltipPropertyWidget.TitleTextBrush
getset

◆ SubtextBrush

Brush TaleWorlds.MountAndBlade.GauntletUI.Widgets.Information.TooltipPropertyWidget.SubtextBrush
getset

◆ ValueTextBrush

Brush TaleWorlds.MountAndBlade.GauntletUI.Widgets.Information.TooltipPropertyWidget.ValueTextBrush
getset

◆ DescriptionTextBrush

Brush TaleWorlds.MountAndBlade.GauntletUI.Widgets.Information.TooltipPropertyWidget.DescriptionTextBrush
getset

◆ ModifyDefinitionColor

bool TaleWorlds.MountAndBlade.GauntletUI.Widgets.Information.TooltipPropertyWidget.ModifyDefinitionColor
getset

◆ DefinitionLabel

RichTextWidget TaleWorlds.MountAndBlade.GauntletUI.Widgets.Information.TooltipPropertyWidget.DefinitionLabel
getset

◆ ValueLabel

RichTextWidget TaleWorlds.MountAndBlade.GauntletUI.Widgets.Information.TooltipPropertyWidget.ValueLabel
getset

◆ ValueBackgroundSpriteWidget

ListPanel TaleWorlds.MountAndBlade.GauntletUI.Widgets.Information.TooltipPropertyWidget.ValueBackgroundSpriteWidget
getset

◆ DefinitionLabelContainer

Widget TaleWorlds.MountAndBlade.GauntletUI.Widgets.Information.TooltipPropertyWidget.DefinitionLabelContainer
getset

◆ ValueLabelContainer

Widget TaleWorlds.MountAndBlade.GauntletUI.Widgets.Information.TooltipPropertyWidget.ValueLabelContainer
getset

◆ TextColor

Color TaleWorlds.MountAndBlade.GauntletUI.Widgets.Information.TooltipPropertyWidget.TextColor
getset

◆ TextHeight

int TaleWorlds.MountAndBlade.GauntletUI.Widgets.Information.TooltipPropertyWidget.TextHeight
getset

◆ DefinitionText

string TaleWorlds.MountAndBlade.GauntletUI.Widgets.Information.TooltipPropertyWidget.DefinitionText
getset

◆ ValueText

string TaleWorlds.MountAndBlade.GauntletUI.Widgets.Information.TooltipPropertyWidget.ValueText
getset

◆ PropertyModifier

int TaleWorlds.MountAndBlade.GauntletUI.Widgets.Information.TooltipPropertyWidget.PropertyModifier
getset