94 lines
2.8 KiB
Plaintext
94 lines
2.8 KiB
Plaintext
[gd_scene load_steps=5 format=3 uid="uid://73jm5qjy52vq"]
|
|
|
|
[ext_resource type="Script" path="res://ui/dialogue/balloon.gd" id="1_36de5"]
|
|
[ext_resource type="PackedScene" uid="uid://ckvgyvclnwggo" path="res://addons/dialogue_manager/dialogue_label.tscn" id="2_a8ve6"]
|
|
[ext_resource type="Theme" uid="uid://dmk7hc81l8gbw" path="res://ui/ui_theme.tres" id="2_uj536"]
|
|
[ext_resource type="Script" path="res://addons/dialogue_manager/dialogue_reponses_menu.gd" id="3_72ixx"]
|
|
|
|
[node name="ExampleBalloon" type="CanvasLayer"]
|
|
layer = 100
|
|
script = ExtResource("1_36de5")
|
|
next_action = null
|
|
skip_action = null
|
|
|
|
[node name="Balloon" type="Control" parent="."]
|
|
unique_name_in_owner = true
|
|
layout_mode = 3
|
|
anchors_preset = 15
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
theme = ExtResource("2_uj536")
|
|
|
|
[node name="Panel" type="Panel" parent="Balloon"]
|
|
clip_children = 2
|
|
layout_mode = 1
|
|
anchors_preset = 12
|
|
anchor_top = 1.0
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
offset_left = 21.0
|
|
offset_top = -183.0
|
|
offset_right = -19.0
|
|
offset_bottom = -19.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 0
|
|
mouse_filter = 1
|
|
|
|
[node name="Dialogue" type="MarginContainer" parent="Balloon/Panel"]
|
|
layout_mode = 1
|
|
anchors_preset = 15
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
|
|
[node name="VBoxContainer" type="VBoxContainer" parent="Balloon/Panel/Dialogue"]
|
|
layout_mode = 2
|
|
|
|
[node name="CharacterLabel" type="RichTextLabel" parent="Balloon/Panel/Dialogue/VBoxContainer"]
|
|
unique_name_in_owner = true
|
|
modulate = Color(1, 1, 1, 0.501961)
|
|
layout_mode = 2
|
|
mouse_filter = 1
|
|
bbcode_enabled = true
|
|
text = "Character"
|
|
fit_content = true
|
|
scroll_active = false
|
|
|
|
[node name="DialogueLabel" parent="Balloon/Panel/Dialogue/VBoxContainer" instance=ExtResource("2_a8ve6")]
|
|
unique_name_in_owner = true
|
|
layout_mode = 2
|
|
size_flags_vertical = 3
|
|
text = "Dialogue..."
|
|
|
|
[node name="Responses" type="MarginContainer" parent="Balloon"]
|
|
layout_mode = 1
|
|
anchors_preset = 7
|
|
anchor_left = 0.5
|
|
anchor_top = 1.0
|
|
anchor_right = 0.5
|
|
anchor_bottom = 1.0
|
|
offset_left = -147.0
|
|
offset_top = -558.0
|
|
offset_right = 494.0
|
|
offset_bottom = -154.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 0
|
|
|
|
[node name="ResponsesMenu" type="VBoxContainer" parent="Balloon/Responses" node_paths=PackedStringArray("response_template")]
|
|
unique_name_in_owner = true
|
|
layout_mode = 2
|
|
size_flags_vertical = 8
|
|
theme_override_constants/separation = 2
|
|
script = ExtResource("3_72ixx")
|
|
response_template = NodePath("ResponseExample")
|
|
|
|
[node name="ResponseExample" type="Button" parent="Balloon/Responses/ResponsesMenu"]
|
|
layout_mode = 2
|
|
text = "Response example"
|
|
|
|
[connection signal="gui_input" from="Balloon" to="." method="_on_balloon_gui_input"]
|
|
[connection signal="response_selected" from="Balloon/Responses/ResponsesMenu" to="." method="_on_responses_menu_response_selected"]
|