PixelCrushers.DialogueSystem.TextMeshProSupport.LocalizeTextMeshPro Class Reference

Localizes the text content of a TextMeshPro and/or TextMeshProUGUI component. More...

Inheritance diagram for PixelCrushers.DialogueSystem.TextMeshProSupport.LocalizeTextMeshPro:
Collaboration diagram for PixelCrushers.DialogueSystem.TextMeshProSupport.LocalizeTextMeshPro:

Public Member Functions

override void UpdateText ()
 Set UI element's text (and possibly font) according to current language.
 
- Public Member Functions inherited from PixelCrushers.LocalizeUI
virtual void ValidateFieldNames ()
 If fieldName(s), tmpFieldName(s) are blank, set them to the UI element's text.
 
virtual void SetFieldName (string newFieldName="")
 Sets the field name, which is the key to use in the text table.
 
virtual void UpdateDropdownOptions ()
 If changing the Dropdown options, call this afterward to update the localization.
 

Properties

TMPro.TextMeshPro textMeshPro [get, set]
 
- Properties inherited from PixelCrushers.LocalizeUI
TextTable textTable [get, set]
 
LocalizedFonts localizedFonts [get, set]
 
string fieldName [get, set]
 
bool started [get]
 
List< string > fieldNames [get, set]
 
List< string > tmpFieldNames [get, set]
 
UnityEngine.UI.Text text [get, set]
 
UnityEngine.UI.Dropdown dropdown [get, set]
 

Additional Inherited Members

- Protected Member Functions inherited from PixelCrushers.LocalizeUI
virtual void Start ()
 
virtual void OnEnable ()
 
virtual bool HasLanguage (string language)
 
virtual bool HasField (string fieldName)
 
virtual string GetLocalizedText (string fieldName)
 

Detailed Description

Localizes the text content of a TextMeshPro and/or TextMeshProUGUI component.

Member Function Documentation

◆ UpdateText()

override void PixelCrushers.DialogueSystem.TextMeshProSupport.LocalizeTextMeshPro.UpdateText ( )
inlinevirtual

Set UI element's text (and possibly font) according to current language.

Reimplemented from PixelCrushers.LocalizeUI.

Property Documentation

◆ textMeshPro

TMPro.TextMeshPro PixelCrushers.DialogueSystem.TextMeshProSupport.LocalizeTextMeshPro.textMeshPro
getset

The documentation for this class was generated from the following file: