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

Inherits TaleWorlds.TwoDimension.RichText.

Public Member Functions

 EditableText (int width, int height, Font font, Func< int, Font > getUsableFontForCharacter)
 
void SetCursorPosition (int position, bool visible)
 
void BlinkCursor ()
 
bool IsCursorVisible ()
 
void ResetSelected ()
 
void BeginSelection ()
 
bool IsAnySelected ()
 
Vector2 GetCursorPosition (Font font, float fontSize, float scale)
 
override void Update (SpriteData spriteData, Vector2 focusPosition, bool focus, bool isFixedWidth, bool isFixedHeight, float renderScale)
 
void SelectAll ()
 
int FindNextWordPosition (int direction)
 
void SetCursor (int position, bool visible=true, bool withSelection=false)
 
- Public Member Functions inherited from TaleWorlds.TwoDimension.RichText
 RichText (int width, int height, Font font, Func< int, Font > getUsableFontForCharacter)
 
virtual void Update (SpriteData spriteData, Vector2 focusPosition, bool focus, bool isFixedWidth, bool isFixedHeight, float renderScale)
 
void SetAllDirty ()
 
Vector2 GetPreferredSize (bool fixedWidth, float widthSize, bool fixedHeight, float heightSize, SpriteData spriteData, float renderScale)
 
void CalculateTextOutput (bool fixedWidth, bool fixedHeight, float width, float height, SpriteData spriteData, float renderScale)
 
void UpdateSize (int width, int height)
 
List< RichTextPartGetParts ()
 
Vector2 GetPreferredSize (bool fixedWidth, float widthSize, bool fixedHeight, float heightSize, SpriteData spriteData, float renderScale)
 

Properties

int CursorPosition [get]
 
bool HighlightStart [get, set]
 
bool HighlightEnd [get, set]
 
int SelectedTextBegin [get]
 
int SelectedTextEnd [get]
 
float BlinkTimer [get, set]
 
string VisibleText [get, set]
 
- Properties inherited from TaleWorlds.TwoDimension.RichText
string CurrentStyle = "Default" [get, set]
 
int TextHeight [get]
 
StyleFontContainer StyleFontContainer [get]
 
TextHorizontalAlignment HorizontalAlignment [get, set]
 
TextVerticalAlignment VerticalAlignment [get, set]
 
string Value [get, set]
 
RichTextLinkGroup FocusedLinkGroup [get]
 
bool SkipLineOnContainerExceeded [get, set]
 
- Properties inherited from TaleWorlds.TwoDimension.IText
string Value [get, set]
 
TextHorizontalAlignment HorizontalAlignment [get, set]
 
TextVerticalAlignment VerticalAlignment [get, set]
 

Additional Inherited Members

- Public Attributes inherited from TaleWorlds.TwoDimension.RichText
ILanguage CurrentLanguage
 

Constructor & Destructor Documentation

◆ EditableText()

TaleWorlds.TwoDimension.EditableText.EditableText ( int  width,
int  height,
Font  font,
Func< int, Font getUsableFontForCharacter 
)

Member Function Documentation

◆ SetCursorPosition()

void TaleWorlds.TwoDimension.EditableText.SetCursorPosition ( int  position,
bool  visible 
)

◆ BlinkCursor()

void TaleWorlds.TwoDimension.EditableText.BlinkCursor ( )

◆ IsCursorVisible()

bool TaleWorlds.TwoDimension.EditableText.IsCursorVisible ( )

◆ ResetSelected()

void TaleWorlds.TwoDimension.EditableText.ResetSelected ( )

◆ BeginSelection()

void TaleWorlds.TwoDimension.EditableText.BeginSelection ( )

◆ IsAnySelected()

bool TaleWorlds.TwoDimension.EditableText.IsAnySelected ( )

◆ GetCursorPosition()

Vector2 TaleWorlds.TwoDimension.EditableText.GetCursorPosition ( Font  font,
float  fontSize,
float  scale 
)

◆ Update()

override void TaleWorlds.TwoDimension.EditableText.Update ( SpriteData  spriteData,
Vector2  focusPosition,
bool  focus,
bool  isFixedWidth,
bool  isFixedHeight,
float  renderScale 
)
virtual

Reimplemented from TaleWorlds.TwoDimension.RichText.

◆ SelectAll()

void TaleWorlds.TwoDimension.EditableText.SelectAll ( )

◆ FindNextWordPosition()

int TaleWorlds.TwoDimension.EditableText.FindNextWordPosition ( int  direction)

◆ SetCursor()

void TaleWorlds.TwoDimension.EditableText.SetCursor ( int  position,
bool  visible = true,
bool  withSelection = false 
)

Property Documentation

◆ CursorPosition

int TaleWorlds.TwoDimension.EditableText.CursorPosition
get

◆ HighlightStart

bool TaleWorlds.TwoDimension.EditableText.HighlightStart
getset

◆ HighlightEnd

bool TaleWorlds.TwoDimension.EditableText.HighlightEnd
getset

◆ SelectedTextBegin

int TaleWorlds.TwoDimension.EditableText.SelectedTextBegin
get

◆ SelectedTextEnd

int TaleWorlds.TwoDimension.EditableText.SelectedTextEnd
get

◆ BlinkTimer

float TaleWorlds.TwoDimension.EditableText.BlinkTimer
getset

◆ VisibleText

string TaleWorlds.TwoDimension.EditableText.VisibleText
getset