Skip to content

NarrativeLogUI_ClassAPI

CG-Tespy edited this page Jul 28, 2019 · 1 revision

The manager of the UI aspects of the NarrativeLog. It's meant to be the interface for the NarrativeLog that objects outside the system use.

Inherits from MonoBehaviour.

Namespace: Fungus.NarrativeLogSystem

Fields in the Inspector

protected NarrativeLog narrativeLog

  • Much of what this component does is in response to this.
protected EntryDisplay entryDisplayPrefab
  • Instantiates and parents instances of this to the entryHolder.
protected RectTransform entryHolder
  • The entries have to be organized somewhere.

Public Methods

virtual void SetLogEntries(IList<Entry> entries)

  • Clears the NarrativeLog, then fills it with the passed entries.
virtual void Clear()
  • Clears the NarrativeLog set for it.
virtual void Open()
  • Opens the menu this UI is meant to be managing.
virtual void Close()
  • Closes the menu this UI is meant to be managing.

Clone this wiki locally