6. Java editor interface reference
6.1 Initial screen
| Element | Description |
|---|---|
New Project | creates a project: name, language, version and chapter, then local path and folder of the Unity project |
Open Project | opens an existing project from the file system, from SFTP or from a Git repository |
| Recent project card | reopens the corresponding project |
Context menu ▸ Open | equivalent to opening from the card |
Context menu ▸ Edit name | modifies the project name and updates the manifest |
Context menu ▸ Copy path | copies the project path to the clipboard |
Context menu ▸ Remove from list | removes the project from the recent list without deleting any data |
Context menu ▸ Local delete | deletes the project folder, subject to confirmation |
| Information icon | opens the settings panel, including the interface language selector |
The languages available for the interface are: English, Italian, Spanish, Romanian and Japanese.
6.2 Opening a project
| Tab | Description |
|---|---|
Local | selection of a folder containing a file .project.yaml; the import starts with Import |
SFTP | download of the project from a remote server: host, port, user, SSH key or password and local path |
Git | cloning of the project: repository URL, branch and local path |
6.3 Editing window
Title bar:
| Element | Description |
|---|---|
File ▸ Save, Save All | not active: saving is automatic on every modification |
File ▸ Exit | closes the editor |
Settings | opens the information and settings panel |
Window ▸ Reset Layout | not active |
Inject | performs the deploy towards the Unity project and presents a summary: languages, files, rows, destination path and reports |
Project Manager panel (on the left): tree structure of the project files.
| Context menu item | Description |
|---|---|
New File | creates a file, adding the extension .yaml if absent |
New Folder | creates a folder |
Delete | deletes the selected element; the protected files .project.yaml and .registry.log cannot be deleted |
| Double click on a file | opens the corresponding tab |
Side icons, which open the lower panels:
| Icon | Description |
|---|---|
Git | Git console, available if Git management is active in the project |
SFTP | SFTP synchronization panel |
Debug | diagnostics panel, including the command Import Digest |
Console | system console of the project (bash or PowerShell) |
6.4 Work tabs
Lines tab, identified as ‹CID› [LINGUA]:
| Element | Description |
|---|---|
Field CID | modifies the character associated with the file; if the identifiers are already used by the game, confirmation is requested |
Column LID | identifier of the line; not modifiable |
Column Line | text of the line; editing is activated with a double click |
Insert | inserts a line between two existing identifiers, using a free interval; if no space is available, a report is emitted |
+ | adds a line with the next free identifier |
− | deletes the selected line; the operation is rejected if the identifier is referenced by the game |
↶, ↷ | undoes and restores the last operation; equivalent to Ctrl+Z, Ctrl+Y and Ctrl+Shift+Z |
The tab furthermore indicates the list Referenced DIDs, that is the identifiers actually used by the graph, obtained from the digest.
Tab characters.list:
| Element | Description |
|---|---|
Columns CID, Name, Language | character registry; the field Name defines the name displayed in the dialogue |
+, − | adds or removes a character |
↶, ↷ | undoes and restores the last operation |
Tab variables:
| Element | Description |
|---|---|
Columns Name, Type, Default, Description | variables used by the conditions of the graph; the admitted types are bool, int, float and string |
+, − | adds or removes a variable |
↶, ↷ | undoes and restores the last operation |
Tab .project.yaml:
| Element | Description |
|---|---|
| Name, dialogue version, chapter | identifying data of the project, also used in the reports |
| Default language | start language of the dialogue |
| Languages | comma-separated list; codes not included among the interface languages are admitted |
| Path of the Unity project | destination of the deploy operation |
| SFTP section | connection parameters to the remote server |
Save | saves the project manifest |
Create shortcut... | creates a file .mysys22 that allows the project to be opened with a double click |
The tab .registry.log presents the change log in read-only mode.
Debug panel:
| Element | Description |
|---|---|
Import Digest | imports the file engine.graphdigest.json exported by Unity |
↻ | re-runs the verifications on the project and populates the table with information, warnings and errors |
7. Workflow
- The game designer defines or updates the graphs in Unity, assigning the identifiers to the
lines.
- The game designer runs
Export Graph Digestand transfers the digest to the text writer.
- The writer imports the digest into the Java editor by means of
Debug ▸ Import Digest; the lines
tab signals the identifiers not yet documented.
- The writer produces the texts, performs the translations and updates characters and variables.
- The writer runs
Inject: the editor validates the project, writes the data to
Assets/StreamingAssets and removes the files no longer belonging to the project.
- The developer starts the scene in Unity. Before a build intended for mobile platforms, the
developer runs Generate Index Manifests.
The correct operation of the system depends on the correspondence between the identifiers of the lines present in the graph and those defined in the textual databases. As long as such correspondence is maintained, the content of the texts can be modified without intervening on the graph.