PixelCrushers.DialogueSystem.I2Support.DSToI2Prefs Class Reference

Holds the DS To I2 window's current prefs, which are saved into EditorPrefs between editor sessions. More...

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

Public Types

enum  Category {
  Actors , Items , Locations , Variables ,
  Conversations , DialogueEntries , LocalizedTextTable , TextTable
}
 
enum  DialogueEntryInfo { None , Actor , Text }
 
enum  AssetIdentifierType { ID , Name }
 
enum  Verbose { None , Warnings , Detailed }
 

Public Member Functions

 DSToI2Prefs ()
 
int GetNumDatabases ()
 
int GetNumTextTables ()
 
void PopulateAllDatabaseFields ()
 
void PopulateAllTextTableFields ()
 
void PopulateLocalizedTextTableFields ()
 
FoldoutInfo GetCategoryFoldout (Category category)
 
FieldSelectionDictionary GetFieldSelections (Category category)
 
void OnBeforeSerialize ()
 
void OnAfterDeserialize ()
 
void AssignDatabasesFromInstanceIDs ()
 

Public Attributes

List< int > databaseInstanceIDs = new List<int>()
 
List< int > textTableInstanceIDs = new List<int>()
 
int localizedTextTableInstanceID = 0
 
bool specifyI2Asset = false
 
int i2AssetInstanceID = 0
 
int dialogueEntryMinDigits = 1
 
FoldoutInfo[] categoryFoldouts = new FoldoutInfo[NumTotalCategories]
 
bool translationsToI2 = false
 
bool specifyLanguageToI2 = false
 
string specificLanguageToI2 = "en"
 
bool updatePrimaryFields = false
 
string updatePrimaryFieldsFromLanguage = "en"
 
bool useFieldForDialogueEntryTerms = false
 
string fieldForDialogueEntryTerms = string.Empty
 
bool includeConvInfoWithField = false
 
bool useTextTableNameForI2Term = false
 
DialogueEntryInfo dialogueEntryInfo = DialogueEntryInfo.None
 
I2LanguageIdentifierType languageIdentifier = I2LanguageIdentifierType.LanguageCode
 
AssetIdentifierType assetIdentifier = AssetIdentifierType.ID
 
Verbose verbose = Verbose.None
 
bool showHelp = false
 

Static Public Attributes

const int NumDatabaseCategories = 6
 
const int NumTotalCategories = 8
 

Properties

bool showWarnings [get]
 
bool showDetails [get]
 
List< DialogueDatabasedatabases [get]
 
List< TextTabletextTables [get]
 
LocalizedTextTable localizedTextTable [get, set]
 
LanguageSourceAsset i2Asset [get, set]
 

Detailed Description

Holds the DS To I2 window's current prefs, which are saved into EditorPrefs between editor sessions.

Member Enumeration Documentation

◆ AssetIdentifierType

◆ Category

Enumerator
Actors 
Items 
Locations 
Variables 
Conversations 
DialogueEntries 
LocalizedTextTable 
TextTable 

◆ DialogueEntryInfo

◆ Verbose

Enumerator
None 
Warnings 
Detailed 

Constructor & Destructor Documentation

◆ DSToI2Prefs()

PixelCrushers.DialogueSystem.I2Support.DSToI2Prefs.DSToI2Prefs ( )
inline

Member Function Documentation

◆ AssignDatabasesFromInstanceIDs()

void PixelCrushers.DialogueSystem.I2Support.DSToI2Prefs.AssignDatabasesFromInstanceIDs ( )
inline

◆ GetCategoryFoldout()

FoldoutInfo PixelCrushers.DialogueSystem.I2Support.DSToI2Prefs.GetCategoryFoldout ( Category  category)
inline

◆ GetFieldSelections()

FieldSelectionDictionary PixelCrushers.DialogueSystem.I2Support.DSToI2Prefs.GetFieldSelections ( Category  category)
inline

◆ GetNumDatabases()

int PixelCrushers.DialogueSystem.I2Support.DSToI2Prefs.GetNumDatabases ( )
inline

◆ GetNumTextTables()

int PixelCrushers.DialogueSystem.I2Support.DSToI2Prefs.GetNumTextTables ( )
inline

◆ OnAfterDeserialize()

void PixelCrushers.DialogueSystem.I2Support.DSToI2Prefs.OnAfterDeserialize ( )
inline

◆ OnBeforeSerialize()

void PixelCrushers.DialogueSystem.I2Support.DSToI2Prefs.OnBeforeSerialize ( )
inline

◆ PopulateAllDatabaseFields()

void PixelCrushers.DialogueSystem.I2Support.DSToI2Prefs.PopulateAllDatabaseFields ( )
inline

◆ PopulateAllTextTableFields()

void PixelCrushers.DialogueSystem.I2Support.DSToI2Prefs.PopulateAllTextTableFields ( )
inline

◆ PopulateLocalizedTextTableFields()

void PixelCrushers.DialogueSystem.I2Support.DSToI2Prefs.PopulateLocalizedTextTableFields ( )
inline

Member Data Documentation

◆ assetIdentifier

AssetIdentifierType PixelCrushers.DialogueSystem.I2Support.DSToI2Prefs.assetIdentifier = AssetIdentifierType.ID

◆ categoryFoldouts

FoldoutInfo [] PixelCrushers.DialogueSystem.I2Support.DSToI2Prefs.categoryFoldouts = new FoldoutInfo[NumTotalCategories]

◆ databaseInstanceIDs

List<int> PixelCrushers.DialogueSystem.I2Support.DSToI2Prefs.databaseInstanceIDs = new List<int>()

◆ dialogueEntryInfo

DialogueEntryInfo PixelCrushers.DialogueSystem.I2Support.DSToI2Prefs.dialogueEntryInfo = DialogueEntryInfo.None

◆ dialogueEntryMinDigits

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

◆ fieldForDialogueEntryTerms

string PixelCrushers.DialogueSystem.I2Support.DSToI2Prefs.fieldForDialogueEntryTerms = string.Empty

◆ i2AssetInstanceID

int PixelCrushers.DialogueSystem.I2Support.DSToI2Prefs.i2AssetInstanceID = 0

◆ includeConvInfoWithField

bool PixelCrushers.DialogueSystem.I2Support.DSToI2Prefs.includeConvInfoWithField = false

◆ languageIdentifier

I2LanguageIdentifierType PixelCrushers.DialogueSystem.I2Support.DSToI2Prefs.languageIdentifier = I2LanguageIdentifierType.LanguageCode

◆ localizedTextTableInstanceID

int PixelCrushers.DialogueSystem.I2Support.DSToI2Prefs.localizedTextTableInstanceID = 0

◆ NumDatabaseCategories

const int PixelCrushers.DialogueSystem.I2Support.DSToI2Prefs.NumDatabaseCategories = 6
static

◆ NumTotalCategories

const int PixelCrushers.DialogueSystem.I2Support.DSToI2Prefs.NumTotalCategories = 8
static

◆ showHelp

bool PixelCrushers.DialogueSystem.I2Support.DSToI2Prefs.showHelp = false

◆ specificLanguageToI2

string PixelCrushers.DialogueSystem.I2Support.DSToI2Prefs.specificLanguageToI2 = "en"

◆ specifyI2Asset

bool PixelCrushers.DialogueSystem.I2Support.DSToI2Prefs.specifyI2Asset = false

◆ specifyLanguageToI2

bool PixelCrushers.DialogueSystem.I2Support.DSToI2Prefs.specifyLanguageToI2 = false

◆ textTableInstanceIDs

List<int> PixelCrushers.DialogueSystem.I2Support.DSToI2Prefs.textTableInstanceIDs = new List<int>()

◆ translationsToI2

bool PixelCrushers.DialogueSystem.I2Support.DSToI2Prefs.translationsToI2 = false

◆ updatePrimaryFields

bool PixelCrushers.DialogueSystem.I2Support.DSToI2Prefs.updatePrimaryFields = false

◆ updatePrimaryFieldsFromLanguage

string PixelCrushers.DialogueSystem.I2Support.DSToI2Prefs.updatePrimaryFieldsFromLanguage = "en"

◆ useFieldForDialogueEntryTerms

bool PixelCrushers.DialogueSystem.I2Support.DSToI2Prefs.useFieldForDialogueEntryTerms = false

◆ useTextTableNameForI2Term

bool PixelCrushers.DialogueSystem.I2Support.DSToI2Prefs.useTextTableNameForI2Term = false

◆ verbose

Verbose PixelCrushers.DialogueSystem.I2Support.DSToI2Prefs.verbose = Verbose.None

Property Documentation

◆ databases

List<DialogueDatabase> PixelCrushers.DialogueSystem.I2Support.DSToI2Prefs.databases
get

◆ i2Asset

LanguageSourceAsset PixelCrushers.DialogueSystem.I2Support.DSToI2Prefs.i2Asset
getset

◆ localizedTextTable

LocalizedTextTable PixelCrushers.DialogueSystem.I2Support.DSToI2Prefs.localizedTextTable
getset

◆ showDetails

bool PixelCrushers.DialogueSystem.I2Support.DSToI2Prefs.showDetails
get

◆ showWarnings

bool PixelCrushers.DialogueSystem.I2Support.DSToI2Prefs.showWarnings
get

◆ textTables

List<TextTable> PixelCrushers.DialogueSystem.I2Support.DSToI2Prefs.textTables
get

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