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
Name | Type | Default |
---|---|---|
events | Array | |
events_processed | bool | false |
Methods
Returns | Method |
---|---|
String | as_text ( ) |
void | clean ( ) |
void | from_text ( text : String ) |
Variant | get_event ( index : int ) |
void | process ( ) |
Property Descriptions
No description available.
No description available.
Method Descriptions
Stores all events in their text format and returns them as a string
This method makes sure that all events in a timeline are correctly reset
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 get_event ( index
: int ) ⇒ Variant
Helper method
Method that loads all the event resources from the strings, if it wasn't done before