Battle Talent  V11
Static Public Member Functions | Static Public Attributes | List of all members
CrossLink.LanguageMgr Class Reference

Query the text in the corresponding language More...

Static Public Member Functions

static void InitSupportLanguages ()
 
static int FindSupportedLanguage (SystemLanguage lang)
 
static int FindFullSupportedLanguage (SystemLanguage lang)
 
static SystemLanguage ProcessLanguage (SystemLanguage language)
 
static void CheckLanguage ()
 
static string Highlight (string content)
 
static string Lowlight (string content)
 
static string GetTextIDWithInputDeviceType (string textID)
 
static string GetText (string textID)
 get the text in the corresponding language, if the traslation text is missing, then it'll return English version More...
 
static bool IsIDExist (string textID)
 
static string GetTexture (string texID)
 get the texture in the corresponding language, if the traslation text is missing, then it'll return English version More...
 

Static Public Attributes

static LanguageMgr Instance = new LanguageMgr()
 
static Dictionary< SystemLanguage, bool > LanguageComplete = null
 
static Dictionary< string, SystemLanguage > LanguageCode = null
 
static SystemLanguage[] SupportLanguages = null
 
static SystemLanguage[] FullSupportLanguages = null
 
static string[] DisplayLanguages = null
 
static string[] SettingsLanguages = null
 
static int currentLanguageIndex = -1
 
static int defaultLanguageIndex = 0
 
static System.Action LangChangeEvent
 

Detailed Description

Query the text in the corresponding language

Member Function Documentation

◆ CheckLanguage()

static void CrossLink.LanguageMgr.CheckLanguage ( )
static

GAME_RELEASE || UNITY_EDITOR

◆ GetText()

static string CrossLink.LanguageMgr.GetText ( string  textID)
static

get the text in the corresponding language, if the traslation text is missing, then it'll return English version

Parameters
textID
Returns

◆ GetTexture()

static string CrossLink.LanguageMgr.GetTexture ( string  texID)
static

get the texture in the corresponding language, if the traslation text is missing, then it'll return English version

Parameters
textID
Returns