DialogicNode_PortraitContainer

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 portraits at that position.

Properties


Methods

ReturnsMethod
voidupdate_portrait_transforms ( )
Rect2get_local_portrait_transform ( portrait_rect: Rect2, character_scale: float = 1.0 )
boolis_container ( id: Variant )

Constants

const POSITION = 0

No description available.


const SPEAKER = 1

No description available.


const KEEP = 0

No description available.


const FIT_STRETCH = 1

No description available.


const FIT_IGNORE_SCALE = 2

No description available.


const FIT_SCALE_HEIGHT = 3

No description available.


const TOP_LEFT = 0

No description available.


const TOP_CENTER = 1

No description available.


const TOP_RIGHT = 2

No description available.


const LEFT_MIDDLE = 3

No description available.


const CENTER = 4

No description available.


const RIGHT_MIDDLE = 5

No description available.


const BOTTOM_LEFT = 6

No description available.


const BOTTOM_CENTER = 7

No description available.


const BOTTOM_RIGHT = 8

No description available.


const AT_ORIGIN = 0

No description available.


const PERCENTAGE = 1

No description available.


const PIXELS = 2

No description available.


Property Descriptions

var mode = 0

No description available.


var container_ids = [...]

The position this node corresponds to.


var portrait_prefix = ""

Can be used to use a different portrait. E.g. "Faces/" would mean instead of "happy" it will use portrait "Faces/happy"


var size_mode = 3

Defines how to affect the scale of the portrait


var mirrored = false

If true, portraits will be mirrored in this position.


var origin_anchor = 7

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.


var pivot_mode = 0

Usually you want to rotate or scale around the portrait origin. For the moments where that is not the case, set the mode to PERCENTAGE or PIXELS and use pivot_value.


var pivot_value = Vector2(0, 0)

Only has an effect when pivot_mode is not AT_ORIGIN. Meaning depends on whether pivot_mode is PERCENTAGE or PIXELS.


var debug_character = null

A character that will be displayed in the editor, useful for getting the right size.


var debug_character_portrait = ""

No description available.


var debug_character_holder_node = null

No description available.


var debug_character_scene_node = null

No description available.


var debug_origin = null

No description available.


var default_portrait_scene = path_join(...)

No description available.


var default_debug_character = load(...)

No description available.


var ignore_resize = false

No description available.


Method Descriptions

func update_portrait_transforms ( ) ⇒ void

No description available.


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 is_container ( id: Variant ) ⇒ bool

No description available.