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

Public Member Functions

 TextObject (string value="", Dictionary< string, object > attributes=null)
 
 TextObject (int value, Dictionary< string, object > attributes=null)
 
 TextObject (float value, Dictionary< string, object > attributes=null)
 
void CacheTokens ()
 
override string ToString ()
 
string ToStringWithoutClear ()
 
string Format (float p1)
 
bool Contains (TextObject to)
 
bool Contains (string text)
 
bool Equals (TextObject to)
 
bool HasSameValue (TextObject to)
 
TextObject SetTextVariable (string tag, TextObject variable)
 
TextObject SetTextVariable (string tag, string variable)
 
TextObject SetTextVariable (string tag, float variable)
 
TextObject SetTextVariable (string tag, int variable)
 
void AddIDToValue (string id)
 
bool GetVariableValue (string tag, out TextObject variable)
 
int GetValueHashCode ()
 
TextObject CopyTextObject ()
 
string GetID ()
 

Static Public Member Functions

static bool IsNullOrEmpty (TextObject to)
 
static List< string > ConvertToStringList (List< TextObject > to)
 

Public Attributes

string Value
 

Static Public Attributes

static TextObject Empty = new TextObject()
 

Properties

Dictionary< string, object > Attributes [get]
 
int Length [get]
 
bool IsLink [get]
 

Constructor & Destructor Documentation

◆ TextObject() [1/3]

TaleWorlds.Localization.TextObject.TextObject ( string  value = "",
Dictionary< string, object >  attributes = null 
)

◆ TextObject() [2/3]

TaleWorlds.Localization.TextObject.TextObject ( int  value,
Dictionary< string, object >  attributes = null 
)

◆ TextObject() [3/3]

TaleWorlds.Localization.TextObject.TextObject ( float  value,
Dictionary< string, object >  attributes = null 
)

Member Function Documentation

◆ CacheTokens()

void TaleWorlds.Localization.TextObject.CacheTokens ( )

◆ IsNullOrEmpty()

static bool TaleWorlds.Localization.TextObject.IsNullOrEmpty ( TextObject  to)
static

◆ ToString()

override string TaleWorlds.Localization.TextObject.ToString ( )

◆ ToStringWithoutClear()

string TaleWorlds.Localization.TextObject.ToStringWithoutClear ( )

◆ Format()

string TaleWorlds.Localization.TextObject.Format ( float  p1)

◆ Contains() [1/2]

bool TaleWorlds.Localization.TextObject.Contains ( TextObject  to)

◆ Contains() [2/2]

bool TaleWorlds.Localization.TextObject.Contains ( string  text)

◆ Equals()

bool TaleWorlds.Localization.TextObject.Equals ( TextObject  to)

◆ HasSameValue()

bool TaleWorlds.Localization.TextObject.HasSameValue ( TextObject  to)

◆ ConvertToStringList()

static List< string > TaleWorlds.Localization.TextObject.ConvertToStringList ( List< TextObject to)
static

◆ SetTextVariable() [1/4]

TextObject TaleWorlds.Localization.TextObject.SetTextVariable ( string  tag,
TextObject  variable 
)

◆ SetTextVariable() [2/4]

TextObject TaleWorlds.Localization.TextObject.SetTextVariable ( string  tag,
string  variable 
)

◆ SetTextVariable() [3/4]

TextObject TaleWorlds.Localization.TextObject.SetTextVariable ( string  tag,
float  variable 
)

◆ SetTextVariable() [4/4]

TextObject TaleWorlds.Localization.TextObject.SetTextVariable ( string  tag,
int  variable 
)

◆ AddIDToValue()

void TaleWorlds.Localization.TextObject.AddIDToValue ( string  id)

◆ GetVariableValue()

bool TaleWorlds.Localization.TextObject.GetVariableValue ( string  tag,
out TextObject  variable 
)

◆ GetValueHashCode()

int TaleWorlds.Localization.TextObject.GetValueHashCode ( )

◆ CopyTextObject()

TextObject TaleWorlds.Localization.TextObject.CopyTextObject ( )

◆ GetID()

string TaleWorlds.Localization.TextObject.GetID ( )

Member Data Documentation

◆ Value

string TaleWorlds.Localization.TextObject.Value

◆ Empty

TextObject TaleWorlds.Localization.TextObject.Empty = new TextObject()
static

Property Documentation

◆ Attributes

Dictionary<string, object> TaleWorlds.Localization.TextObject.Attributes
get

◆ Length

int TaleWorlds.Localization.TextObject.Length
get

◆ IsLink

bool TaleWorlds.Localization.TextObject.IsLink
get