]> Untitled Git - wolf-seeking-sheep.git/blob - addons/dialogic/Modules/DefaultLayoutParts/Base_TextBubble/text_bubble_base.tscn
Squashed commit of the following:
[wolf-seeking-sheep.git] / addons / dialogic / Modules / DefaultLayoutParts / Base_TextBubble / text_bubble_base.tscn
1 [gd_scene load_steps=3 format=3 uid="uid://syki6k0e6aac"]
2
3 [ext_resource type="Script" uid="uid://csbpraep3qamg" path="res://addons/dialogic/Modules/DefaultLayoutParts/Base_TextBubble/text_bubble_base.gd" id="1_urqwc"]
4
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)
11
12 [node name="TextBubbleHolder" type="CanvasLayer"]
13 script = ExtResource("1_urqwc")
14
15 [node name="Example" type="Control" parent="."]
16 visible = false
17 layout_mode = 3
18 anchors_preset = 15
19 anchor_right = 1.0
20 anchor_bottom = 1.0
21 grow_horizontal = 2
22 grow_vertical = 2
23
24 [node name="Label" type="RichTextLabel" parent="Example"]
25 layout_mode = 1
26 anchors_preset = 2
27 anchor_top = 1.0
28 anchor_bottom = 1.0
29 offset_left = 12.0
30 offset_top = -235.0
31 offset_right = 835.0
32 offset_bottom = -14.0
33 grow_vertical = 0
34 theme_override_styles/normal = SubResource("StyleBoxFlat_70ljh")
35 bbcode_enabled = true
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:
37 [color=darkgray]
38 var layout = Dialogic.start(timeline_path)
39 layout.register_character(character_resource, node)
40 [/color]
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)"
44
45 [node name="CRT" type="ColorRect" parent="Example"]
46 layout_mode = 0
47 offset_left = 504.0
48 offset_top = 290.0
49 offset_right = 540.0
50 offset_bottom = 324.0
51 rotation = 0.785397
52 color = Color(1, 0.313726, 1, 1)
53
54 [node name="Marker" type="Marker2D" parent="Example/CRT"]
55 position = Vector2(10.6066, 9.1924)