This contains the source code documentation of the class DialogicNode_PortraitContainer
.
DialogicNode_PortraitContainer
Inherits: Control
Node that defines a position for dialogic portraits and how to display portrait at that position.
Properties
Methods
Returns | Method |
---|---|
Rect2 | get_local_portrait_transform ( portrait_rect : Rect2, character_scale : float = 1.0 ) |
void | update_portrait_transforms ( ) |
Constants
No description available.
No description available.
No description available.
No description available.
No description available.
No description available.
No description available.
No description available.
No description available.
No description available.
No description available.
No description available.
No description available.
No description available.
No description available.
Property Descriptions
A character that will be displayed in the editor, useful for getting the right size.
var debug_character_holder_node = null
No description available.
var debug_character_portrait = ""
No description available.
var debug_character_scene_node = null
No description available.
No description available.
No description available.
No description available.
If true, portraits will be mirrored in this position.
No description available.
The portrait will be placed relative to this point in the container.
var origin_offset = Vector2(0, 0)
An offset to apply to the origin. Rarely useful.
Can be used to use a different portrait. E.g. "Faces/" would mean instead of "happy" it will use portrait "Faces/happy"
The position this node corresponds to.
Defines how to affect the scale of the portrait
Method Descriptions
func get_local_portrait_transform ( portrait_rect
: Rect2, character_scale
: float = 1.0
) ⇒ Rect2
Returns a Rect2 with the position as the position and the scale as the size.
func update_portrait_transforms ( ) ⇒ void
No description available.