This contains the source code documentation of the class DialogicStyle
.
DialogicStyle
Inherits: Resource
A style represents a collection of layers and settings. A style can inherit from another style.
Properties
Name | Type | Default |
---|---|---|
name | String | "Style" |
inherits | DialogicStyle | null |
base_scene | PackedScene | null |
base_overrides | Dictionary | {} |
layers | DialogicStyleLayer[] | [] |
Methods
Returns | Method |
---|---|
PackedScene | get_base_scene ( ) |
PackedStringArray | get_layer_list ( ) |
int | get_layer_count ( ) |
Dictionary | get_layer_info ( index : int ) |
Dictionary | get_layer_inherited_info ( index : int, inherited_only : bool = false ) |
void | add_layer ( scene : String, overrides : Dictionary = {} ) |
void | delete_layer ( layer_index : int ) |
void | move_layer ( from_index : int, to_index : int ) |
void | set_layer_scene ( layer_index : int, scene : String ) |
void | set_layer_setting ( layer : int, setting : String, value : Variant ) |
void | remove_layer_setting ( layer : int, setting : String ) |
Dictionary | merge_layer_infos ( layer_a : Dictionary, layer_b : Dictionary ) |
bool | has_layer ( index : int ) |
bool | inherits_anything ( ) |
DialogicStyle | get_inheritance_root ( ) |
void | realize_inheritance ( ) |
DialogicStyle | clone ( ) |
void | prepare ( ) |
Property Descriptions
No description available.
No description available.
No description available.
No description available.
No description available.
Method Descriptions
func get_base_scene ( ) ⇒ PackedScene
This always returns the inheritance root's scene!
func get_layer_list ( ) ⇒ PackedStringArray
This always returns the full inherited roots layers!
func get_layer_count ( ) ⇒ int
No description available.
func get_layer_info ( index
: int ) ⇒ Dictionary
No description available.
func get_layer_inherited_info ( index
: int, inherited_only
: bool = false
) ⇒ Dictionary
No description available.
func add_layer ( scene
: String, overrides
: Dictionary = {}
) ⇒ void
No description available.
func delete_layer ( layer_index
: int ) ⇒ void
No description available.
func move_layer ( from_index
: int, to_index
: int ) ⇒ void
No description available.
func set_layer_scene ( layer_index
: int, scene
: String ) ⇒ void
No description available.
func set_layer_setting ( layer
: int, setting
: String, value
: Variant ) ⇒ void
No description available.
func remove_layer_setting ( layer
: int, setting
: String ) ⇒ void
No description available.
func merge_layer_infos ( layer_a
: Dictionary, layer_b
: Dictionary ) ⇒ Dictionary
This merges two layers (mainly their overrides). Layer a has priority!
func has_layer ( index
: int ) ⇒ bool
No description available.
func inherits_anything ( ) ⇒ bool
No description available.
func get_inheritance_root ( ) ⇒ DialogicStyle
No description available.
func realize_inheritance ( ) ⇒ void
No description available.
func clone ( ) ⇒ DialogicStyle
No description available.
No description available.