Exemple #1
0
 public static void DoNarrativeAdded(NarrativeLogEntry data)
 {
     if (OnNarrativeAdded != null)
     {
         OnNarrativeAdded(data);
     }
 }
        protected virtual void OnNarrativeAdded(NarrativeLogEntry entryAdded)
        {
            // Create a display for the new entry, and have it show in the UI.
            var newEntryDisplay = Instantiate(entryDisplayPrefab);

            newEntryDisplay.transform.SetParent(entryHolder, false);
            newEntryDisplay.ToDisplay = entryAdded;
            entryDisplays.Add(newEntryDisplay);
            StartCoroutine(ForceToBottom());
        }
Exemple #3
0
        protected virtual void OnWriterState(Writer writer, WriterState writerState)
        {
            if (writerState == WriterState.End)
            {
                var sd = SayDialog.GetSayDialog();

                if (sd != null)
                {
                    NarrativeLogEntry entry = new NarrativeLogEntry()
                    {
                        name = sd.NameText,
                        text = sd.StoryText
                    };
                    AddLine(entry);
                }
            }
        }
Exemple #4
0
 protected virtual void OnNarrativeAdded(NarrativeLogEntry data)
 {
     UpdateNarrativeLogText();
 }
Exemple #5
0
 protected virtual void OnNarrativeAdded(Entry newEntry)
 {
     saveData.Entries.Add(newEntry);
 }
Exemple #6
0
 /// <summary>
 /// Add a line of dialog to the Narrative Log
 /// </summary>
 public void AddLine(NarrativeLogEntry entry)
 {
     history.entries.Add(entry);
     DoNarrativeAdded(entry);
 }