PixelCrushers.DialogueSystem.I2Support.DialogueSystemUseI2Language Class Reference

Sets the Dialogue System's language to match I2 Localization's language. More...

Inheritance diagram for PixelCrushers.DialogueSystem.I2Support.DialogueSystemUseI2Language:
Collaboration diagram for PixelCrushers.DialogueSystem.I2Support.DialogueSystemUseI2Language:

Public Types

enum  AssetIdentifierType { ID , Name }
 
enum  DialogueEntryInfo { None , Actor , Text }
 

Public Member Functions

virtual void UseCurrentI2Language ()
 Updates the Dialogue System's current language setting to match i2.
 
virtual void UpdateActorDisplayNames ()
 Update Display Name fields with values in i2.
 

Public Attributes

AssetIdentifierType assetsUse = AssetIdentifierType.ID
 
I2LanguageIdentifierType specifyLanguageBy = I2LanguageIdentifierType.LanguageCode
 
DialogueEntryInfo extraEntryInfo = DialogueEntryInfo.None
 
int dialogueEntryMinDigits = 1
 
bool useI2LanguageOnStart = true
 
bool useI2LanguageAtRuntime = false
 
bool updateActorDisplayNamesOnConversationStart = false
 

Protected Member Functions

virtual void Start ()
 
virtual void OnConversationStart (Transform actor)
 
virtual void OnConversationLine (Subtitle subtitle)
 If useI2LanguageAtRuntime is true, replaces the subtitle's formatted text with its i2 runtime translation.
 
virtual void OnConversationResponseMenu (Response[] responses)
 If useI2LanguageAtRuntime is true, replaces the responses' formatted text with their i2 runtime translations.
 
string GetDialogueEntryHeader (DialogueEntry entry)
 
string SanitizedConversationTitle (int conversationID)
 
string SanitizeTerm (string s)
 

Detailed Description

Sets the Dialogue System's language to match I2 Localization's language.

Add to the Dialogue Manager.

Member Enumeration Documentation

◆ AssetIdentifierType

◆ DialogueEntryInfo

Member Function Documentation

◆ GetDialogueEntryHeader()

string PixelCrushers.DialogueSystem.I2Support.DialogueSystemUseI2Language.GetDialogueEntryHeader ( DialogueEntry  entry)
inlineprotected

◆ OnConversationLine()

virtual void PixelCrushers.DialogueSystem.I2Support.DialogueSystemUseI2Language.OnConversationLine ( Subtitle  subtitle)
inlineprotectedvirtual

If useI2LanguageAtRuntime is true, replaces the subtitle's formatted text with its i2 runtime translation.

◆ OnConversationResponseMenu()

virtual void PixelCrushers.DialogueSystem.I2Support.DialogueSystemUseI2Language.OnConversationResponseMenu ( Response[]  responses)
inlineprotectedvirtual

If useI2LanguageAtRuntime is true, replaces the responses' formatted text with their i2 runtime translations.

◆ OnConversationStart()

virtual void PixelCrushers.DialogueSystem.I2Support.DialogueSystemUseI2Language.OnConversationStart ( Transform  actor)
inlineprotectedvirtual

◆ SanitizedConversationTitle()

string PixelCrushers.DialogueSystem.I2Support.DialogueSystemUseI2Language.SanitizedConversationTitle ( int  conversationID)
inlineprotected

◆ SanitizeTerm()

string PixelCrushers.DialogueSystem.I2Support.DialogueSystemUseI2Language.SanitizeTerm ( string  s)
inlineprotected

◆ Start()

virtual void PixelCrushers.DialogueSystem.I2Support.DialogueSystemUseI2Language.Start ( )
inlineprotectedvirtual

◆ UpdateActorDisplayNames()

virtual void PixelCrushers.DialogueSystem.I2Support.DialogueSystemUseI2Language.UpdateActorDisplayNames ( )
inlinevirtual

Update Display Name fields with values in i2.

◆ UseCurrentI2Language()

virtual void PixelCrushers.DialogueSystem.I2Support.DialogueSystemUseI2Language.UseCurrentI2Language ( )
inlinevirtual

Updates the Dialogue System's current language setting to match i2.

Member Data Documentation

◆ assetsUse

AssetIdentifierType PixelCrushers.DialogueSystem.I2Support.DialogueSystemUseI2Language.assetsUse = AssetIdentifierType.ID

◆ dialogueEntryMinDigits

int PixelCrushers.DialogueSystem.I2Support.DialogueSystemUseI2Language.dialogueEntryMinDigits = 1

◆ extraEntryInfo

DialogueEntryInfo PixelCrushers.DialogueSystem.I2Support.DialogueSystemUseI2Language.extraEntryInfo = DialogueEntryInfo.None

◆ specifyLanguageBy

I2LanguageIdentifierType PixelCrushers.DialogueSystem.I2Support.DialogueSystemUseI2Language.specifyLanguageBy = I2LanguageIdentifierType.LanguageCode

◆ updateActorDisplayNamesOnConversationStart

bool PixelCrushers.DialogueSystem.I2Support.DialogueSystemUseI2Language.updateActorDisplayNamesOnConversationStart = false

◆ useI2LanguageAtRuntime

bool PixelCrushers.DialogueSystem.I2Support.DialogueSystemUseI2Language.useI2LanguageAtRuntime = false

◆ useI2LanguageOnStart

bool PixelCrushers.DialogueSystem.I2Support.DialogueSystemUseI2Language.useI2LanguageOnStart = true

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