How to open Dialogue DB from editor script ?

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
User avatar
Strook
Posts: 70
Joined: Fri Nov 08, 2019 10:51 am

How to open Dialogue DB from editor script ?

Post by Strook »

Hello,

i would like to create a very simple editor script that would open a specific dialogue DB window. Its a bit slow to everytime having to navigate to the dialogue DB in the project, or select the Dialogue manager.


Im basically looking for a function lilke DialogueDatabase.OpenEditor() :lol:

is this possible ? thanks !
Currently working on ->Squeakross: Home Squeak Home<- Using Dialogue System Save System and other features.
Previous game made with Dialogue system ->The Spirit and The mouse<-
User avatar
Tony Li
Posts: 22051
Joined: Thu Jul 18, 2013 1:27 pm

Re: How to open Dialogue DB from editor script ?

Post by Tony Li »

Hi,

Call DialogueEditor.DialogueEditorWindow.OpenDialogueEntry(database, conversationID, entryID). For example, to open conversation ID 1, dialogue entry ID 42:

Code: Select all

PixelCrushers.DialogueSystem.DialogueEditor.DialogueEditorWindow.OpenDialogueEntry(myDatabase, 1, 42);
User avatar
Strook
Posts: 70
Joined: Fri Nov 08, 2019 10:51 am

Re: How to open Dialogue DB from editor script ?

Post by Strook »

awesome that works great, thanks !! It going to save me so much time :D
Currently working on ->Squeakross: Home Squeak Home<- Using Dialogue System Save System and other features.
Previous game made with Dialogue system ->The Spirit and The mouse<-
User avatar
Tony Li
Posts: 22051
Joined: Thu Jul 18, 2013 1:27 pm

Re: How to open Dialogue DB from editor script ?

Post by Tony Li »

Glad to help!
Post Reply