1 [gd_scene load_steps=3 format=3 uid="uid://syki6k0e6aac"]
3 [ext_resource type="Script" path="res://addons/dialogic/Modules/DefaultLayoutParts/Base_TextBubble/text_bubble_base.gd" id="1_urqwc"]
5 [sub_resource type="StyleBoxFlat" id="StyleBoxFlat_70ljh"]
6 content_margin_left = 5.0
7 content_margin_top = 5.0
8 content_margin_right = 5.0
9 content_margin_bottom = 5.0
10 bg_color = Color(0, 0, 0, 0.654902)
12 [node name="TextBubbleHolder" type="CanvasLayer"]
13 script = ExtResource("1_urqwc")
15 [node name="Example" type="Control" parent="."]
24 [node name="Label" type="RichTextLabel" parent="Example"]
34 theme_override_styles/normal = SubResource("StyleBoxFlat_70ljh")
36 text = "This is a fallback bubble, that is not actually connected to any character. In game use the following code to add speech bubbles to a character:
38 var layout = Dialogic.start(timeline_path)
39 layout.register_character(character_resource, node)
41 - [color=lightblue]character_resource[/color] should be a loaded DialogicCharacter (a .dch file).
42 - [color=lightblue]node[/color] should be the 2D or 3D node the bubble should point at.
43 -> E.g. [color=darkgray]layout.register_character(load(\"res://path/to/my/character.dch\"), $BubbleMarker)"
45 [node name="CRT" type="ColorRect" parent="Example"]
52 color = Color(1, 0.313726, 1, 1)
54 [node name="Marker" type="Marker2D" parent="Example/CRT"]
55 position = Vector2(10.6066, 9.1924)