PixelCrushers.DialogueSystem.JsonImportWindow Class Reference
Inheritance diagram for PixelCrushers.DialogueSystem.JsonImportWindow:
Collaboration diagram for PixelCrushers.DialogueSystem.JsonImportWindow:

Static Public Member Functions

static void Init ()
 

Protected Member Functions

override void CopySourceToDialogueDatabase (DialogueDatabase database)
 Copies the source to the dialogue database.
 
override void DrawOverwriteCheckbox ()
 Draws the overwrite checkbox, and merge checkbox if overwrite is ticked.
 
- Protected Member Functions inherited from PixelCrushers.DialogueSystem.AbstractConverterWindow< AbstractConverterWindowPrefs >
virtual void ClearPrefs ()
 
virtual void LoadPrefs ()
 
virtual void SavePrefs ()
 
virtual void DrawControls ()
 Draws the contents of the converter window.
 
virtual void DrawSourceSection ()
 Draws the source section.
 
virtual void DrawDestinationSection ()
 Draws the destination section.
 
virtual void DrawOutputFolder ()
 Draws the output folder selection field.
 
virtual void DrawDatabaseFilename ()
 Draws the dialogue database save-to filename.
 
virtual void DrawEncodingPopup ()
 Draws the encoding type popup.
 
virtual void DrawConversionButtons ()
 Draws the conversion buttons.
 
virtual void DrawClearButton ()
 Draws the Clear button that clears the prefs.
 
virtual void DrawConvertButton ()
 Draws the Convert button that sets convertNow to specify whether to convert.
 
virtual bool IsReadyToConvert ()
 Determines whether the window is ready to convert.
 
virtual bool IsSourceAssigned ()
 Determines whether the source is assigned.
 
virtual void Convert ()
 Converts the source into a dialogue database.
 
virtual DialogueDatabase LoadOrCreateDatabase ()
 Loads the dialogue database if it already exists and overwrite is ticked; otherwise creates a new one.
 
virtual void TouchUpDialogueDatabase (DialogueDatabase database)
 Touches up dialogue database after conversion.
 
virtual void SetStartCutscenesToNone (DialogueDatabase database)
 Sets the START dialogue entries' Sequences to None().
 
virtual void SetConversationStartCutsceneToNone (Conversation conversation)
 Sets a conversation's START entry's Sequence to Continue().
 
virtual void FindPortraitTextures (DialogueDatabase database, string portraitFolder)
 Finds the actors' portrait textures, given a source portrait folder.
 
virtual void FindPortraitTexture (Actor actor, string portraitFolder)
 Finds an actor's portrait texture.
 
virtual void LoadSourceFile ()
 Loads the source file into memory.
 
virtual bool IsSourceAtEnd ()
 Determines whether the source data's memory buffer is at the end.
 
virtual string PeekNextSourceLine ()
 Peeks the next source line without removing it from the buffer.
 
virtual string GetNextSourceLine ()
 Gets the next source line and removes it from the buffer.
 

Properties

override string sourceFileExtension [get]
 
override string prefsKey [get]
 
- Properties inherited from PixelCrushers.DialogueSystem.AbstractConverterWindow< AbstractConverterWindowPrefs >
virtual string sourceFileExtension [get]
 Gets the source file extension.
 
virtual string prefsKey [get]
 Gets the EditorPrefs key to save the converter window's settings under.
 
Template template [get, set]
 A reference to the Dialogue System template, used to create new dialogue database assets such as Actors, Items, and Conversations.
 
string currentSourceLine [get]
 The most recent line retrieved through the GetNextSourceLine() method.
 
int currentLineNumber [get]
 The line number in the source file of the current source line.
 

Additional Inherited Members

- Public Member Functions inherited from PixelCrushers.DialogueSystem.AbstractConverterWindow< AbstractConverterWindowPrefs >
virtual void OnEnable ()
 
virtual void OnDisable ()
 
virtual void OnGUI ()
 
- Protected Attributes inherited from PixelCrushers.DialogueSystem.AbstractConverterWindow< AbstractConverterWindowPrefs >
prefs
 The prefs for the converter window.
 
Vector2 scrollPosition
 The current scroll position of the converter window.
 
List< string > sourceLines
 The source lines.
 

Member Function Documentation

◆ CopySourceToDialogueDatabase()

override void PixelCrushers.DialogueSystem.JsonImportWindow.CopySourceToDialogueDatabase ( DialogueDatabase  database)
inlineprotectedvirtual

Copies the source to the dialogue database.

You must implement this. You can use the helper methods LoadSourceFile(), IsSourceAtEnd(), PeekNextSourceLine(), and GetNextSourceLine().

Parameters
databaseDatabase.

Reimplemented from PixelCrushers.DialogueSystem.AbstractConverterWindow< AbstractConverterWindowPrefs >.

◆ DrawOverwriteCheckbox()

override void PixelCrushers.DialogueSystem.JsonImportWindow.DrawOverwriteCheckbox ( )
inlineprotectedvirtual

Draws the overwrite checkbox, and merge checkbox if overwrite is ticked.

Reimplemented from PixelCrushers.DialogueSystem.AbstractConverterWindow< AbstractConverterWindowPrefs >.

◆ Init()

static void PixelCrushers.DialogueSystem.JsonImportWindow.Init ( )
inlinestatic

Property Documentation

◆ prefsKey

override string PixelCrushers.DialogueSystem.JsonImportWindow.prefsKey
get

◆ sourceFileExtension

override string PixelCrushers.DialogueSystem.JsonImportWindow.sourceFileExtension
get

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