[gd_scene format=3 uid="uid://l5tlat8en4ms"] [ext_resource type="Script" uid="uid://c3e8iahlgql5h" path="res://shared/helpers/baloon/balloon.gd" id="1_36de5"] [ext_resource type="PackedScene" uid="uid://ckvgyvclnwggo" path="res://addons/dialogue_manager/nodes/dialogue_label/dialogue_label.tscn" id="2_a8ve6"] [ext_resource type="Script" uid="uid://bb52rsfwhkxbn" path="res://addons/dialogue_manager/nodes/responses_menu/dialogue_responses_menu.gd" id="3_72ixx"] [sub_resource type="StyleBoxFlat" id="StyleBoxFlat_spyqn"] content_margin_left = 20.0 content_margin_top = 10.0 content_margin_right = 20.0 content_margin_bottom = 10.0 bg_color = Color(0, 0, 0, 1) border_width_left = 3 border_width_top = 3 border_width_right = 3 border_width_bottom = 3 border_color = Color(0.329412, 0.329412, 0.329412, 1) corner_radius_top_left = 5 corner_radius_top_right = 5 corner_radius_bottom_right = 5 corner_radius_bottom_left = 5 [sub_resource type="StyleBoxFlat" id="StyleBoxFlat_ri4m3"] content_margin_left = 20.0 content_margin_top = 10.0 content_margin_right = 20.0 content_margin_bottom = 10.0 bg_color = Color(0.121569, 0.121569, 0.121569, 1) border_width_left = 3 border_width_top = 3 border_width_right = 3 border_width_bottom = 3 border_color = Color(1, 1, 1, 1) corner_radius_top_left = 5 corner_radius_top_right = 5 corner_radius_bottom_right = 5 corner_radius_bottom_left = 5 [sub_resource type="StyleBoxFlat" id="StyleBoxFlat_e0njw"] content_margin_left = 20.0 content_margin_top = 10.0 content_margin_right = 20.0 content_margin_bottom = 10.0 bg_color = Color(0, 0, 0, 1) border_width_left = 3 border_width_top = 3 border_width_right = 3 border_width_bottom = 3 border_color = Color(0.6, 0.6, 0.6, 1) corner_radius_top_left = 5 corner_radius_top_right = 5 corner_radius_bottom_right = 5 corner_radius_bottom_left = 5 [sub_resource type="StyleBoxFlat" id="StyleBoxFlat_qkmqt"] bg_color = Color(0, 0, 0, 1) border_width_left = 3 border_width_top = 3 border_width_right = 3 border_width_bottom = 3 corner_radius_top_left = 5 corner_radius_top_right = 5 corner_radius_bottom_right = 5 corner_radius_bottom_left = 5 [sub_resource type="Theme" id="Theme_qq3yp"] default_font_size = 20 Button/styles/disabled = SubResource("StyleBoxFlat_spyqn") Button/styles/focus = SubResource("StyleBoxFlat_ri4m3") Button/styles/hover = SubResource("StyleBoxFlat_e0njw") Button/styles/normal = SubResource("StyleBoxFlat_e0njw") MarginContainer/constants/margin_bottom = 15 MarginContainer/constants/margin_left = 30 MarginContainer/constants/margin_right = 30 MarginContainer/constants/margin_top = 15 PanelContainer/styles/panel = SubResource("StyleBoxFlat_qkmqt") [sub_resource type="Animation" id="Animation_nlsx6"] length = 0.001 tracks/0/type = "bezier" tracks/0/imported = false tracks/0/enabled = true tracks/0/path = NodePath("Progress:position:y") tracks/0/interp = 1 tracks/0/loop_wrap = true tracks/0/keys = { "handle_modes": PackedInt32Array(0), "points": PackedFloat32Array(0, -0.25, 0, 0.25, 0), "times": PackedFloat32Array(0) } [sub_resource type="Animation" id="Animation_qkmqt"] resource_name = "progress" loop_mode = 1 step = 0.1 tracks/0/type = "bezier" tracks/0/imported = false tracks/0/enabled = true tracks/0/path = NodePath("Progress:position:y") tracks/0/interp = 1 tracks/0/loop_wrap = true tracks/0/keys = { "handle_modes": PackedInt32Array(0, 0, 0, 0, 0), "points": PackedFloat32Array(0, -0.25, 0, 0.25, 0, 0, -0.25, 0, 0.2, -0.0157438, -4, -0.2, 0.0112069, 0.25, 0, -4, -0.25, 0, 0.25, 0, 0, -0.2, 0.00299701, 0.25, 0), "times": PackedFloat32Array(0, 0.1, 0.5, 0.6, 1) } [sub_resource type="AnimationLibrary" id="AnimationLibrary_1337t"] _data = { &"RESET": SubResource("Animation_nlsx6"), &"progress": SubResource("Animation_qkmqt") } [node name="ExampleBalloon" type="CanvasLayer" unique_id=38036521] layer = 100 script = ExtResource("1_36de5") [node name="Balloon" type="Control" parent="." unique_id=154399927] 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 = SubResource("Theme_qq3yp") [node name="MarginContainer" type="MarginContainer" parent="Balloon" unique_id=1302081376] layout_mode = 1 anchors_preset = 12 anchor_top = 1.0 anchor_right = 1.0 anchor_bottom = 1.0 offset_top = -219.0 grow_horizontal = 2 grow_vertical = 0 [node name="PanelContainer" type="PanelContainer" parent="Balloon/MarginContainer" unique_id=2145270309] clip_children = 2 layout_mode = 2 mouse_filter = 1 [node name="MarginContainer" type="MarginContainer" parent="Balloon/MarginContainer/PanelContainer" unique_id=903640783] layout_mode = 2 [node name="HBoxContainer" type="HBoxContainer" parent="Balloon/MarginContainer/PanelContainer/MarginContainer" unique_id=1685890612] layout_mode = 2 [node name="VBoxContainer" type="VBoxContainer" parent="Balloon/MarginContainer/PanelContainer/MarginContainer/HBoxContainer" unique_id=1890134056] layout_mode = 2 size_flags_horizontal = 3 [node name="CharacterLabel" type="RichTextLabel" parent="Balloon/MarginContainer/PanelContainer/MarginContainer/HBoxContainer/VBoxContainer" unique_id=1567782692] 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/MarginContainer/PanelContainer/MarginContainer/HBoxContainer/VBoxContainer" unique_id=1301798052 instance=ExtResource("2_a8ve6")] unique_name_in_owner = true layout_mode = 2 size_flags_vertical = 3 text = "Dialogue..." [node name="Control" type="Control" parent="Balloon/MarginContainer/PanelContainer/MarginContainer/HBoxContainer" unique_id=418507161] custom_minimum_size = Vector2(20, 10) layout_mode = 2 size_flags_vertical = 8 [node name="Progress" type="Polygon2D" parent="Balloon/MarginContainer/PanelContainer/MarginContainer/HBoxContainer/Control" unique_id=2091292889] unique_name_in_owner = true polygon = PackedVector2Array(0, 0, 10, 10, 20, 0) [node name="AnimationPlayer" type="AnimationPlayer" parent="Balloon/MarginContainer/PanelContainer/MarginContainer/HBoxContainer/Control" unique_id=1602634471] libraries/ = SubResource("AnimationLibrary_1337t") autoplay = &"progress" [node name="CenterContainer" type="CenterContainer" parent="Balloon" unique_id=1087901387] layout_mode = 1 anchors_preset = 15 anchor_right = 1.0 anchor_bottom = 1.0 grow_horizontal = 2 grow_vertical = 2 [node name="ResponsesMenu" type="VBoxContainer" parent="Balloon/CenterContainer" unique_id=1801308483 node_paths=PackedStringArray("response_template")] unique_name_in_owner = true layout_mode = 2 size_flags_vertical = 8 theme_override_constants/separation = 2 alignment = 1 script = ExtResource("3_72ixx") response_template = NodePath("ResponseExample") [node name="ResponseExample" type="Button" parent="Balloon/CenterContainer/ResponsesMenu" unique_id=1446810977] layout_mode = 2 text = "Response example" [node name="AudioStreamPlayer" type="AudioStreamPlayer" parent="." unique_id=1162558754] unique_name_in_owner = true [connection signal="gui_input" from="Balloon" to="." method="_on_balloon_gui_input"] [connection signal="response_selected" from="Balloon/CenterContainer/ResponsesMenu" to="." method="_on_responses_menu_response_selected"]