Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

DialogicTimeline

This contains the source code documentation of the class DialogicTimeline.

DialogicTimeline

Inherits: Resource

Resource that defines a list of events. It can store them as text and load them from text too.

Properties


Methods

ReturnsMethod
Variantget_event ( index: int )
voidfrom_text ( text: String )
Stringas_text ( )
intget_index_from_text_line ( text: String, line: Variant )
voidprocess ( )
voidclean ( )
DialogicEventevent_from_string ( event_content: String, event_cache: Array )

Property Descriptions

var events = []

No description available.


var events_processed = false

No description available.


var text_lines_indexed = {}

No description available.


var indent_format = "\t"

No description available.


Method Descriptions

func get_event ( index: int ) ⇒ Variant

Helper method


func from_text ( text: String ) ⇒ void

Parses the lines as seperate events and insert them in an array, so they can be converted to DialogicEvent's when processed later


func as_text ( ) ⇒ String

Stores all events in their text format and returns them as a string


func get_index_from_text_line ( text: String, line: Variant ) ⇒ int

Returns the index of the event that corresponds to a specific line


func process ( ) ⇒ void

Method that loads all the event resources from the strings, if it wasn't done before


func clean ( ) ⇒ void

This method makes sure that all events in a timeline are correctly reset


func event_from_string ( event_content: String, event_cache: Array ) ⇒ DialogicEvent

No description available.