Kerbal Space Program  1.12.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros
Public Member Functions | Public Attributes | Properties | List of all members
KSP.Localization.FontSettings Class Reference

Public Member Functions

void AddSubFont (string langCode, bool append, params TMPro.TMP_FontAsset[] fonts)
 Adds a new subfont to the font settings More...
 
bool ChangeLanguage (string langCode)
 Changes the font language More...
 
bool ChangeLanguage ()
 Enables all subfonts assets More...
 
void CleanSubFonts ()
 Remove all subfonts from the current font settings More...
 
 FontSettings ()
 

Public Attributes

TMPro.TMP_FontAsset Font
 
List< FontLangSettingsLanguageSettings
 

Properties

FontLangSettings this[string langCode] [get]
 

Constructor & Destructor Documentation

KSP.Localization.FontSettings.FontSettings ( )
inline

Member Function Documentation

void KSP.Localization.FontSettings.AddSubFont ( string  langCode,
bool  append,
params TMPro.TMP_FontAsset[]  fonts 
)
inline

Adds a new subfont to the font settings

Parameters
langCodeLang code string
appendShould the new subfont append if the langCode already exist or should override
fontsList of fonts to be added to this language
bool KSP.Localization.FontSettings.ChangeLanguage ( string  langCode)
inline

Changes the font language

Parameters
langCodeLang code string
bool KSP.Localization.FontSettings.ChangeLanguage ( )
inline

Enables all subfonts assets

Returns
void KSP.Localization.FontSettings.CleanSubFonts ( )
inline

Remove all subfonts from the current font settings

Member Data Documentation

TMPro.TMP_FontAsset KSP.Localization.FontSettings.Font
List<FontLangSettings> KSP.Localization.FontSettings.LanguageSettings

Property Documentation

FontLangSettings KSP.Localization.FontSettings.this[string langCode]
get

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