PixelCrushers.LocalizeUI Class Reference
Inheritance diagram for PixelCrushers.LocalizeUI:
Collaboration diagram for PixelCrushers.LocalizeUI:

Public Member Functions

virtual void ValidateFieldNames ()
 If fieldName(s), tmpFieldName(s) are blank, set them to the UI element's text.
 
virtual void UpdateText ()
 Set UI element's text (and possibly font) according to current language.
 
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.
 

Protected Member Functions

virtual void Start ()
 
virtual void OnEnable ()
 
virtual bool HasLanguage (string language)
 
virtual bool HasField (string fieldName)
 
virtual string GetLocalizedText (string fieldName)
 

Properties

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]
 

Member Function Documentation

◆ GetLocalizedText()

virtual string PixelCrushers.LocalizeUI.GetLocalizedText ( string  fieldName)
inlineprotectedvirtual

◆ HasField()

virtual bool PixelCrushers.LocalizeUI.HasField ( string  fieldName)
inlineprotectedvirtual

◆ HasLanguage()

virtual bool PixelCrushers.LocalizeUI.HasLanguage ( string  language)
inlineprotectedvirtual

◆ OnEnable()

virtual void PixelCrushers.LocalizeUI.OnEnable ( )
inlineprotectedvirtual

◆ SetFieldName()

virtual void PixelCrushers.LocalizeUI.SetFieldName ( string  newFieldName = "")
inlinevirtual

Sets the field name, which is the key to use in the text table.

By default, the field name is the initial value of the Text component.

Parameters
fieldNameField name.

◆ Start()

virtual void PixelCrushers.LocalizeUI.Start ( )
inlineprotectedvirtual

◆ UpdateDropdownOptions()

virtual void PixelCrushers.LocalizeUI.UpdateDropdownOptions ( )
inlinevirtual

If changing the Dropdown options, call this afterward to update the localization.

◆ UpdateText()

virtual void PixelCrushers.LocalizeUI.UpdateText ( )
inlinevirtual

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

Reimplemented in PixelCrushers.DialogueSystem.TextMeshProSupport.LocalizeTextMeshPro.

◆ ValidateFieldNames()

virtual void PixelCrushers.LocalizeUI.ValidateFieldNames ( )
inlinevirtual

If fieldName(s), tmpFieldName(s) are blank, set them to the UI element's text.

Property Documentation

◆ dropdown

UnityEngine.UI.Dropdown PixelCrushers.LocalizeUI.dropdown
getset

◆ fieldName

string PixelCrushers.LocalizeUI.fieldName
getset

◆ fieldNames

List<string> PixelCrushers.LocalizeUI.fieldNames
getset

◆ localizedFonts

LocalizedFonts PixelCrushers.LocalizeUI.localizedFonts
getset

◆ started

bool PixelCrushers.LocalizeUI.started
getprotected

◆ text

UnityEngine.UI.Text PixelCrushers.LocalizeUI.text
getset

◆ textTable

TextTable PixelCrushers.LocalizeUI.textTable
getset

◆ tmpFieldNames

List<string> PixelCrushers.LocalizeUI.tmpFieldNames
getset

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