Endstar LUA API Documentation
Loading...
Searching...
No Matches
LocalizedStringFactory Class Reference

A utility class for generating LocalizedStrings! A LocalizedString is a collection of strings associated with a Language. Often used for displaying text on signs or when talking to Npcs. Try using this with TextBubble.SetLocalizedText()! More...

Public Member Functions

LocalizedString Create (string text)
 Returns a LocalizedString with the provided text associated with English.
 
LocalizedString Create (int language, string text)
 Returns a LocalizedString with the provided text associated with the provided language.
 

Detailed Description

A utility class for generating LocalizedStrings! A LocalizedString is a collection of strings associated with a Language. Often used for displaying text on signs or when talking to Npcs. Try using this with TextBubble.SetLocalizedText()!

Member Function Documentation

◆ Create() [1/2]

LocalizedString Create ( int language,
string text )

Returns a LocalizedString with the provided text associated with the provided language.

Parameters
languageThe Language to associate the text with
textThe text of the LocalizedString
Returns
A new LocalizedString with the provided text and associated Language.

◆ Create() [2/2]

LocalizedString Create ( string text)

Returns a LocalizedString with the provided text associated with English.

Parameters
textThe text of the LocalizedString
Returns
A new LocalizedString with the provided text.